Render last.

This commit is contained in:
Tim Schaub
2012-06-22 20:07:05 +02:00
parent f86e6f17a9
commit bc0614d3ee

View File

@@ -69,9 +69,6 @@ ol.map = function(opt_arg) {
var map = new ol.Map();
if (goog.isDef(renderTo)) {
map.renderTo(renderTo);
}
if (goog.isDef(center)) {
map.setCenter(ol.loc(center));
}
@@ -102,6 +99,9 @@ ol.map = function(opt_arg) {
if (goog.isDef(controls)) {
map.setControls(controls);
}
if (goog.isDef(renderTo)) {
map.renderTo(renderTo);
}
return map;
};