[OpenLayers-Users] Highlight features in WMS Layer
Phil Scadden
p.scadden at gns.cri.nz
Sun Oct 14 15:13:20 PDT 2012
I am facing a problem over here as Firebug is giving an error,
>
> evt.feature is undefined
>
> How do I collect the geometry now?
Because its features not feature. If you set breakpoint in firebug to
the listener and explore the evt object in the watch window you would
see this. Learn to live in firebug.
> The reason I placed a empty array was that previously I wanted to
> display all the columns in the attribute table, and that is what it
> was doing.
If you are using SLDSelect then actually you do NOT want to see all
attributes. You dont want the SHAPE attribute. If you are getting the
shape data down, then there is no point to doing SLDSelect. Just use WFS
and draw the feature.
> So now if I want all the columns to be added do I need to add the
> names of all the columns one by one?
Yes, push them to propNames and add propertyNames:propNames to the WFS
read options.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121015/d40887b2/attachment.html>
More information about the Users
mailing list