[OpenLayers-Users] Re: select features - diffrent handler per layer
tvnc
tvnc1979 at gmail.com
Thu Aug 11 06:37:00 EDT 2011
try adding only one selectFeature control to
the map with event listeners for
different layers
select = new OpenLayers.Control.SelectFeature([bdLayer, bcLayer]);
bdLayer.events.on({
"featureselected": onFeatureSelect,
"featureunselected": onFeatureUnselect,
});
bcLayer.events.on({
"featureselected": onClusterFeatureSelect
});
map.addControl(select);
select.activate();
More information about the Users
mailing list