Add a scale bar that changes with latitude (from OpenLayers 2.10)
This commit is contained in:
parent
f7743cbbc4
commit
624453948e
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ function createMap(divName, options) {
|
||||||
new OpenLayers.Control.LayerSwitcher(),
|
new OpenLayers.Control.LayerSwitcher(),
|
||||||
new OpenLayers.Control.Navigation(),
|
new OpenLayers.Control.Navigation(),
|
||||||
new OpenLayers.Control.PanZoom(),
|
new OpenLayers.Control.PanZoom(),
|
||||||
new OpenLayers.Control.PanZoomBar()
|
new OpenLayers.Control.PanZoomBar(),
|
||||||
|
new OpenLayers.Control.ScaleLine({geodesic: true})
|
||||||
],
|
],
|
||||||
units: "m",
|
units: "m",
|
||||||
maxResolution: 156543.0339,
|
maxResolution: 156543.0339,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue