mirror of
https://gitlab.com/mrubli/hugo-mod-leaflet.git
synced 2025-10-07 01:54:24 +00:00
layouts: map: Allow customizing track color and opacity
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
map_options_{{ $uniqueMapId }}.tracks.push({
|
map_options_{{ $uniqueMapId }}.tracks.push({
|
||||||
source: {{ .Get "path" }},
|
source: {{ .Get "path" }},
|
||||||
title: {{ .Get "title" | default ("null" | safeJS) }},
|
title: {{ .Get "title" | default ("null" | safeJS) }},
|
||||||
|
color: {{ .Get "color" | default ("null" | safeJS) }},
|
||||||
|
opacity: {{ .Get "opacity" | default ("null" | safeJS) }},
|
||||||
// Internal use, ignored by quip-maps
|
// Internal use, ignored by quip-maps
|
||||||
downloadable: {{ .Get "downloadable" | default "true" | safeJS }},
|
downloadable: {{ .Get "downloadable" | default "true" | safeJS }},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user