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 <[email protected]>: >> >> >>> 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: [email protected] >>> skype: aiki74 >>> Cell: (+39) 347-6597931 Tel+Fax: (+39) 0583 926684 >>> Via di Tofori 123a 55010, Camigliano-S.Gemma Lucca >>> Italy >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://openlayers.org/mailman/listinfo/users >>> >>> >>> > > > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
