]> git.openstreetmap.org Git - rails.git/blobdiff - public/openlayers/OpenStreetMap.js
Fix offset when laying in vectors on top of the OSM tiles.
[rails.git] / public / openlayers / OpenStreetMap.js
index c2acf2e0c8ef7035fe6d25cc20ca9265e6e28fc3..d6bc397d132ae517433ae494ad5956a0cc18cef1 100644 (file)
@@ -48,8 +48,8 @@ OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.TMS, {
     initialize: function(name, url, options) {
         options = OpenLayers.Util.extend({
             attribution: "Data by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",
-            maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
-            maxResolution: 156543,
+            maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
+            maxResolution: 156543.0339,
             units: "m",
             projection: "EPSG:900913",
             transitionEffect: "resize"