Merge pull request #6218 from gberaudo/modify_interaction_check_map_rendered

Make modify interaction more robust
This commit is contained in:
Frédéric Junod
2016-12-07 12:14:05 +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);
}
var map = this.getMap();
if (map) {
if (map && map.isRendered()) {
this.handlePointerAtPixel_(this.lastPixel_, map);
}
ol.events.listen(feature, ol.events.EventType.CHANGE,