-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfoClickWin: Fire event on click #286
Comments
Hi @JakobMiksch , Is this issue already solved? I was about to take this issue but found out that there is a wegue/src/util/MapInteraction.js Lines 43 to 50 in 7f53a55
|
Yes, IMHO this is exactly what is needed by this issue. But maybe @JakobMiksch could also confirm this. One learning could be that an overview of the fired Wegue events should be listed somewhere. Maybe a markdown file as a simple start for this would work out as a first step. |
Agreed, documenting on all the WguEventBus events sounds reasonable, if they are part of the public API we are going to rely on.
|
I see, that seems fairly easy. To kick start this I did a quick search using
To complement the standardization @fschmenger, I was also wondering if the events:
|
Yes, good catch. Another point would be to consistently relay event-targets either as an object or by it's id (only where applicable). So an argument can be made to change the event from above to
I propose we close the issue over here - if @JakobMiksch confirms - and move some of the content to a dedicated issue, e.g. "standardise event signatures" |
Yes, the original reason for my issue was in a custom application that added the layer later on. Therefore the SelectInteraction was not added automatically. |
Often it is needed to listen to the feature click event from other components in Wegue. Therefore, it would be desirable to fire an event once a feature is selected.
The text was updated successfully, but these errors were encountered: