Conversation
Should be ok to rename it to
How does flutter_map handle this? Does it: a) Draw each tile multiple times - e.g. draw each tile separately for each visible repetition of the world b) Draw the entire world again - meaning, we render the world once, and then re-use the same world texture for the repetitions First one would result in some performance penalties with the current implementation, since it'll require additional draw calls. However, the second one should be OK in terms of performance, since we can take the |
|
Hi, any updates on the GPU vector tiles along with latest flutter_map |
|
Hey @aytunch! Please correct me if I'm wrong @kekland, but in the end, the main vector tiles library released a prerelease which seems to be looking very promising https://pub.dev/packages/vector_map_tiles/versions/10.0.0-beta.2. So I think this probably won't be worked on any more (by this I mean this PR and this library). I would look to use that prerelease instead - although it does need flutter_gpu which is in preview (Flutter GPU (view)) so your mileage in production may vary. In terms of the better integration with flutter_map through the Modern Tile Layer, fleaflet/flutter_map#2120 is open. However, I'm the only person working on it at the moment, and (fully understandably!) the maintainers of the main plugin don't want to get involved with it until it's pretty much ready to go. And it's a long way off from that since they do lots of special things that make it hard to have any reasonable base. So whilst I really do want to keep working on it, I'm struggling to find motivation to progress any further without any more certainty. |
|
Yep, for the meantime I decided not to pursue this any further due to:
I may revisit this later in the future, but for now I'd recommend using the already existing vector tiles plugin. |
This is still a work in progress.
double tileSize->int tileDimensionis the biggest change throughout; I'm not 100% sure where the boundary is to stop renaming and changing the type - I guess the stylesheet must keep "tileSize"?At some point, some coordination is planned to create a more versatile flutter_map tile layer, which can be more easily extended for a raster layer within FM, and other vector layers. This will mean a reduction of copied code, benefit from updates to the tile layer handler, and mean unbounded horizontal scrolling will be free. Other existing plugins can also take advantage of this.