Add getOverlay method to access sketch and selection layers
This commit is contained in:
@@ -422,6 +422,15 @@ class Modify extends PointerInteraction {
|
||||
super.setMap(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the overlay layer that this interaction renders sketch features to.
|
||||
* @return {module:ol/layer/Vector} Overlay layer.
|
||||
* @api
|
||||
*/
|
||||
getOverlay() {
|
||||
return this.overlay_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {module:ol/source/Vector~VectorSourceEvent} event Event.
|
||||
* @private
|
||||
|
||||
Reference in New Issue
Block a user