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 backgrounds for thumbnails #11554

Closed
giohappy opened this issue Oct 3, 2023 · 0 comments · Fixed by #11555
Closed

WMTS backgrounds for thumbnails #11554

giohappy opened this issue Oct 3, 2023 · 0 comments · Fixed by #11555
Assignees
Labels
feature A new feature to be added to the codebase master

Comments

@giohappy
Copy link
Contributor

giohappy commented Oct 3, 2023

A new client will be implemented to fetch WMTS background maps for thumbnails.
For the moment it will only support EPSG:3857 tile matrix sets.

A WMTS for thumbnail backgrounds can be configured with the already existing THUMBNAIL_BACKGROUND setting.
Example:

THUMBNAIL_BACKGROUND = {
"class": "geonode.thumbs.background.GenericWMTSBackground",
    "options": {
        'url': "https://mayservice.com/WMTS",
        "layer": "mylayer_3857",
        "style": "default",
        "tilematrixset": "default",
        "minscaledenominator": 272989.38673236995 # optional
    }
}

The minscaledenominator option can be set to limit the available "levels" when calculating the optimal tile matrix for the background.

@giohappy giohappy self-assigned this Oct 3, 2023
@giohappy giohappy added feature A new feature to be added to the codebase master labels Oct 3, 2023
giohappy added a commit that referenced this issue Oct 5, 2023
…ilematricsets) (#11555)

* Implement WMTS backgrounds for thumbnails (only 3857 tilematricsets)

* use fictious WMTS service url

* fix E501
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature to be added to the codebase master
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant