Add measure behavior to the "current location" also.

This commit is contained in:
Michael Stenta 2020-07-15 14:18:33 -04:00
parent cc8105dfbe
commit cb879f94b7
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@
};
this.currentLocationLayer = this.instance.addLayer('wkt', opts);
this.instance.zoomToVectors();
// Add measure behavior.
this.instance.addBehavior('measure', { layer: this.currentLocationLayer });
}
},