Hi folks,

I cant fire the unSelect event from the selectControl when I click outside
the selected feature.
If I click anywhere on the map, the event wont fire. It only fires when
another feature is selected.

Anybody might know why ?

this is my code:

var selectedCtrl = new OpenLayers.Control.SelectFeature(
properties.layers.searchLayer,{
onSelect : onFeatureSelect,
onUnselect : onFeatureUnselect
}
);

function onFeatureUnselect(f){
//alert(f.attributes.fid);
try
{
    map.removePopup(f.popup);
    f.popup.destroy();
    f.popup = null;
}
catch(err)
{
//Handle errors here
}
};


warm regards


Ricardo
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to