| Version 2 (modified by ominiverdi, 6 years ago) |
|---|
!WMSQuery Control
- Class Definition: /sandbox/ominiverdi/openlayers/lib/OpenLayers/Control/WMSQuery.js
- API Reference: http://openlayers.org/doc/reference.html#OpenLayers.Control.WMSQuery
- Family Tree:
- OpenLayers.Control.!WMSQuery
- Related Links: BaseLayersAndOverlays, BaseLayer, Overlay, Layer
Functions
This Control is an enhanced version of Control/PanZoomBar. Clicking on the Query button (third button with "i" inside) you'll activate this function:
- Click on a map to query all queryable layers
- Queryable layers are signed with a "(q)" in the legend.
- An AJAX call is made to all WMS server to get text/html output
- the output is redirected to the queryTarget object.
code sample
//set the target div for query output
var queryTarget = $('queryOut');
//create the Control
WMSToolbar = new OpenLayers.Control.WMSToolbar({queryTarget: queryTarget});
// add control to map instance
map.addControl(WMSToolbar);
