Comments (3)
Heya. I think I had similar problems with my original version. There seemed to be 2 main causes, 1) was obviously nothing to show :). The 2nd one was sometimes flutter seemed to miss several frames between swapping in the transparent image fallback It felt like a swap in widget "types" was the cause (as thought it couldn't transition nicely from a canvas to an image or back), and I ended up with some convoluted solution holding back the old tile canvas. It almost felt like I was having a backup for the transparent tile :D.
I'm not sure what entirely to suggest there (I got around it with my own separate system, rather than within the current tile system). So just out of interest, I ended up giving up on the whole flutter_map tile loading and doing my own. I always felt like I was fighting it too much (but I also feel this strays from leaflet design so you may not like that approach). I may be straying though, and missed what the problem is in your case.
I didn't like the idea of pinchzooming when having to draw backup canvas (and redrawing the paths), and the current paths, it felt too much, so I tried to come up with a solution that only loaded desired tiles if necessary. In the latest version I also swapped from multiple separate tile canvases to one large canvas which is full screen (+ allow for rotation), and simply drawing direct onto that canvas. Juries out which is the better setup, but I prefer to work with this method. Note, you can also draw images onto the canvas, so you can draw normal raster tiles onto the canvas as well! Works pretty much as well as the normal method for raster tiles and you don't need positioned Widgets etc.
Just as an aside, I think when I looked at the last version there were hairline gaps between the tiles. I think I had similar, which was typically either anti-aliasing needed turning off, or rounding on the tile/canvas positioning.
from flutter-vector-map-tiles.
Thanks for the ideas
Just as an aside, I think when I looked at the last version there were hairline gaps between the tiles. I think I had similar, which was typically either anti-aliasing needed turning off, or rounding on the tile/canvas positioning.
I'm tracking this as issue #4
from flutter-vector-map-tiles.
Done.
from flutter-vector-map-tiles.
Related Issues (20)
- 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
- Blurred and Overly-Shadowed Sprites
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.