Add measure behavior to the "current location" also.
This commit is contained in:
parent
cc8105dfbe
commit
cb879f94b7
|
@ -48,6 +48,9 @@
|
|||
};
|
||||
this.currentLocationLayer = this.instance.addLayer('wkt', opts);
|
||||
this.instance.zoomToVectors();
|
||||
|
||||
// Add measure behavior.
|
||||
this.instance.addBehavior('measure', { layer: this.currentLocationLayer });
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue