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.
1 parent 53e76fd commit 7594c2aCopy full SHA for 7594c2a
lib/src/map/camera/camera.dart
@@ -190,13 +190,13 @@ class MapCamera {
190
/// Jumps camera to opposite side of the world to enable seamless scrolling
191
/// between 180 and -180 longitude.
192
LatLng _adjustPositionForSeamlessScrolling(LatLng? position) {
193
- if (!crs.replicatesWorldLongitude) return position ?? center;
194
-
195
- final safePosition = position ?? center;
196
197
const bufferZoneSize = 10;
198
const worldWrap = 360;
199
const epsilon = 1e-6;
+
+ final safePosition = position ?? center;
+ if (!crs.replicatesWorldLongitude) return safePosition;
200
double lon = safePosition.longitude;
201
202
// Wrap longitude to [-180, 180] range efficiently
0 commit comments