X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721dd9c27d299455b9159457a095716f797389f1..afe8dd51ece21325eea8a108515b9426764de5b2:/public/javascripts/map.js?ds=inline diff --git a/public/javascripts/map.js b/public/javascripts/map.js index fcf34336f..608f4c264 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -134,6 +134,7 @@ 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);