geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
412 stars 487 forks source link

Zoom issues on search map when displayed above the facets #7139

Open jeanpommier opened 1 year ago

jeanpommier commented 1 year ago

Describe the bug Hi, When I set the UI option "showMapInFacet": true, the search map is displayed just above the facets on the left. Problem is, the map is zoomed in too much, and I can't zoom out, which makes it pretty much useless

I first noticed it on a 4.2.2 instance, but still can reproduce it on a 4.2.4 instance

To Reproduce Steps to reproduce the behavior:

  1. Deploy GN 4.2.4 using the docker compose config
  2. Go on admin -> UI configuration, check the Display map in left column over search filter option
  3. go to the search tab, start a search
  4. Look at the search map (with results)

Expected behavior It should be zoomed at a level that would include all the bounding boxes of the results in the page

Screenshots Here's what I get on the classic search map display, and would expect image

Here is the map I'm getting with the UI option "showMapInFacet": true image and I can't zoom out

Desktop (please complete the following information):

jjohnston-aims commented 2 months ago

I can't see the Display map in left column over search filter option in v 4.2.9 so maybe it's fixed in newer versions.