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 <[email protected]>
> On Wed, Jun 10, 2009 at 4:34 PM, Asle Benoni<[email protected]> 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 : [email protected]
> http://www.camptocamp.com
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users