Skip to content

Commit

Permalink
fallback to background if type is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Sep 17, 2024
1 parent 73e4b68 commit a8aec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata_catalogue/maps/libs/maplibre.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def map_to_style(map: Map, request) -> MapStyle:

# These arguments can be overrided
extra_args = {
"type": source.type,
"type": maplibre_source.type if maplibre_source and maplibre_source.type else "background",
"layout": {"visibility": "none" if layer.hidden and not layer.is_lazy else "visible"},
"attribution": source.attribution,
**source.style,
Expand Down

0 comments on commit a8aec1f

Please sign in to comment.