Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#86
Originally Posted by nodevel View Post
I am about to begin playing with this promising plugin, but while reading the documentation, I might need a slight push:

Could anyone give me a hint how to do an image overlay, where the image position on the map is given by two of its diagonally opposing corners in the form of (lat, lon) coordinates?

Thanks in advance!


And of course big thanks to rinigus for carrying the whole bag of mapping capabilities of SailfishOS on his back in such a spectacular way. Much appreciated!
I am traveling right now, so couldn't test it.

It looks like you could use https://www.mapbox.com/mapbox-gl-js/...#sources-image and a layer that draws it. See
https://www.mapbox.com/mapbox-gl-js/...mage-on-a-map/ for an example.

In this plugin, approach is the same as in the example - add source and then layer rendering it. Hope that helps.
 

The Following 3 Users Say Thank You to rinigus For This Useful Post: