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
428 stars 489 forks source link

Open layer map does not render. It will only render when the window/browser resized. #7982

Closed wangf1122 closed 6 months ago

wangf1122 commented 6 months ago

This bug exited from the most recent version which can be found here: https://apps.titellus.net/geonetwork/srv/eng/catalog.search#/home

1) Log in as admin 2) Open your browser's debug tool and click on search button image 3) The map is not loaded at the first time image

4) Do a random window resizing. Map will show up and extra GET request is pulling the image in image

This could be a bug of open layer library??

archaeogeek commented 6 months ago

This might be the same bug as https://github.com/geonetwork/core-geonetwork/issues/7961

josegar74 commented 6 months ago

@archaeogeek I think is the same bug. I tried in debug mode and I can't reproduce the problem, but in normal mode it happens.

I've seen this kind of issues before (not with the map), and are usually related to some asynch information that is used, but not yet available.


If you go directly to the search page: http://localhost:8080/geonetwork/srv/eng/catalog.search#/search, the map is rendered properly. It happens when accessing to the search page from the home page.

josegar74 commented 6 months ago

Closing the ticket, same as https://github.com/geonetwork/core-geonetwork/issues/7961