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

Add basemap for data visualization #96

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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