diff --git a/lib/src/geo/latlng_bounds.dart b/lib/src/geo/latlng_bounds.dart index ddf841c00..70f862448 100644 --- a/lib/src/geo/latlng_bounds.dart +++ b/lib/src/geo/latlng_bounds.dart @@ -110,7 +110,7 @@ class LatLngBounds { final lambda3 = lambda1 + math.atan2(by, math.cos(phi1) + bx); // phi3 and lambda3 are actually in radians and LatLng wants degrees - return LatLng(radianToDeg(phi3), radianToDeg(lambda3)); + return LatLng(phi3 * radians2Degrees, lambda3 * radians2Degrees); } /// Checks whether [point] is inside bounds diff --git a/lib/src/gestures/map_interactive_viewer.dart b/lib/src/gestures/map_interactive_viewer.dart index 2f41ee40e..9f1af5562 100644 --- a/lib/src/gestures/map_interactive_viewer.dart +++ b/lib/src/gestures/map_interactive_viewer.dart @@ -486,7 +486,7 @@ class MapInteractiveViewerState extends State return; } - final currentRotation = radianToDeg(details.rotation); + final currentRotation = details.rotation * radians2Degrees; if (_dragMode) { _handleScaleDragUpdate(details); } else if (InteractiveFlag.hasMultiFinger(_interactionOptions.flags)) {