Fix setPosition().

This commit is contained in:
Tom Hughes 2008-04-16 17:59:05 +00:00
parent b8c500cdbc
commit f4fa8ed40e

View file

@ -125,7 +125,7 @@ by the OpenStreetMap project and it's contributors.
function setPosition(lat, lon, zoom) {
var centre = new OpenLayers.LonLat(lon, lat);
map.setCenter(centre, zoom);
setMapCenter(centre, zoom);
if (marker)
removeMarkerFromMap(marker);