Add a scale bar that changes with latitude (from OpenLayers 2.10)

This commit is contained in:
Andy Allan 2010-11-09 14:18:16 +00:00
parent f7743cbbc4
commit 624453948e

View file

@ -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,