diff --git a/js/openlayers.js b/js/openlayers.js index 4ce59eb..b58ff3e 100644 --- a/js/openlayers.js +++ b/js/openlayers.js @@ -59,12 +59,12 @@ Drupal.behaviors.openlayers = { if (map.projection === '900913') { options.maxExtent = new OpenLayers.Bounds( -20037508.34, -20037508.34, 20037508.34, 20037508.34); - } + options.units = "m"; } if (map.projection === '4326') { options.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); } - options.maxResolution = 1.40625; + options.maxResolution = "auto"; options.controls = []; // Change image, CSS, and proxy paths if specified