Merge pull request #1599 from fredj/1525
Trigger a render when a control is added to the map
This commit is contained in:
@@ -102,5 +102,6 @@ ol.control.Control.prototype.setMap = function(map) {
|
|||||||
this.listenerKeys.push(goog.events.listen(map,
|
this.listenerKeys.push(goog.events.listen(map,
|
||||||
ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this));
|
ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this));
|
||||||
}
|
}
|
||||||
|
map.render();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user