You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, a change (#10521) was introduced to enhance the OL map component by improving how it updates the map position based on the center, allowing for an acceptable decimal change (inspired by another map component in MS). This involved formulating a nearlyEqual function to determine when an update should occur. However, there are cases where the current value is smaller than the new value, resulting in a negative difference and causing the map update to be missed.
We would like to enhance this function to be versatile
How to reproduce
Open a map
Save the map with default center
Perform a query param such that the map is shifted to east so that latitude of new center is lesser than current center. try using this query param on a map with default saved center. Note: Make sure centerToMarker: true in mapInfo state.
Description
Recently, a change (#10521) was introduced to enhance the OL map component by improving how it updates the map position based on the center, allowing for an acceptable decimal change (inspired by another map component in MS). This involved formulating a
nearlyEqual
function to determine when an update should occur. However, there are cases where the current value is smaller than the new value, resulting in a negative difference and causing the map update to be missed.We would like to enhance this function to be versatile
How to reproduce
centerToMarker: true
inmapInfo
state.Expected Result
Map should recenter under valid case
Current Result
Map is not recentered in the above mentioned case
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The text was updated successfully, but these errors were encountered: