From 440ad116e606694390e138d39d2fb4395b68c97a Mon Sep 17 00:00:00 2001 From: stani-m <89606745+stani-m@users.noreply.github.com> Date: Fri, 27 Mar 2026 12:42:29 +0100 Subject: [PATCH] Fix LatLngBounds overlap calculation --- lib/src/geo/latlng_bounds.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/geo/latlng_bounds.dart b/lib/src/geo/latlng_bounds.dart index 55e35f508..dcc908e1c 100644 --- a/lib/src/geo/latlng_bounds.dart +++ b/lib/src/geo/latlng_bounds.dart @@ -307,7 +307,7 @@ class LatLngBounds { delta += 360; } delta = delta.abs(); - return delta < longitudeWidth || delta < other.longitudeWidth; + return delta < (longitudeWidth + other.longitudeWidth) / 2; } @override