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
When setting visibility limits on a layer, for example on the current visualization scale, those limits are respected and the layer, for example if we set it invisible, the layer will disappear from the visualization of the map and this is correct.
When looking at the same map, switching the projection to EPSG:4326
We can see the visibility limits scale will change and the visibility limits seem not to be respected for the current visualization of the map in a different projection.
See video attached
What we ideally look for is to keep the same visualization limits and see no change in the layers visualization behaviour.
The issue happens when some visibility limits are defined and then a crs for the map is changed
at this point the value of maxResolution and/or minResolution (it depends which one you have defined) are not updated accordingly in side layers properties ( state.layers.flat.layers[...] )
on a technical point of view when CHANGE_MAP_CRS is changed these two values are not updated accordingly.
we have to make sure that this is done, and maybe transform the CHANGE_MAP_CRS into a thunk action so that it can fetch info from state if needed to recalculate these values probably using
Description
When setting visibility limits on a layer, for example on the current visualization scale, those limits are respected and the layer, for example if we set it invisible, the layer will disappear from the visualization of the map and this is correct.
When looking at the same map, switching the projection to EPSG:4326
We can see the visibility limits scale will change and the visibility limits seem not to be respected for the current visualization of the map in a different projection.
See video attached
What we ideally look for is to keep the same visualization limits and see no change in the layers visualization behaviour.
Ticket attachments :
1.recording_1.mp4
How to reproduce
Expected Result
visibility limits gets recalculated on map crs change
Current Result
this are not recalculated correctly and layer may disappear
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The issue happens when some visibility limits are defined and then a crs for the map is changed
at this point the value of maxResolution and/or minResolution (it depends which one you have defined) are not updated accordingly in side layers properties ( state.layers.flat.layers[...] )
on a technical point of view when CHANGE_MAP_CRS is changed these two values are not updated accordingly.
we have to make sure that this is done, and maybe transform the CHANGE_MAP_CRS into a thunk action so that it can fetch info from state if needed to recalculate these values probably using
MapStore2/web/client/utils/MapUtils.js
Lines 403 to 410 in 9e07128
The text was updated successfully, but these errors were encountered: