Check if interaction is active before drawing modifying vertex
This commit is contained in:
@@ -198,7 +198,7 @@ ol.interaction.Modify.prototype.addFeature_ = function(feature) {
|
||||
this.SEGMENT_WRITERS_[geometry.getType()].call(this, feature, geometry);
|
||||
}
|
||||
var map = this.getMap();
|
||||
if (map && map.isRendered()) {
|
||||
if (map && map.isRendered() && this.getActive()) {
|
||||
this.handlePointerAtPixel_(this.lastPixel_, map);
|
||||
}
|
||||
ol.events.listen(feature, ol.events.EventType.CHANGE,
|
||||
|
||||
Reference in New Issue
Block a user