[Geowanking] GPX viewer for gmaps

Tom Carden tom at tom-carden.co.uk
Sun Jul 10 07:07:00 PDT 2005


Tom Carden wrote:
> Totally experimental, very flaky, but...
> 
> http://www.tom-carden.co.uk/googlegpx/js.html
> 
> GPX fetching and parsing now happens in javascript using google's 
> xmlhttprequest wrapper.  Not tested extensively, but feel free to use it 
> as an example for your own projects.
> 

Unfortunately I just tested with remote files outside my domain, and got 
security errors on the javascript console.  Seems a shame to implement a 
server-side script just to get a file, but I've done it before for Java 
applets - any other suggestions?

> There's an example gpx file at 
> http://www.tom-carden.co.uk/googlegpx/newforest.gpx if you'd like to try 
> it with that.  Firefox still complains about the length of the track (my 
> javascript isn't cutting out insignificant points like Steve's ruby 
> script did), but IE seems to like it.
> 

OK, I implemented Steve's gps track-culling algorithm, which seems to 
help Firefox.  We're limiting tracks to 200 points.

Regards,

Tom.



More information about the Geowanking mailing list