Hi,
I have an application in Halogen 5 (rc9) and are using an openlayers map (written a small FFI) and are having a hard time to understand how to handle a select of a feature in the map and have the callback in Halogen 5 or an Action triggered in my component.
[https://github.com/dnulnets/haccessibility](http://My github repo)
For buttons in the map which is part of the DOM I have managed to do it with eventListenerEventSource, but not for the features in the map.
I have the following in javascript (FFI) when I add the interaction, just to see that it works:
var select = new Select(); /* OpenLayers Select interaction */
select.on('select', function (e) {
console.log ("Got it!!!");
}
and then add it as an interaction to the map. That works fine, but I would like it to generate an Action in my component, or subscribe on an eventsource for it but have not been able to wrap my head around how to go about. I have tried to look around and found an effectEventSource, and maybe sending an emitter into the javascript. But alas, no joy.
So, where is my thinking off?
Thanks,
Tomas