Comments (5)
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.
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.
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.
Thanks for the detail, you're right - it's not obvious. Thanks for the detail.
from flutter-vector-map-tiles.
I have no plans to address this. Feel free to submit a PR if you want.
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.