Add safeguard when zooming to collection bbox to not exceed view projection extent.
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 3
- Avg merge
- 1h 48m
- Merged PRs (30d)
- 2
Description
When STAC collection has a global bbox, then for example for a polar projection display, the coordinates are out of bounds and the openlayers map throws incorrect coordinate error, map zooms to z=0, x=-180 and y=-90 and breaks. Also happens for completely incorrect bbox set on collection.
As data are not always under our control, we have to add safe-guard into eodash when zooming to collection extent to always care also for projection max extent and choose the smaller of those 2.
ref https://github.com/gtif-cerulean/cerulean-catalog/issues/71
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the collection-bbox zoom entry point and reproduce the failure with a global or invalid bbox in a polar projection. Verify that the chosen extent respects the projection's maximum extent and that the map no longer throws an incorrect-coordinate error or falls back to z=0, x=-180, y=-90.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100