diff --git a/examples/tilecache.html b/examples/tilecache.html index 605f0c25ff..901f8dccc7 100644 --- a/examples/tilecache.html +++ b/examples/tilecache.html @@ -13,12 +13,17 @@ function init(){ map = new OpenLayers.Map( $('map')); layer = new OpenLayers.Layer.TileCache("TileCache Layer", - ["http://c0.labs.metacarta.com/wms-c/cache/", - "http://c1.labs.metacarta.com/wms-c/cache/", - "http://c2.labs.metacarta.com/wms-c/cache/", - "http://c3.labs.metacarta.com/wms-c/cache/", - "http://c4.labs.metacarta.com/wms-c/cache/"], - "basic", {'format': 'image/png'}); + ["http://c0.labs.metacarta.com/wms-c/cache/", + "http://c1.labs.metacarta.com/wms-c/cache/", + "http://c2.labs.metacarta.com/wms-c/cache/", + "http://c3.labs.metacarta.com/wms-c/cache/", + "http://c4.labs.metacarta.com/wms-c/cache/"], + "basic", + { + 'format': 'image/png', + maxResolution: 180/256 // same as the TileCache config + } + ); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(0, 0), 0); } @@ -41,12 +46,17 @@
- Demonstrates a TileCache layer that loads tiles from from a web accessible disk-based cache only. + Demonstrates a TileCache layer that loads tiles from from a web + accessible disk-based cache only.
-