You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is anyone able to make local vector mbtiles work with this library? This post seems to show it working but I always get the error "Expected URL scheme 'http' or 'https' but was 'mbtiles'". I'm testing using the file at the bottom of this page: https://docs.mapbox.com/help/glossary/mbtiles/.
My style json looks like this right now (I've tried a ton of variations including url instead of tiles array):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is anyone able to make local vector mbtiles work with this library? This post seems to show it working but I always get the error "Expected URL scheme 'http' or 'https' but was 'mbtiles'". I'm testing using the file at the bottom of this page: https://docs.mapbox.com/help/glossary/mbtiles/.
My style json looks like this right now (I've tried a ton of variations including url instead of tiles array):
{ "version": 8, "name": "Offline Style", "metadata": {}, "sources": { "offline": { "type": "vector", "tiles": ["mbtiles://file:///data/user/0/com.name.MYAPP/files/test.mbtiles"], } }, "layers": [ { "id": "multilinestring-glacier_trails", "type": "line", "source": "offline", "source-layer": "multilinestring-glacier_trails", "minzoom": 0, "maxzoom": 14, "layout": { "visibility": "visible" }, "paint": { "line-color": "rgb(255, 0, 0)", "line-width": 3 } }, ] }
Beta Was this translation helpful? Give feedback.
All reactions