Skip to content

Commit

Permalink
Add a scale bar that changes with latitude (from OpenLayers 2.10)
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitystorm committed Nov 9, 2010
1 parent f7743cb commit 6244539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/javascripts/map.js
Expand Up @@ -23,7 +23,8 @@ function createMap(divName, options) {
new OpenLayers.Control.LayerSwitcher(),
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.PanZoomBar()
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.ScaleLine({geodesic: true})
],
units: "m",
maxResolution: 156543.0339,
Expand Down

0 comments on commit 6244539

Please sign in to comment.