diff --git a/CHANGELOG.md b/CHANGELOG.md index 676c289a..0ee67aa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] ### Added +- basemap for data visualization - coupling of duplicated map panel controls - dependabot - key results for wind, pv ground and pv roof settings panels diff --git a/config/settings/base.py b/config/settings/base.py index 59bfaf63..544373bb 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -282,6 +282,24 @@ def __getitem__(self, item): # noqa: D105, ANN001, ANN204 MAP_ENGINE_Y_OFFSET = 1 # Defines how many tiles to the bottom are added at first level MAP_ENGINE_MAX_DISTILLED_ZOOM = 13 +MAP_ENGINE_BASEMAPS = [ + setup.MaptilerBasemap( + "satellite", + source_id="satellite", + type="raster", + description="Satellite basemap view", + image="django_mapengine/images/layer_ctrl_satellite.svg", + ), + setup.MaptilerBasemap( + "dataviz", + source_id="dataviz", + type="raster", + format="png", + description="Data visualization view", + image="django_mapengine/images/layer_ctrl_default.svg", + ), +] + MAP_ENGINE_IMAGES = [ setup.MapImage("wind", "images/icons/map_wind.png"), setup.MapImage("pv", "images/icons/map_pv.png"), diff --git a/digiplan/static/images/layer_ctrl_default.svg b/digiplan/static/images/layer_ctrl_default.svg deleted file mode 100644 index f00732f5..00000000 --- a/digiplan/static/images/layer_ctrl_default.svg +++ /dev/null @@ -1,115 +0,0 @@ - - - - diff --git a/digiplan/static/images/layer_ctrl_satellite.svg b/digiplan/static/images/layer_ctrl_satellite.svg deleted file mode 100644 index 3f0ff847..00000000 --- a/digiplan/static/images/layer_ctrl_satellite.svg +++ /dev/null @@ -1,189 +0,0 @@ - - - - diff --git a/digiplan/templates/components/toggle_view.html b/digiplan/templates/components/toggle_view.html index f04a5fe5..6784c0eb 100644 --- a/digiplan/templates/components/toggle_view.html +++ b/digiplan/templates/components/toggle_view.html @@ -1,4 +1,5 @@ -{% load i18n %} +{% load static %} +{% load i18n %}