[OpenLayers-Users] SelectFeature control and click event on
marker
Alexandre Dube
adube at mapgears.com
Wed Jan 21 08:42:23 EST 2009
Currently, OpenLayers doesn't support feature selection from multiple
layers with a unique selectfeature control.
But developers are working on this. See Andreas last answer :
http://n2.nabble.com/Problem-with-multiple-SelectFeature-controls-td2156949.html#a2156949
Best regards,
Alexandre
Walter Lorenzetti wrote:
> Eric Lemoine ha scritto:
>
>> Hi
>>
>>
> Hi Eric, and thanks for reply
>
>> You can configure your select feature control with multiple:true.
>>
>>
> I try but nothing else...
>
> Sorry but I explain me bad:
> On my OL application I've a WFS layer and several MARKERS layer
> clickable with popup
> I'd like open a popup on select (or click) event on WFS features at the
> same time of mousedown feature MARKERS layer event...
>
> In my init() function I've:
>
> // ad my wfs and base layer
>
> map.addLayers([base,wfs]);
>
> // creation of select feature control
> selectControl = new OpenLayers.Control.SelectFeature(wfs,{onSelect:
> function(){alert('pippo')}, onUnselect: function(){}, hover:false,
> multiple:true});
>
> map.addControl(new OpenLayers.Control.LayerSwitcher());
> map.addControl(selectControl);
> selectControl.activate();
>
> // att this point I add my serveral MARKER layers
> for (var tp in legDbTipo){
>
> map.addLayer(puntiInfo[tp]);
>
> }
>
> Now with this configuration I can select my feature on wfs layer but I
> can't select my wfs features..
>
> I explain me better?
>
> What I want tot do is possible?
>
> Thanks
> Walter
>
>
>> Eric
>>
>> 2009/1/20, Walter Lorenzetti <lorenzetti at gis3w.it>:
>>
>>
>>> Hi,all
>>>
>>> is possible activate a SelectFeature control on a vector layer and a a
>>> mouseclick event on several marker at the same time?
>>>
>>> My problem is that is a I activate a SelectFeature control on a map with
>>> 'clickable' marke, after I can click on them...
>>>
>>> ...
>>>
>>> Thanks in advance
>>> Walter
>>>
>>> --
>>>
>>> Walter Lorenzetti
>>> email: lorenzetti at gis3w.it
>>> skype: aiki74
>>> Cell: (+39) 347-6597931 Tel+Fax: (+39) 0583 926684
>>> Via di Tofori 123a 55010, Camigliano-S.Gemma Lucca
>>> Italy
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>>
>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list