When using OpenLayers.Control.SelectFeature, the control creates an internal instance of OpenLayers.Handler.Feature, allowing capturing of click and clickout events for vector features.
In general, the "clickout" events works fine. However, I found two instances where the result is not what I am expecting: 1. When clicking on a feature, then moving the mouse over a different feature, and finally, clicking outside the feature, a "clickout" event is triggered. However, the feature reported in the event is the feature that was moused over, not the clicked one. 2. Using a layer with the BBOX strategy, clicking on a feature, then scrolling the map far enough to trigger a refresh, and finally clicking outside the feature. In this case, no "clickout" event is produced. In the latter case, the reason is that the feature that was originally clicked has been destroyed by the BBOX strategy and replaced with a new one. In that case, I would like to receive a "clickout" event, even if the event contained no feature. Would that break the model associated with that event? JP _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
