[OpenLayers-Users] Query multiple features from one or more
vector layers
Matthew Foster
matthew.foster at noaa.gov
Wed May 16 05:57:11 PDT 2012
Thanks for the reply, Phil.
I think I wasn't clear enough about what behavior I'm needing. I don't
believe selectFeature has the capabilities I need in any form. I have some
cases, where one of the layers has two or more polygon features that are
completely contained within each other. For example, polygons A, B and C,
where A completely contains B, and B completely contains C. Using
selectFeature, I can only get back the attributes for one of those features.
What I really need is a click handler that will return an array of all
features that are under the clicked point. It seems like this should be
possible, but I can't figure out how to do it.
Matt
On Tue, May 15, 2012 at 4:26 PM, Phil Scadden <p.scadden at gns.cri.nz> wrote:
> The selectFeature constructor has array of layers. Add both the layers
> into the array.
>
> 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.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120516/f6719dd5/attachment.html
More information about the Users
mailing list