Copying across fix for #1547 from trunk
This commit is contained in:
parent
2746a2e103
commit
71938aef1d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue