[OpenLayers-Users] Multi Selectable Vector layers
Simo D
simone.dalmasso at gmail.com
Thu May 21 19:09:57 EDT 2009
I succesfully used the 2.8 trunk. You can use SelectFeature with an array of
layers as argument.
Remember to add and activate the control after that the layers are added to
the map, otherwise it don't work.
Hope this helps.
Simone
Christopher Schmidt-2 wrote:
>
> On Fri, May 22, 2009 at 10:20:55AM +1200, Jeremy Husmann wrote:
>> Great, thanks for the Chris.
>>
>> I was looking in to the OpenLayers.Layer.Vector.RootContainer to see if
>> I could use this, but was unsure if it would work? Or be displayed in
>> the layer control as a option or not?
>
> It's used internally to the SelectFeature Control with multiple layers.
> You shouldn't need to use it yourself for any reason.
>
>
>> Cheers,
>> Jeremy
>>
>> -----Original Message-----
>> From: Christopher Schmidt [mailto:crschmidt at metacarta.com]
>> Sent: Friday, May 22, 2009 10:19 AM
>> To: Jeremy Husmann
>> Cc: users at openlayers.org
>> Subject: Re: [OpenLayers-Users] Multi Selectable Vector layers
>>
>> On Fri, May 22, 2009 at 09:56:07AM +1200, Jeremy Husmann wrote:
>> > Hi everyone,
>> >
>> >
>> >
>> > Sorry if I have mailed the wrong list, or missed this completely in
>> the
>> > documentation. First post.
>> >
>> >
>> >
>> > Im currently trying to figure out the best approach to have multiple
>> > vector layers selectable.
>> >
>> >
>> >
>> > From what I see I have two options:
>> >
>> > * Have one select control to manage both layers.
>>
>> This is the only option for selecting multiple layers at once, and is
>> only available in trunk/2.8 RCs.
>>
>> -- Chris
>>
>> > * Have one select control for each vector layer.
>> >
>> >
>> >
>> > Before I try each approach it would be great if I could get some
>> > steering direction from anyone that has dealt with this in the past?
>> >
>> >
>> >
>> > Cheers guys,
>> >
>> >
>> >
>> > Jeremy
>> >
>> >
>> >
>>
>> > _______________________________________________
>> > Users mailing list
>> > Users at openlayers.org
>> > http://openlayers.org/mailman/listinfo/users
>>
>>
>> --
>> Christopher Schmidt
>> MetaCarta
>
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://n2.nabble.com/Multi-Selectable-Vector-layers-tp2954413p2954698.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list