Back out hack to setMapCenter and fix the problem in the right place.

This commit is contained in:
Tom Hughes 2009-02-05 22:23:45 +00:00
parent c1df8017d6
commit 554614723a
2 changed files with 1 additions and 2 deletions

View file

@ -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);