3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
260 stars 143 forks source link

JS Map State: transform initial extent on projection changes #4800

Closed rldhont closed 1 month ago

rldhont commented 1 month ago

If the map projection is not the same as the project projection, the initial extent stored by Map State has to be transform.

This fix the move to bad extent when you click on zoom to initial extent when the map projection is not the same as the project projection. Map projection and project projection could be different if the config still contains external base layers.