try to add support for OpenStreetMap; better naming
svn: r17956
This commit is contained in:
parent
abe77ef759
commit
d20c2b49fc
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user