-
Notifications
You must be signed in to change notification settings - Fork 122
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
Question: can I get a timestamp from mouseover on gpx track #147
Comments
I don't believe that would be possible, since the only thing rendered is the polyline itself, and none of the individual points – presumably you'd need those to be rendered as distinct elements to have mouseover on each point to get its information and timestamp. Maybe you could work something out with |
I implemented this feature today by changing the code a little bit. By changing
to
you're able to access the parsed coordinate objects, which contain not only the location but also the timestamp etc. Then you can search for the Polyline layer and add invisible Markers for each coordinate, like this:
It would be awesome if leaflet-gpx could raise an event for every |
I didn't do that because I'm worried about the performance impact of raising an event for every point on the track (could be thousands). Maybe as an opt-in? |
I'd like to show timestamp information about the gpx position on mouseover, but I cannot find this in the event. Is it available? Thx!
The text was updated successfully, but these errors were encountered: