Description
Setting the map projection as admin causes MapStore to crash with error "Out of Memory" if there are some resolutions preset in new.json file with a different projection rather than the selected one.
How to reproduce
- in new.json file add resolutions array in map.mapOptions.view for a projection like: 3857
- add new map resource
- select a different CRS from CRS selector like: 4326
- the app will crash
Expected Result
Selection CRS should be done smoothly without any crash
Current Result
The mapstore crash
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)
| Browser Affected |
Version |
| Internet Explorer |
|
| Edge |
|
| Chrome |
|
| Firefox |
|
| Safari |
|
Other useful information