This is with the intention to save them to storage and use them to draw a track. I know how to save one thing to an array e.g.
pairs = [lat,lon] but ideally I want this array to expand as you save each pair. Pairs = [lat1, lon1, lat2, lon2, lat3, lon3…….]
I have currently got it so onTap returns my current lat and lon.
var pos = Position.getInfo().position;
pos = pos.toDegrees();
lat = pos[0];
lon = pos[1];
pairs = [lat,lon];
Application.Storage.setValue(“points”, pairs);
Help is much appreciated