1 | ---
|
2 | layout: example.html
|
3 | title: WMS GetFeatureInfo (Layers)
|
4 | shortdesc: >
|
5 | Shows how to fetch features per layer name in a single WMS GetFeatureInfo
|
6 | request
|
7 | docs: >
|
8 | Demonstrates the use of the `layers` option in the
|
9 | `ol.format.WMSGetFeatureInfo` format object, which allows features returned
|
10 | by a single WMS GetFeatureInfo request that asks for more than one layer
|
11 | to be read by layer name.
|
12 | ---
|
13 | <table id="info">
|
14 | <tr>
|
15 | <td>All features:</td>
|
16 | <td id="all"></td>
|
17 | </tr>
|
18 | <tr>
|
19 | <td>Hotel features:</td>
|
20 | <td id="hotel"></td>
|
21 | </tr>
|
22 | <tr>
|
23 | <td>Restaurant features:</td>
|
24 | <td id="restaurant"></td>
|
25 | </tr>
|
26 | </table>
|