geonetwork / geonetwork/core-geonetwork

Error when adding WMS layer to GeoNetwork Map - "no tile URL found"

Open
#4,064 9 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

**Describe the bug**
When I try to add a layer to map I got the following error messages:

Something went wrong while loading tile'- no tile URL found- ...'

but it is strange because if I zoom to the layer it is there.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Map'
2. Click on '+' sign and then "Search" to get the list of the existing layer
3. Choose one of them
4. The error appears in a popup

**Expected behavior**
The layer should appear on the map and the possibility to zoom to it should work

**Screenshots**
![Capture](https://user-images.githubusercontent.com/11272514/65676168-b4b04580-e04f-11e9-88eb-d2c3e9986e23.PNG)

**Desktop (please complete the following information):**
- Browser: Firefox
- GeoNetwork Version 3.8
- Server Application Tomcat 7.0.76

**Additional context**
Sometimes it seems that this error appears when you try to use this functionality the first time; then it works when you add a second layer. But it is a random behavior.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Map flow with an existing WMS layer, including the first and second layer additions, and observe the tile-loading request behind the popup. Trace where the tile URL is obtained and verify the fix by confirming that the layer renders without the error and that zooming to it still works.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.