Add measure behavior to movement layer.
This commit is contained in:
parent
9996e83c13
commit
efaaf4468c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue