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:
@@ -16,8 +16,12 @@
|
||||
|
||||
function init(){
|
||||
map = new OpenLayers.Map( 'map' );
|
||||
layer = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS",
|
||||
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
|
||||
layer = new OpenLayers.Layer.WMS(
|
||||
"OpenLayers WMS",
|
||||
"http://labs.metacarta.com/wms/vmap0",
|
||||
{layers: 'basic'},
|
||||
{singleTile: true}
|
||||
);
|
||||
map.addLayer(layer);
|
||||
|
||||
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
|
||||
@@ -30,15 +34,16 @@
|
||||
|
||||
<div id="tags">
|
||||
</div>
|
||||
<p id="shortdesc">
|
||||
Shows an example of the Untiled wms layer, which requests a single image for the entire map view</a>.
|
||||
</p>
|
||||
|
||||
<p id="shortdesc">
|
||||
Shows an example of an "untiled" WMS layer, which requests a single
|
||||
image for the entire map view.
|
||||
</p>
|
||||
<div id="map"></div>
|
||||
|
||||
<div id="docs">
|
||||
An untiled map will only request a single image at a time.
|
||||
</div>
|
||||
<div id="docs">
|
||||
An untiled layer will only request a single image at a time.
|
||||
This is equivalent to using the deprecated
|
||||
OpenLayers.Layer.WMS.Untiled class, which will be removed at 3.0.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user