-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use local mbtiles file #170
Comments
Hi, I'm really curious of this use case. Do you have a full working example? Maybe some minimal repo? I tried to use it but all I can get is When I copy it manually and run it on macos it looks like db is copied properly but i'm not sure how to provide theme/sprites needed by VectorTileLayer |
This means that your mbtiles database does not adhere to the mapbox mbtiles spec as your mbtiles file should contain a tiles table or view. I used Tippecanoe to generate my mbtiles from a geojson. Perhaps you can do something similar. |
My mbtiles db is for sure ok (I use data from geofabric from which part is cutout with osmium and I use tilemaker to create mbtiles). I serve it with tileserver-gl (with style created with Maputnik) without problems. I was able to use my mbtiles file with https://github.com/psytwo1/vector_mbtiles plugin for |
@tiborrr this looks great and very useful
|
@greensopinion, perhaps this is handy functionality to add. I have created a MBTilesTileProvider that you can use. If you want you can integrate it in your vector map libray. It uses
sqflite
to access the mbedtiles database.The only thing you have to do is add a mbtiles file to your assets folder and then add it to the pubspec.yaml.
The text was updated successfully, but these errors were encountered: