Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Relay ol events to vue component for ol-interaction-transform #270

Closed
deguich opened this issue Nov 7, 2023 · 3 comments
Closed

Relay ol events to vue component for ol-interaction-transform #270

deguich opened this issue Nov 7, 2023 · 3 comments

Comments

@deguich
Copy link

deguich commented Nov 7, 2023

Is your feature request related to a problem? Please describe.
I need a ref to listen events

  const trans = interactionTransformRef.value.transform;
  trans.on("translateend", (e) => { console.log(e); });

Describe the solution you'd like

<ol-interaction-transform  @translateend="myHandler($event)"  />

This solution print a warning in browser devtools console :

[Vue warn]: Extraneous non-emits event listeners (translateend) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option. 
  at <OlTransformInteraction  ... >
@d-koppenhagen
Copy link
Collaborator

Hey, would you like to contribute?

@deguich
Copy link
Author

deguich commented Nov 7, 2023

Mmm, I'm not sure to be expert enough for that.
I can try making PR ...

@d-koppenhagen
Copy link
Collaborator

okay, I was faster 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants