[OpenLayers-Users] SelectFeature control and click event on marker

Walter Lorenzetti lorenzetti at gis3w.it
Wed Jan 21 03:05:31 EST 2009


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
>>
>>     


-- 

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




More information about the Users mailing list