kokuda / gpxviewer

Client-side Javascript GPX file viewer using Google Maps
http://notions.okuda.ca/geotagging/projects-im-working-on/gpx-viewer/
MIT License
7 stars 1 forks source link

Add nearest point calculation so clicking on or near a track point opens a popup showing the details #3

Closed GoogleCodeExporter closed 6 years ago

GoogleCodeExporter commented 9 years ago

I have a suggestion to show a popup when the user clicks on a track point
with the details (lat, lon, etc.).

This would most likely best be done by handling the click event and finding
the closest track point to that location.  This may not be practical in
Javascript, but it is an interesting idea.

It would probably require storage of the track points in a more efficient
format for finding the nearest point, but even a brute force methods might
work a small enough set of points.

Original issue reported on code.google.com by kok...@gmail.com on 31 Jul 2007 at 4:33