Skip to content
Browse files

Fix a bug with map drawing if lat, lon and zoom are supplied in the URL

  • Loading branch information...
1 parent 90a723a commit 41319d1f28f3a4ee2166c3d8f6b9872376ba73ba @mhl mhl committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 public/javascripts/map.js
View
7 public/javascripts/map.js
@@ -87,7 +87,12 @@ var area_init, route_init;
'maxResolution': 156543.0339,
'theme': null,
'maxExtent': new OpenLayers.Bounds(-20037508.34, -20037508.34,
- 20037508.34, 20037508.34)
+ 20037508.34, 20037508.34),
+ 'controls': [
+ new OpenLayers.Control.Navigation(),
+ new OpenLayers.Control.PanZoom(),
+ new OpenLayers.Control.Attribution()
+ ]
};
$('.static-map-element').hide();
map = new OpenLayers.Map(map_element, options);

0 comments on commit 41319d1

Please sign in to comment.
Something went wrong with that request. Please try again.