Comments (5)
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 "no such table: tiles"
as copied database is empty (source database is ok but it's copied without tables, views etc).
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
from flutter-vector-map-tiles.
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.
from flutter-vector-map-tiles.
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 also checked that mbtiles sqlite db contains tiles
view.
mbtiles file in assets is for sure ok. The problem is (I think) with db copy (which is done on load).
I was able to use my mbtiles file with https://github.com/psytwo1/vector_mbtiles plugin for flutter_map
(I found it when I started dig deeper in reading mbtiles in flutter) so I think my case is closed.
from flutter-vector-map-tiles.
Thank you so much for sharing, @tiborrr!
Not sure if it will become part of the core vector_map_tiles package in the end, but great building block and frequently requested: #9, #32, #85, #114, #151.
from flutter-vector-map-tiles.
@tiborrr this looks great and very useful
VectorTileProvider
is intended to be extensible to provide tiles from alternate data sources, either from within a private project or as an external library. I'd rather not take on the maintenance or dependencies of mbtiles, but it would be pretty easy to publish as another library on https://pub.dev - feel free to do that!
from flutter-vector-map-tiles.
Related Issues (20)
- Not accepting map styles from other sources HOT 1
- Differences in Styles for Mapbox.
- Update flutter_map dependency to 6.1.x HOT 4
- Web support HOT 1
- Question about working with tile server.
- [StyleReader] Converting JSON into a Style HOT 7
- DEpendency problems when upgrading to 6.0.2 HOT 2
- display with rotation is not the same between vector and raster modes in version 7.0.0 HOT 3
- is expressmaps supported? HOT 1
- Package available for web? HOT 2
- Raster Tiles Usage HOT 1
- would something like https://github.com/fleaflet/flutter_map_cancellable_tile_provider help in performance HOT 1
- very low performance HOT 1
- Override background color of VectorTileLayer HOT 1
- Google maps support - Issue HOT 3
- Can't display pg_tileserv and postgis tiles HOT 1
- How to rotate and zoom the map like a native map experience
- Raster mode tile cancellation HOT 1
- new version available HOT 2
- providers.isNotEmpty error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-vector-map-tiles.