try to add support for OpenStreetMap; better naming

svn: r17956
This commit is contained in:
Jérôme Rapinat 2011-07-24 14:45:04 +00:00
parent abe77ef759
commit d20c2b49fc

View File

@ -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]);