From: Andy Allan Date: Tue, 9 Nov 2010 14:18:16 +0000 (+0000) Subject: Add a scale bar that changes with latitude (from OpenLayers 2.10) X-Git-Tag: live~6238^2~46 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/624453948e4d69387793577a77b080a2ddca2858 Add a scale bar that changes with latitude (from OpenLayers 2.10) --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 0668b8ab0..090d4abc2 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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,