Hi all.
According to the documentation, and to the source code, which I have
inspected, SelectFeaturesHandler should treat all layers in the map,
unless otherwise specified in the "layers" property. I've been testing
it and apparently it's only getting the information from the topmost
layer.
The function onClickFeature has some code commented out, and says
something about a bug. This is the code:
private function onClickFeature(evt:FeatureEvent):void {
if(evt && this.map && evt.feature && evt.feature.layer) {
for(var i:* in this.layers) {
if(layers[i].name ==
evt.feature.layer.name){
//fix bug : must be changed
//this.map.dispatchEvent(new
FeatureEvent(FeatureEvent.FEATURE_SELECTED, evt.feature));
return;
}
}
}
}
Is there a way to make SelectFeaturesHandler treat all layers? Could
someone give me indications as to how to fix this bug? I could try to
fix it and report it back to the community.
TIA
Diego Marrero