[OpenLayers-Users] Re: problems using GPX format

H.Hopm h.hopmann at wwu.de
Fri Apr 8 04:56:27 EDT 2011


Hi Georg,

I recently encountered the same annoying problem, it is correct that those
kinds of childless tags cause that problem. The corresponding
OpenLayers-code makes the assumption that all GPX attributes are nodes of
the form "value", which fails for that link-attribute produced by
gpsies.com. I dont know whether that assumption is wrong or gpsies.com
creates improper link-attributes...

To solve that issue, you could easily add a check to line 169 of
"lib/OpenLayers/Format/GPX.js" which ensures that "value" is not null, e.g.
add "if(value == null) continue;".

I hope this is of use for you!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/problems-using-GPX-format-tp6238125p6252968.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list