Git Product home page Git Product logo

Comments (5)

dstudzinski avatar dstudzinski commented on June 26, 2024

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.

tiborrr avatar tiborrr commented on June 26, 2024

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.

dstudzinski avatar dstudzinski commented on June 26, 2024

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.

mdmm13 avatar mdmm13 commented on June 26, 2024

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.

greensopinion avatar greensopinion commented on June 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.