[OpenLayers-Users] Query multiple features from one or more vector layers
Matthew Foster
matthew.foster at noaa.gov
Fri Jun 1 07:01:20 PDT 2012
The way I ended up handling this was to create my own click handler (based
on the click-handler.html OL example). On click, I create a LonLat object
from the clicked point. I then iterate through the features array for each
layer, and test feature.geometry.atPoint(LonLat). If it's true, act on
that feature.
It seems to be working well. I suspect it could get slow if there were a
lot of features in the layers, but that isn't the case here.
Matt
On Wed, May 16, 2012 at 4:23 PM, Phil Scadden <p.scadden at gns.cri.nz> wrote:
> More detail:
>
> http://osgeo-org.1560.n6.nabble.com/Select-WFS-Features-using-intersect-of-polygon-td4467419.html#a4470543
>
> 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/20120601/be3af358/attachment.html>
More information about the Users
mailing list