Merge pull request #1599 from fredj/1525

Trigger a render when a control is added to the map
This commit is contained in:
Frédéric Junod
2014-01-27 04:49:40 -08:00

View File

@@ -102,5 +102,6 @@ ol.control.Control.prototype.setMap = function(map) {
this.listenerKeys.push(goog.events.listen(map,
ol.MapEventType.POSTRENDER, this.handleMapPostrender, false, this));
}
map.render();
}
};