Add getOverlay method to access sketch and selection layers
This commit is contained in:
@@ -441,6 +441,15 @@ class Draw extends PointerInteraction {
|
||||
this.updateState_();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the overlay layer that this interaction renders sketch features to.
|
||||
* @return {module:ol/layer/Vector} Overlay layer.
|
||||
* @api
|
||||
*/
|
||||
getOverlay() {
|
||||
return this.overlay_;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle move events.
|
||||
* @param {module:ol/MapBrowserEvent} event A move event.
|
||||
|
||||
Reference in New Issue
Block a user