Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMTS layers #903

Open
AlexanderSolovov opened this issue Jun 17, 2024 · 9 comments
Open

WMTS layers #903

AlexanderSolovov opened this issue Jun 17, 2024 · 9 comments
Labels
bug Something isn't working
Milestone

Comments

@AlexanderSolovov
Copy link

The map viewer seem to have a number of issues with WMTS layers.

  1. When I publish a record with WMTS API reference, this record is not displayed in the Add layer form and cannot be searched.
  2. Even if I add WMTS layer through the Services tab or by searching in the catalogue, it is not displayed in the legend.
  3. If I try to save or download the map with WMTS layers, nothing happens and JavaScript console shows the error "TypeError: b.getParams is not a function"
@AlexanderSolovov AlexanderSolovov added the bug Something isn't working label Jun 17, 2024
@jahow
Copy link
Collaborator

jahow commented Jun 17, 2024

Hello, thank you for your interest in the project!

Could you please provide a reproduction case, either the full record in XML that you're using or the WMTS URL?

Thank you!

@AlexanderSolovov
Copy link
Author

AlexanderSolovov commented Jun 17, 2024

As a simple case, I open the map and add WMTS layer through the Services tab using this ULR - http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts and selecting "Bakgrunnskart forenklet" layer. The console shows an error. Same error if I try to download the map. The legend is empty.

AddLayer
Legend
DownloadMap

@AlexanderSolovov
Copy link
Author

Btw, there is probably one more bug with application/vnd.mapbox-vector-tile format. If it is available from the server, the map seem to pick it up automatically (cannot change to image/png for instance), but the layer is not displayed. After removing application/vnd.mapbox-vector-tile from available formats, the layer is displayed. Tested with local GeoServer.

@jahow
Copy link
Collaborator

jahow commented Jun 17, 2024

It looks like you're using the legacy GeoNetwork frontend, which is hosted here: https://github.com/geonetwork/core-geonetwork. This repo is for GeoNetwork-UI which is a more modern frontend.

Could you please recreate your bug report there so that it can be looked at appropriately? Thanks!

@AlexanderSolovov
Copy link
Author

I see. I wanted to try demo (https://geonetwork.github.io/geonetwork-ui/main/demo/webcomponents/gn-map-viewer.sample.html) but it doesn't work.

Should I report then to core-geonetwork? Can it be fixed there?

@jahow
Copy link
Collaborator

jahow commented Jun 17, 2024

This application is indeed provided by GeoNetwork-UI. The screenshots that you included earlier were not.

Let's keep this bug opened and try to fix it here then :)

@jahow
Copy link
Collaborator

jahow commented Jun 17, 2024

In the Datahub a record with this WMTS will render correctly; I did that locally and here is what was shown:

image

@AlexanderSolovov
Copy link
Author

Yes, the layer is rendered on the map (unless it is vnd.mapbox-vector-tile format). The issues were saving a map with WMTS layers, searching it and showing a legend. Not sure if it is applicable to the new UI apps.

@jahow
Copy link
Collaborator

jahow commented Jun 17, 2024

I think this is an issue to report on https://github.com/geonetwork/core-geonetwork indeed, if that's what you are using.

@jahow jahow added this to the 2.4.0 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants