Open pcba-dev opened 6 months ago
Related to #1689 / #1860 ?
In order to avoid regression, a solution would to add a named constructor like LatLngBounds.fromLTRB
(cf. Rect
) where the developer would be able to say "my left is 160 and my right is -140 so the middle is -170 (instead of 10)"
This needs re-triage after #1860 was merged.
This issue requires additional information in order to be resolved. However, there hasn't been any response within the last 3 weeks. If this issue still persists, please provide the requested information. This issue will be automatically closed in one week if there is no response.
I started coding something weeks ago. May PR one day.
What is the bug?
I want check if some bounds are contained (
LatLngBounds.contains
) or overlapping (LatLngBounds.isOverlapping
) another bound. In the case of bound boxes which wrap around the 180th meridian it fails since the current implementation does not account for it.How can we reproduce it?
Define bounds that wrap around the 180th meridian, and check if they contain another bound that is indeed contained.
Do you have a potential solution?
Platforms
any
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console