Merge pull request #6218 from gberaudo/modify_interaction_check_map_rendered
Make modify interaction more robust
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) {
|
||||
if (map && map.isRendered()) {
|
||||
this.handlePointerAtPixel_(this.lastPixel_, map);
|
||||
}
|
||||
ol.events.listen(feature, ol.events.EventType.CHANGE,
|
||||
|
||||
Reference in New Issue
Block a user