Add measure behavior to movement layer.

This commit is contained in:
Paul Weidner 2020-07-09 12:30:37 -07:00 committed by Michael Stenta
parent 9996e83c13
commit efaaf4468c
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,9 @@
// Make the layer editable.
this.instance.addBehavior('edit', { layer: this.movementLayer });
// Add measure behavior.
this.instance.addBehavior('measure', { layer: this.movementLayer});
},
// Update the assets current location map layer.
@ -70,6 +73,9 @@
// Make the layer editable.
this.instance.addBehavior('edit', { layer: this.movementLayer });
// Add measure behavior.
this.instance.addBehavior('measure', { layer: this.movementLayer});
// Zoom to all vector layers.
this.instance.zoomToVectors();