Set zero Openlayers Buffer to test influence on server.
authorGrant Slater <openstreetmap@firefishy.com>
Mon, 2 Aug 2010 14:25:02 +0000 (15:25 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 11 Aug 2010 14:23:14 +0000 (15:23 +0100)
public/openlayers/OpenStreetMap.js

index 69f141806e077a11bf5077472fc73a47a01f28fe..86f8a80e4d9593cdbef63a476292c260e7093ad3 100644 (file)
@@ -48,7 +48,7 @@ OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
             "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
             "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
         ];
-        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
+        options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
         var newArguments = [name, url, options];
         OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
     },
@@ -76,7 +76,7 @@ OpenLayers.Layer.OSM.Osmarender = OpenLayers.Class(OpenLayers.Layer.OSM, {
             "http://b.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png",
             "http://c.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png"
         ];
-        options = OpenLayers.Util.extend({ numZoomLevels: 18 }, options);
+        options = OpenLayers.Util.extend({ numZoomLevels: 18, buffer: 0 }, options);
         var newArguments = [name, url, options];
         OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
     },
@@ -104,7 +104,7 @@ OpenLayers.Layer.OSM.CycleMap = OpenLayers.Class(OpenLayers.Layer.OSM, {
             "http://b.andy.sandbox.cloudmade.com/tiles/cycle/${z}/${x}/${y}.png",
             "http://c.andy.sandbox.cloudmade.com/tiles/cycle/${z}/${x}/${y}.png"
         ];
-        options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
+        options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
         var newArguments = [name, url, options];
         OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
     },