diff --git a/examples/getfeatureinfo.html b/examples/getfeatureinfo-tile.html similarity index 79% rename from examples/getfeatureinfo.html rename to examples/getfeatureinfo-tile.html index ce4404151d..7f4cc1997b 100644 --- a/examples/getfeatureinfo.html +++ b/examples/getfeatureinfo-tile.html @@ -9,7 +9,7 @@ - Get feature info example + WMS GetFeatureInfo example (tile layer) @@ -32,10 +32,10 @@
-

GetFeatureInfo example

-

This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS image layer.

+

WMS GetFeatureInfo example (tile layer)

+

This example shows how to trigger WMS GetFeatureInfo requests on click for a WMS tile layer.

-

See the getfeatureinfo.js source to see how this is done.

+

See the getfeatureinfo-tile.js source to see how this is done.

getfeatureinfo
@@ -51,7 +51,7 @@ - + diff --git a/examples/getfeatureinfo.js b/examples/getfeatureinfo-tile.js similarity index 93% rename from examples/getfeatureinfo.js rename to examples/getfeatureinfo-tile.js index dea34bf950..f928d83ac2 100644 --- a/examples/getfeatureinfo.js +++ b/examples/getfeatureinfo-tile.js @@ -6,7 +6,8 @@ goog.require('ol.source.TileWMS'); var wmsSource = new ol.source.TileWMS({ url: 'http://demo.opengeo.org/geoserver/wms', - params: {'LAYERS': 'ne:ne'} + params: {'LAYERS': 'ne:ne'}, + serverType: 'geoserver' }); var wmsLayer = new ol.layer.Tile({