From d20c2b49fcdd187e32201b8b232cef412c23eeb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 24 Jul 2011 14:45:04 +0000 Subject: [PATCH] try to add support for OpenStreetMap; better naming svn: r17956 --- src/plugins/lib/libhtmlconst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lib/libhtmlconst.py b/src/plugins/lib/libhtmlconst.py index b20b4176e..7e45c5cf4 100644 --- a/src/plugins/lib/libhtmlconst.py +++ b/src/plugins/lib/libhtmlconst.py @@ -129,15 +129,15 @@ openstreet_jsc = """ function initialize(){ map = new OpenLayers.Map("map_canvas"); - var centre = new OpenLayers.LonLat(%s, %s); + var center = new OpenLayers.LonLat(%s, %s); var zoom = 11; - map.setCenter(centre, zoom); + map.setCenter(center, zoom); updateLocation(); var osm = new OpenLayers.Layer.OSM("OpenStreetMap"); var markers = new OpenLayers.Layer.Markers("Markers"); - markers.addMarker(new OpenLayers.Marker(centre)); + markers.addMarker(new OpenLayers.Marker(marker)); map.addLayers([osm, markers]);