Make sure to set a projection on user center.
Only in the API do we allow setting the map center without a projection. This is all handled in the center getter/setter.
This commit is contained in:
@@ -70,7 +70,7 @@ ol.map = function(opt_arg) {
|
||||
|
||||
var map = new ol.Map();
|
||||
if (goog.isDef(center)) {
|
||||
map.setCenter(ol.loc(center));
|
||||
map.center(center);
|
||||
}
|
||||
if (goog.isDef(zoom)) {
|
||||
map.setZoom(zoom);
|
||||
|
||||
Reference in New Issue
Block a user