Skip to content

Setting the map projection crashes MapStore if resolutions configured in new.json file with a different projection #11779

@mahmoudadel54

Description

@mahmoudadel54

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

  • Not browser related
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

Metadata

Metadata

Assignees

Labels

BackportNeededCommits provided for an issue need to be backported to the milestone's stable branchbug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions