[OpenLayers-Users] how to query wms, like wfs?

zach cruise zachc1980 at gmail.com
Wed Feb 26 21:23:41 PST 2014


thanks phil. now trying to apply sld_body to layer on click (so
feature whose info is returned is highlighted):

var query = {
 click: new OpenLayers.Control.WMSGetFeatureInfo({
  layers: [layer1],
  queryVisible: true
  /* is this where i put this???
  sld_body: sld1 */
 })
};


On 2/26/14, Phil Scadden <p.scadden at gns.cri.nz> wrote:
> I do not think id and fid are stored in attributes. That is where using
> the debugger (I use firebug or chrome developer tools) is better because
> you can examine the structure.
>
> Try looking instead for features[i][fid]
>
> Notice: This email and any attachments are confidential.
> If received in error please destroy and immediately notify us.
> Do not copy or disclose the contents.
>
>


More information about the Users mailing list