Hi,
I am trying to map the trajectory of an aircraft with a series of lat-longs. I was able to create a map region and add a layer of type "Points" and drive the layer with a SQL query like this:
select lat, lng, name from track_sample order by id
But I am not clear on how to build another layer of type "Lines". I was told to use GeoJson as in something like this:
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[
[-122.483696, 37.833818],
[-122.483482, 37.833174],
[-122.483396, 37.8327]
]},"properties":{}}]}
I could build the code to generate this but I don't know what to do next to display it. Can you help? Thanks.
Bill