Add support for displaying a map covering a specified bounding box.

This commit is contained in:
Tom Hughes 2007-07-29 14:26:42 +00:00
parent 9634ab8fc1
commit cbb7d97405
3 changed files with 24 additions and 6 deletions

View file

@ -64,7 +64,9 @@
zoom = scaleToZoom(<%= params['scale'].to_f() %>);
<% end %>
var map = createMap("map", centre, zoom);
var map = createMap("map");
map.setCentre(centre, zoom);
<% if marker %>
marker = addMarkerToMap(lonLatToMercator(new OpenLayers.LonLat(<%= mlon %>, <%= mlat %>)), null, "Your location");