question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Translate interaction - event details missing info on purpose?

See original GitHub issue

Hi!

So I’m using the Translate interaction in my project. I’m listening to the TRANSLATESTART and TRANSLATEEND events. They both include the event’s map coordinates in the details, but not the event’s pixel, or the event itself. Was there a reason for this? (See https://github.com/openlayers/openlayers/blob/master/src/ol/interaction/Translate.js#L168)

I’d love to have access to the pixel. I know there are many workarounds but I was curious. If you guys are open to it, I’ll gladly do a pull request where the events contain more info.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ahocevarcommented, May 29, 2019

Would you consider usingol/Map’s getPixelFromCoordinate() API method a workaround?

0reactions
stale[bot]commented, Aug 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dragging a feature in OpenLayers 3
I've added a select and modify interaction to my map, which enables selection and dragging of features. The problem is that I add...
Read more >
OpenLayers v7.1.0 API - Class: Translate
Interaction for translating (moving) features. If you want to translate multiple features in a single action (for example, the collection used by a...
Read more >
Interactions API Reference - Discord.py
Defaults to the user's locale . data (Any) – The extraneous data that is being translated. If not specified, either command or message ......
Read more >
XR Interaction Toolkit | 0.10.0-preview.7
AR gesture interactor and interactables to translate gestures such as place, select, translate, rotate, and scale into object manipulation.
Read more >
Events | Developer migration for basic measurement
The data sent with an event hit includes Category, Action, and Label. ... matches your UA event but is missing information on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found