]> git.openstreetmap.org Git - rails.git/commitdiff
Fix setPosition().
authorTom Hughes <tom@compton.nu>
Wed, 16 Apr 2008 17:59:05 +0000 (17:59 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Apr 2008 17:59:05 +0000 (17:59 +0000)
app/views/site/index.rhtml

index 35ce1e2fdda9df458f516419f7d3b6eda748e2d8..46bc3bdd7ee80f9b2ba013a88a5a0873f5d97b19 100644 (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);