We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zoomOffset
1 parent 13db5de commit ebc5622Copy full SHA for ebc5622
lib/src/layer/tile_layer/tile_coordinates.dart
@@ -77,10 +77,11 @@ class TileCoordinatesResolver {
77
if (!replicatesWorldLongitude) {
78
return positionCoordinates;
79
}
80
- if (positionCoordinates.z < 0) {
+ final z = positionCoordinates.z + zoomOffset;
81
+ if (z < 0) {
82
83
- final modulo = 1 << (positionCoordinates.z + zoomOffset);
84
+ final modulo = 1 << z;
85
int x = positionCoordinates.x;
86
while (x < 0) {
87
x += modulo;
0 commit comments