flutter_map
flutter_map copied to clipboard
[BUG] `tileSize` parameter is broken
What is the bug?
The TileProvider(tileSize: ) argument does not seem to produce desired maps when set to a value different than 256.
JaffaKetchup did testing in https://github.com/fleaflet/flutter_map/pull/1668#issuecomment-1738056062 here are the appropriate screenshots that show the issues:
These maps are all meant to be centered on England, and you can see that wrapping around the global does not work correctly.
If we also look at MapBox's Static API, a 512 tile, is the same as the 256 tile with the same x, y and z, just at a higher resolution.
How can we reproduce it?
Checkout the example Retina/TileSize page: https://github.com/fleaflet/flutter_map/pull/1668 or create a map with
TileLayer(
tileSize: 512
)
Do you have a potential solution?
Sorry no.
Platforms
Chrome
Severity
Erroneous: Prevents normal functioning and causes errors in the console