Skip to content

Commit

Permalink
Merge pull request #96 from empowerplan/feature/multiple_basemaps
Browse files Browse the repository at this point in the history
Add basemap for data visualization
  • Loading branch information
nesnoj authored Apr 24, 2024
2 parents 3cbb007 + 31b3073 commit 5db0265
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 323 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
115 changes: 0 additions & 115 deletions digiplan/static/images/layer_ctrl_default.svg

This file was deleted.

Loading

0 comments on commit 5db0265

Please sign in to comment.