diff --git a/examples/notile.html b/examples/notile.html deleted file mode 100644 index 2587953715..0000000000 --- a/examples/notile.html +++ /dev/null @@ -1,42 +0,0 @@ - - - OpenLayers: Single Tile - - - - - - -

Untiled Example

-
- tile, ratio, singleTile, performance -
-

- Create an untiled WMS layer using the singleTile: true, option or the deprecated - WMS.Untiled layer. -

-
-

The first layer is an old OpenLayers.Layer.WMS.Untiled layer, using - a default ratio value of 1.5. -

The second layer is an OpenLayers.Layer.WMS layer with singleTile set - to true, and with a ratio of 1. - - diff --git a/examples/single-tile.html b/examples/single-tile.html new file mode 100644 index 0000000000..3f8f6728e4 --- /dev/null +++ b/examples/single-tile.html @@ -0,0 +1,30 @@ + + + + OpenLayers: Single Tile + + + + +

Single Tile Example

+
tile, ratio, singleTile, performance
+

+ Use the singleTile option on gridded layers to request a single tile. +

+
+
+

+ This map demonstrates the use of the singleTile property as an + alternative to the default tiled behavior of layers. The first + layer in the map is a WMS layer with the singleTile option set + true. The second layer is a WMS layer with the default options. +

+

+ View the single-tile.js + source to see how this is done. +

+
+ + + + diff --git a/examples/single-tile.js b/examples/single-tile.js new file mode 100644 index 0000000000..26d94f0555 --- /dev/null +++ b/examples/single-tile.js @@ -0,0 +1,20 @@ +var map = new OpenLayers.Map({ + div: "mapDiv", + layers: [ + new OpenLayers.Layer.WMS( + "Single Tile", + "http://vmap0.tiles.osgeo.org/wms/vmap0", + {layers: "basic"}, + {singleTile: true, ratio: 1} + ), + new OpenLayers.Layer.WMS( + "Multiple Tiles", + "http://vmap0.tiles.osgeo.org/wms/vmap0", + {layers: "basic"} + ) + ], + center: new OpenLayers.LonLat(6.5, 40.5), + zoom: 4 +}); + +map.addControl(new OpenLayers.Control.LayerSwitcher());