Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 422 | Thanked: 1,907 times | Joined on Aug 2016 @ Estonia
Originally Posted by jdrescher View Post
I am working on making my app compatible to the new requirements. Just to make sure that I do it right, here is an example:
It looks fine. You don't need to specify "visibility" since its visible by default anyway
( However, its a good idea to allow overlap in this case, since you change the default ( So, the code would be:

//This is the first data point, draw the start icon
map.addSourcePoint("pointStartImage",  trackLoader.trackPointAt(i));
map.addImagePath("imageStartImage", Qt.resolvedUrl("../img/map_play.png"));
map.addLayer("layerStartLayer", {"type": "symbol", "source": "pointStartImage"});
map.setLayoutProperty("layerStartLayer", "icon-image", "imageStartImage");
map.setLayoutProperty("layerStartLayer", "icon-size", 1.0 / map.pixelRatio);
map.setLayoutProperty("layerStartLayer", "icon-allow-overlap", true);

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