Coder Social home page Coder Social logo

kokuda / gpxviewer Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 136 KB

Client-side Javascript GPX file viewer using Google Maps

Home Page: http://notions.okuda.ca/geotagging/projects-im-working-on/gpx-viewer/

License: MIT License

JavaScript 100.00%

gpxviewer's People

Contributors

kokuda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andersonkemper

gpxviewer's Issues

Google Maps API v3 Compatibility

The current version isn't compatible with v3 of the maps API. I've updated it 
in a repository hosted at GitHub: http://christopherpeplin.com/posts/gpxviewer/

Original issue reported on code.google.com by [email protected] on 29 May 2011 at 3:31

Remove GPX

How can I remove the gpx-overlay on mouseout-event?

GPSBabel Compatability

What steps will reproduce the problem?
Use GSPBabel to merge two or more GPX files togther.

FoxTrot/Tango GPS will open the merged output file perfectly, but gpxviewer 
just loads the correct map location, with no track info at all - ie no track is 
drawn.

What is the expected output? 
a track to be drawn.

What do you see instead?
Nothing.

What version of the product are you using? On what operating system?
The Latest with the google v3 mod.

Please provide any additional information below.
I don't know enough about the XML side of things, but this clearly won't load 
any GPX files generated by GPSBabel. 

Keep up the good work ;)

Original issue reported on code.google.com by [email protected] on 20 May 2012 at 11:58

Error if a child element has no children in function CreateMarker

Bug originally reported as a comment here
http://notions.okuda.ca/geotagging/projects-im-working-on/gpx-viewer/#comments

Hi,

I have found a small error in file loadgpx.4.js
(http://okuda.ca/googlemaps/loadgpx.4.js).
The error occurs in Internet Explorer with test file lewis_clark.gpx
(http://www.travelbygps.com/guides/lewis_clark/lewis_clark.gpx).
In function CreateMarker empty nodes are ignored by testing for nodeType =
1 (elements only).
However, an elemement "link" may still have no children, such as in
lewis_clark.gpx:




In that case, firstChild is null and an error occurs (firstChild.nodeValue).

To capture this exception, an extra test is needed:

115     // Ignore empty nodes
116     if (children[i].nodeType != 1) continue;
117     if (children[i].firstChild == null) continue; // ";

bye,
Gerben Abbink
www.xmlblueprint.com


Original issue reported on code.google.com by [email protected] on 31 Jul 2007 at 4:15

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


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 [email protected] on 31 Jul 2007 at 4:33

Multiple GPX files

Well, this is not actually an issue; I'm searching for a better way for 
this : I have several maps to display so I use a XML renamed GPX file per 
map of course and also one HTML file per map; the "issue" is that all 
these HTML files are identical except the name of the XML file they call.
My question : how can I invoque an unique HTML file passing to it the XML 
file as parameter ?
This is how I call the mal
<TD WIDTH="10%" VALIGN="MIDDLE"><P ALIGN="CENTER"><a 
href="Itineraires/080802.html">GPX</a></TD>
and in attatch the invoqued HTML

Thanks a lot in advance


Original issue reported on code.google.com by [email protected] on 3 Aug 2008 at 7:58

Attachments:

Typo when comparing minlat to 0 in CenterAndZoom

Originally reported in a comment here
http://notions.okuda.ca/geotagging/projects-im-working-on/gpx-viewer/#comments


I discovered a minor bug in the javascript file, on line 240:
       if ( (minlat == maxlat) &amp;&amp; (minlat = 0) )
This is the correct:
       if ( (minlat == maxlat) &amp;&amp; (minlat == 0) )

Original issue reported on code.google.com by [email protected] on 31 Jul 2007 at 4:17

Errors when using V2 API with new or old Google Maps API keys

This script no longer works as-is with the existing V2 API (either the old API key produces a "development" version or the new API key produces errors when loading the pages.

Control is no longer supported in the Google Maps Javascript API v2. Please visit https://developers.google.com/maps/documentation/javascript/v2/v2tov3 to migrate your application to v3.

Using a new API Key provided by Google sometimes results in the following (and sometimes works, depending on the key)

Uncaught RangeError: Maximum call stack size exceeded
at common.js:1
at Object..yb (maps?file=api&v=2&key=key=AIzaSyDoak-H2Ga82-X7e3qkLAjfKwdEl7E8EA0:39)
at a (common.js:54)
at common.js:54
at Object.
.yb (maps?file=api&v=2&key=key=AIzaSyDoak-H2Ga82-X7e3qkLAjfKwdEl7E8EA0:39)
at a (common.js:54)
at common.js:54
at Object._.yb (maps?file=api&v=2&key=key=AIzaSyDoak-H2Ga82-X7e3qkLAjfKwdEl7E8EA0:39)
at a (common.js:54)
at common.js:54

It might be worth upgrading to the V3 API to resolve these issues, but these might also be a bug in the Google Maps API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.