Git Product home page Git Product logo

Comments (3)

zegkljan avatar zegkljan commented on June 24, 2024 1

Oh, I'm sorry, I forgot to respond. I don't actually need the switching ability in my app, I just encountered the issue when prototyping and playing around with various map sources. Knowing this is the intended behaviour, I'm ok with it.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on June 24, 2024

Jan, thanks for the issue. So far, this plugin hasn't been designed to support your use-case (changing provider URLs.) There are a couple of things that are likely going wrong here:

  • there is an on-disk cache that is likely serving tiles from the original provider
  • the theme ID has to change for the plugin to start using any changed options

There's a chance that you can get it to work if you change the theme ID and the IDs of providers in the theme, including the IDs passed to TileProviders. By changing the theme ID, you'll cause the layer to re-initialize, and by changing the IDs of the providers referenced in the theme, you'll get different cache keys (filenames) for the cached tiles so that the cache doesn't load tiles from the wrong provider.

Let me know how it works out.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on June 24, 2024

Closing, but would love to know if it worked out for you.

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.