I’m been looking at the perspective Map and wanted to use it to track the location of a gps device showing a line from its starting point to its ending point. After some initial testing, it seems like I have two possible ways to do this
- Take my historical tracking of lat/long and feed that into a geoJson object.
- For each change in my lat/long add a new polyline entry under the vector entry (which is under layers).
For 1, what the proper way to add a geoJson entry? I’ve tried to manually build out an entry with a single point, but nothing displays (or the map breaks completely).
For 2, is there a method on the map I can call to add a new polyline point during runtime whenever my latitude/longitude changes?