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:
Tim Schaub
2012-06-23 15:40:43 +02:00
parent 167f77dd7e
commit 48704cce2f

View File

@@ -70,7 +70,7 @@ ol.map = function(opt_arg) {
var map = new ol.Map(); var map = new ol.Map();
if (goog.isDef(center)) { if (goog.isDef(center)) {
map.setCenter(ol.loc(center)); map.center(center);
} }
if (goog.isDef(zoom)) { if (goog.isDef(zoom)) {
map.setZoom(zoom); map.setZoom(zoom);