Closed VladimirKalachikhin closed 6 years ago
I don't think handling this use case necessarily belongs at this layer. You should be feeding correct GPX data to leaflet-gpx
, for example by concatenating the appropriate closing tags before passing the GPX content in:
var gpx = '...'; // assuming you're accumulating GPX data into this string
new L.GPX(gpx + '</trkseg></trk></gpx>', ...);
Yes, of course. But on this case I have to get the GPX file myself.
If I need to display currently recorded track - is there a way to add new nodes to loaded GPX?
How do you access the GPX data?
Via php. (I don't understand if you see the answer in the mail)
I want to show on the map a GPX, which is being recorded right now. This GPX does not have closing tags, of course. So I have a "XML Parsing Error: no root element found".