Solved Is it possible to host Mapbox GL vector map tiles?
-
Hi,
I'm keen on using the Mapbox GL plugin for displaying vector map tiles. In the documentation (https://doc.qt.io/qt-5.11/location-plugin-mapboxgl.html) I cannot find if it is possible to host the vector tiles ourselves.
We'd like to that, so we can create our own vector tiles and host them from our own servers. I see that in https://github.com/mapbox/mapbox-gl-native/blob/master/platform/qt/src/qmapboxgl.cpp that there is QMapboxGLSettings::apiBaseUrl, but I'm not sure how to use/change this from QtQuick/QML.
Thank you,
Ilja -
It's been a while, but this turned to be extremely easy to solve.
Simply use the mapboxgl.mapping.additional_style_urls PluginParameter:Plugin { id: mapPlugin name: "mapboxgl" PluginParameter { name: "mapboxgl.mapping.additional_style_urls" value: "YOUR CUSTOM URL HERE" } }
Kudos to the mapbox team for making this so easy to use.
-
Hello,
Actually i have the same Problem. How did you connect your Server? I tried it with localhost, but i dont get any Map.
Thank you,
Hakan