layouts: map: Allow customizing track color and opacity

This commit is contained in:
Martin Rubli
2023-12-30 18:55:44 +01:00
parent 5991d8527f
commit 4e3d0a9626

View File

@@ -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 }},
}) })