Open frasser opened 5 years ago
Hello, i guess you shouldn't use L.Playback.Util.ParseGPX(geo);
, just geo.geometry.coordinates = cor; geo.properties.time = fech;
, you need only give coordinates and time to geo
. I hope it resolve your problem :)
hi everybody, i have some problems at moment to load my data with cords and tie from xml . this is my issue: geo = { "type": "Feature", "geometry": { "type": "MultiPoint", "coordinates": [] }, "properties": { "time": [] } }; t = L.Playback.Util.ParseGPX(geo); t.geometry.coordinates = cor; t.properties.time = fech;
when i check de console.log(t); can see the data the obj t as i want
bbox: Array [] geometry: {…} coordinates: (3) […] 0: Array [ -76.491099, 3.48861 ] 1: Array [ -76.546984, 3.483693 ] 2: Array [ -76.489434, 3.473348 ] length: 3