Git Product home page Git Product logo

Comments (5)

zegkljan avatar zegkljan commented on September 26, 2024

My bad, I missed the id key in the map theme spec. When I change that too, the switching works. However, I still think this is kinda hack/workaround, and that a proper source switching should be possible.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on September 26, 2024

Jan, thanks for the feature request. I'm glad that you got it working.

Can you describe how the user experience could be improved over your current solution with a feature specifically designed to support switching sources?

from flutter-vector-map-tiles.

zegkljan avatar zegkljan commented on September 26, 2024

User experience wouldn't be affected, but it would be less confusing for the developers.

What really threw me off was that not only the tiles are cached, but also the thing that provides the tiles is cached too. I wouldn't be surprised if tiles that were recently used would be reused from the cache, but I was really surprised that the procedure to obtain yet unused tiles is cached too.

Maybe there are reasons why it is the way it is, I did not study the code in depth. If the source switching feature is problematic, maybe providing a warning/info/how-to for such non-intuitive scenarios would help, so that others don't have to waste time learning this too.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on September 26, 2024

Thanks for the detail, you're right - it's not obvious. Thanks for the detail.

from flutter-vector-map-tiles.

greensopinion avatar greensopinion commented on September 26, 2024

I have no plans to address this. Feel free to submit a PR if you want.

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.