Back out hack to setMapCenter and fix the problem in the right place.
This commit is contained in:
parent
c1df8017d6
commit
554614723a
2 changed files with 1 additions and 2 deletions
|
@ -132,7 +132,6 @@ function getMapCenter(center, zoom) {
|
|||
}
|
||||
|
||||
function setMapCenter(center, zoom) {
|
||||
zoom = parseInt(zoom);
|
||||
var numzoom = map.getNumZoomLevels();
|
||||
if (zoom >= numzoom) zoom = numzoom - 1;
|
||||
map.setCenter(center.clone().transform(epsg4326, map.getProjectionObject()), zoom);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue