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

Make it possible to customize openlayers #46

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

maltaesousa
Copy link
Collaborator

Since the upgrade to Django 5.1, the old way of customizing OpenLayers widget in the admin is not working anymore. This PR makes it work again but in a better way by using a plugin and not by "hacking" the template as it was done before.

For now, it is possible to change the background layer and replace it with a WMTS. By default, swisstopo backend is used:

image

all the config is done in the settings.py

@maltaesousa maltaesousa requested review from marionb and hbollon October 7, 2024 13:55
@hbollon
Copy link
Member

hbollon commented Oct 7, 2024

Hello @maltaesousa !
I don't think I can help with this PR sadly, I'm from Infrastructure department of Camptocamp and I'm helping GS for K8S/Docker/CI/Automation stuff but I'm not really qualified on Geospatial/openlayers topics 😞
That said I still can help with Frontend/Backend as long as it doesn't really require geomatics skills 😄

@maltaesousa maltaesousa requested review from danduk82 and removed request for hbollon October 7, 2024 14:23
@marionb
Copy link
Member

marionb commented Oct 15, 2024

Hi @maltaesousa
Thanks for the PR. I just got back from vacations this week. I will take a look at your PR this week, I reserved some time on Thursday morning to do a review.

@marionb
Copy link
Member

marionb commented Oct 18, 2024

Hi @maltaesousa
sorry for the delay but the PR looks good and works locally. After a rebase this is good to be merged.
Thanks!

@maltaesousa maltaesousa merged commit 6ef8e14 into camptocamp:master Oct 25, 2024
3 checks passed
@maltaesousa
Copy link
Collaborator Author

Thanks @marionb ! It was my time to be back from vacations :)

lanseg added a commit that referenced this pull request Nov 27, 2024
(feat): GSGGR-186 Make it possible to define default extent from an url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants