[OpenLayers-Users] How to - severable clickable WFS layers ?
Asle Benoni
asle.benoni at gmail.com
Thu Jun 11 08:50:28 EDT 2009
Thanks Eric! I found it out by myself :-) Made an array of the vector
layers:
var *popLayers* =new
Array(map.layers[2],map.layers[3],map.layers[4],map.layers[5]);
Then used it in the function:
selectControl = new OpenLayers.Control.SelectFeature(*popLayers*,{onSelect:
onFeatureSelect, onUnselect: onFeatureUnselect});
Now I can click on markers in all layers. Still have a problem though trying
to get the popups to keep from sticking when the map is zoomed ....
/asle
2009/6/11 Eric Lemoine <eric.lemoine at camptocamp.com>
> On Wed, Jun 10, 2009 at 4:34 PM, Asle Benoni<asle.benoni at gmail.com> wrote:
> > And to specify the array elements would be? Any help?
>
> You can take a look at this example:
> <http://www.openlayers.org/dev/examples/select-feature-multilayer.html>.
>
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090611/452b4c1e/attachment.html
More information about the Users
mailing list