better text for the clientzoom example

This commit is contained in:
Éric Lemoine
2011-10-07 13:57:24 +02:00
parent fed387804e
commit d8283ba602
+20 -26
View File
@@ -15,11 +15,8 @@
bottom: 5px; bottom: 5px;
} }
#map { #map {
width: 512px; width: 600px;
height: 512px; height: 400px;
}
#docs {
width: 512px;
} }
</style> </style>
</head> </head>
@@ -31,8 +28,8 @@
<p id="shortdesc"> <p id="shortdesc">
This example demonstrates the <strong>"client zoom"</strong> This example demonstrates the <strong>"client zoom"</strong>
functionality, where OpenLayers stretches the layer div if the functionality, where OpenLayers stretches the layer div when the
current resolution isn't supported by that layer's tile server. resolution is not supported by that layer's tile service.
</p> </p>
@@ -42,35 +39,32 @@
<p> <p>
This map is configured with 22 resolutions, while the OSM tile The map of this example is configured with 22 resolutions, while
server supports only the first 19 resolutions. When the zoom the OSM tile server supports the first 19 resolutions only. When
level is 19, 20 or 22 "client zoom" is applied on the OSM the zoom level is 19, 20 or 21 "client zoom" is applied to the OSM
layer, i.e. the OSM layer div is stretched as necessary. layer, i.e. the OSM layer div is stretched as necessary. The map's
initial zoom is 18. So if you zoom in using the zoom bar's "+"
button you'll effectively trigger "client zoom".
</p> </p>
<p> <p>
The map's initial zoom is 18. So if you zoom in using the zoom For demonstration purpose the map of this example has
bar's "+" button you'll see that "client zoom" is applied. <code>fractionalZoom</code> set to true. So "client zoom" also
applies if you choose arbitrary zoom levels using the slider of the
zoom bar, or shift-drag boxes to zoom to arbitrary extents.
"client zoom" therefore allows continous zooming for tiled layers.
</p> </p>
<p> <p>
The map is even configured with <code>fractionalZoom</code> set Enabling "client zoom" on a layer is done by passing
to true. So "client zoom" also applies if you choose arbitrary <code>serverResolutions</code> to the layer constructor.
zoom levels using the slider of the zoom bar, or shift-drag <code>serverResolutions</code> is the list of resolutions supported
boxes to zoom to arbitrary extents. by the tile service. See the <a href="clientzoom.js"
target="_blank"> clientzoom.js source</a>.
</p>
<p>
Enabling "client zoom" on a layer is done through the
<code>serverResolutions</code> option. See the <a
href="clientzoom.js" target="_blank"> clientzoom.js source</a>
to see how this is done.
</p> </p>
</div> </div>