Hi,
I saw that GetFeature was recently added to the gwt-openlayers repository
and so far I can only get the box selection to call my EventHandlers. In
the ticket it also mentions point/click and those events don't seem to be
getting propogated for me. When this feature was implemented, were single
click events tested with GetFeature?
Here is a short snippet of what I have:
getFeatureControl.getEvents().register("featureselected", getFeatureControl,
myEventSelectHandler);
getFeatureControl.getEvents().register("featureunselected",
getFeatureControl, myEventUnSelectHandler);
When GetFeature is created, "click" is true by default so the above handlers
should be enough to handle single click and box selection events. When I do
box selection, my select/unselect event handlers are called; however, when I
only click on a feature, nothing happens.
I'm using gwt 2.0.3 and OpenLayers 2.8. Has anyone successfully handled
single click events with GetFeature? I wrote a small pure javascript
equivalent and both box selection and click selection work just fine so I'm
not sure if I am missing a property that must be set in my gwt code. Thanks
for any help.
Regards,
Chris
|