Merge pull request #6383 from tchandelle/modify-active

Modify interaction: check if interaction is active before drawing modifying vertex
This commit is contained in:
Frédéric Junod
2017-01-20 08:22:44 +01:00
committed by GitHub

View File

@@ -198,7 +198,7 @@ ol.interaction.Modify.prototype.addFeature_ = function(feature) {
this.SEGMENT_WRITERS_[geometry.getType()].call(this, feature, geometry); this.SEGMENT_WRITERS_[geometry.getType()].call(this, feature, geometry);
} }
var map = this.getMap(); var map = this.getMap();
if (map && map.isRendered()) { if (map && map.isRendered() && this.getActive()) {
this.handlePointerAtPixel_(this.lastPixel_, map); this.handlePointerAtPixel_(this.lastPixel_, map);
} }
ol.events.listen(feature, ol.events.EventType.CHANGE, ol.events.listen(feature, ol.events.EventType.CHANGE,