core-geonetwork
core-geonetwork copied to clipboard
Editor map doesn't zoom to geometry when WMC file is used
Describe the bug When the editor map is configured to load a web map context the map doesn't appear zoomed to the geometry bounding box.
To Reproduce Steps to reproduce the behavior:
- Configure the editor map to use
../../map/config-viewer.xml
as source in Admin console -> Settings -> UI Settings -> Editor Maps Configuration and remove the default Layer{"type":"osm"}
- Create a new metadata record.
- Add a bounding box and save the record
- Scroll to the map and check that the bounding box entered in step 3 has not been zoomed.
Expected behavior When using a web map context file the editor map should zoom to the geometry bounding box as it does when no WMC file is used.
Screenshots
Using the default map configuration the map zooms to the geometry
Using a web map context file the map doesn't zoom to the geometry:
Desktop (please complete the following information): Tested in:
- Browser Chrome 81
- GeoNetwork Version 3.10.3-SNAPSHOT