Removing use of deprecated untiled wms layer from example in favor of layer with singleTile true. (closes #1309)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+15
-10
@@ -16,8 +16,12 @@
|
|||||||
|
|
||||||
function init(){
|
function init(){
|
||||||
map = new OpenLayers.Map( 'map' );
|
map = new OpenLayers.Map( 'map' );
|
||||||
layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS",
|
layer = new OpenLayers.Layer.WMS(
|
||||||
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
|
"OpenLayers WMS",
|
||||||
|
"http://labs.metacarta.com/wms/vmap0",
|
||||||
|
{layers: 'basic'},
|
||||||
|
{singleTile: true}
|
||||||
|
);
|
||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
|
|
||||||
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
||||||
@@ -30,15 +34,16 @@
|
|||||||
|
|
||||||
<div id="tags">
|
<div id="tags">
|
||||||
</div>
|
</div>
|
||||||
<p id="shortdesc">
|
<p id="shortdesc">
|
||||||
Shows an example of the Untiled wms layer, which requests a single image for the entire map view</a>.
|
Shows an example of an "untiled" WMS layer, which requests a single
|
||||||
</p>
|
image for the entire map view.
|
||||||
|
</p>
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
|
<div id="docs">
|
||||||
<div id="docs">
|
An untiled layer will only request a single image at a time.
|
||||||
An untiled map will only request a single image at a time.
|
This is equivalent to using the deprecated
|
||||||
</div>
|
OpenLayers.Layer.WMS.Untiled class, which will be removed at 3.0.
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user