Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
20
stars
31
forks
source link
fix(zoom-extent) - Safer zoomToExtent function, preventing an infinite loop in OpenLayers #2322
Closed
Alex-NRCan closed 1 week ago
Description
Safer zoomToExtent function, preventing an infinite loop in OpenLayers.
Type of change
How Has This Been Tested?
Hosted, June 27th, 11h30: https://alex-nrcan.github.io/geoview/demos-navigator.html?config=./configs/navigator/14-wms-layer.json 1- Zoom to Ice Cover layer 2- Notice how it doesn't break the application and causing an infinite loop anymore (open console to see the infinite loop in upstream)
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changesThis change is![Reviewable](https://reviewable.io/review_button.svg)