-
-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] tileSize
parameter is broken
#1669
Comments
Just to note, they are not all necessarily supposed to be centered on England. However, when changing the FM tile size setting, the map does just 'jump' to a different location, which is incorrect. |
tileSize
parameter is broken
I have same issue. Tile request for 256 is 4x of 512 btw, which will affect cost. |
The issue occurs because of these lines: flutter_map/lib/src/geo/crs.dart Lines 62 to 66 in 6170df9
These assume a tile size of 256. Manually changing these to 512 when using However, fixing this is likely to be a little difficult, because the Therefore, there is an issue here of overall structure - the |
To fix this issue, use |
I can confirm this solution does work. |
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 #1668 (comment) 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: #1668 or create a map with
Do you have a potential solution?
Sorry no.
Platforms
Chrome
Severity
Erroneous: Prevents normal functioning and causes errors in the console
The text was updated successfully, but these errors were encountered: