Skip to content

i can't load data to L.Playback();  #70

@frasser

Description

@frasser

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
​​​
: Array []
​​
type: "MultiPoint"
​​
: Object { … }

properties: {…}
​​
altitude: Array []
​​
speed: Array []
​​
time: Array(3) [ 1529525230000, 1542210423000, 1542210907000 ]
​​
: Object { … }

type: "Feature"

: Object { … }

next, try to initialize the playback

var playback = new L.Playback(mapaEventos,t, null, playbackOptions);

but i receibe this issue about empty data at start,end and I have no idea why does not read me the data that loads.

err: cant interpolate a point LeafletPlayback.min.js:1:4764
Array [ "start", undefined ]
LeafletPlayback.min.js:1:4809
Array [ "end", undefined ]
LeafletPlayback.min.js:1:4834
Array [ "ratio", NaN ]

can someone give me some advice to solve this, please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions