[OpenLayers-Commits] r12299 - sandbox/camptocamp/clientzoom/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Aug 31 05:55:18 EDT 2011
Author: erilem
Date: 2011-08-31 02:55:17 -0700 (Wed, 31 Aug 2011)
New Revision: 12299
Modified:
sandbox/camptocamp/clientzoom/examples/zoomclient.html
sandbox/camptocamp/clientzoom/examples/zoomclient.js
Log:
minor changes in the zoomclient example
Modified: sandbox/camptocamp/clientzoom/examples/zoomclient.html
===================================================================
--- sandbox/camptocamp/clientzoom/examples/zoomclient.html 2011-08-31 09:40:23 UTC (rev 12298)
+++ sandbox/camptocamp/clientzoom/examples/zoomclient.html 2011-08-31 09:55:17 UTC (rev 12299)
@@ -17,36 +17,31 @@
</style>
</head>
<body onload="init();">
- <h1 id="title">Zoom client</h1>
+ <h1 id="title">Client Zoom</h1>
<div id="tags">
- zoom client
+ clientzoom
</div>
<p id="shortdesc">
- The Zoom client allows the programmatic zoom of tiled layers (TMS, TileCache, WMS-C, WMTS and XYZ) if a
- map resolution is not present in the layer server resolution.
+
+ This example demonstrates the <strong>"client zoom"</strong>
+ functionality, where OpenLayers stretches the layer div if the
+ current resolution isn't supported by the tile server.
+
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
- <p>
- This example presents ths usage of the client zoom for the OSM layer.
- </p>
<p>
- This example demonstrates the <strong>"client zoom"</strong>
- functionality.
+ Ths map is configured with 22 resolutions, while the OSM tile
+ server supports only 19 of these resolutions. The resolutions
+ for the zoom levels 20, 21 and 22 are indeed not included in
+ the OSM layer's <code>serverResolutions</code> option. The
+ map's initial zoom is 18. So if you zoom in or out you'll see
+ that "client zoom" is applied
- The map works with 22 resolutions. But the OSM layer is
- configured as its tile service supported only 19 of these
- resolutions. The resolutions for the zoom levels 20,21 and 22 are
- indeed not included in the OSM layer's
- <code>serverResolutions</code> option.
-
- The map's initial zoom is 18. So if you zoom in or out
- you'll see that "client zoom" is applied
-
</p>
<p>
Modified: sandbox/camptocamp/clientzoom/examples/zoomclient.js
===================================================================
--- sandbox/camptocamp/clientzoom/examples/zoomclient.js 2011-08-31 09:40:23 UTC (rev 12298)
+++ sandbox/camptocamp/clientzoom/examples/zoomclient.js 2011-08-31 09:55:17 UTC (rev 12299)
@@ -18,5 +18,5 @@
map.addLayers([osm]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
- map.setCenter(new OpenLayers.LonLat(667250.8958124, 5668048.6072737), 18);
+ map.setCenter(new OpenLayers.LonLat(667393.040812,lat=5668008.8022737), 18);
}
More information about the Commits
mailing list