Thread: [SailfishOS] Pure Maps
View Single Post
Posts: 1,038 | Thanked: 3,981 times | Joined on Nov 2010 @ USA
#908
Originally Posted by rinigus View Post
OK, so you can get a sequence of points via some call in Sailfish program? If so, it will be possible to hook it into Pure Maps as well. Ideally, we should have some python function that can get a sequence which represents a polygon(s). Then we will be able to draw it as in https://docs.mapbox.com/mapbox-gl-js...ojson-polygon/
I'm gonna give mapbox web interface a try with partially hand-modified points. Mapbox seems to want lat/lon in the inverse of the usual order . . . But anyway this will definitely give me a proof of concept one way or another.

But yes, I'm getting the points from a Sailfish program -- I suppose it's probably pretty cross-platform at this point since it's text-mode python so far. I'm adapting the bimmer_connected library for my own purposes, but also hopefully making a few contributions back to the source as well.

Thanks for the pointers!
 

The Following 4 Users Say Thank You to robthebold For This Useful Post: