From 47d391cc5065fc3777fc83d0d962e2537850cb29 Mon Sep 17 00:00:00 2001 From: Steph Ango <10565871+kepano@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:26:16 -0700 Subject: [PATCH] Add icon and color examples --- References/Fushimi Inari.md | 2 +- References/Parks.md | 2 ++ Templates/Bases/Map.base | 11 +++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/References/Fushimi Inari.md b/References/Fushimi Inari.md index ea00f66..d7abb87 100644 --- a/References/Fushimi Inari.md +++ b/References/Fushimi Inari.md @@ -4,8 +4,8 @@ categories: tags: - places type: - - "[[Shrines]]" - "[[Parks]]" + - "[[Shrines]]" loc: - "[[Kyoto]]" - "[[Japan]]" diff --git a/References/Parks.md b/References/Parks.md index 4cbd36a..7f8ca12 100644 --- a/References/Parks.md +++ b/References/Parks.md @@ -1,6 +1,8 @@ --- tags: - places/types +icon: trees +color: green --- ## Places diff --git a/Templates/Bases/Map.base b/Templates/Bases/Map.base index caa2a20..cc5d542 100644 --- a/Templates/Bases/Map.base +++ b/Templates/Bases/Map.base @@ -2,6 +2,9 @@ filters: and: - categories.contains(link("Places")) - '!file.name.contains("Template")' +formulas: + Icon: list(type)[0].asFile().properties.icon + Color: list(type)[0].asFile().properties.color properties: note.type: displayName: Type @@ -22,6 +25,7 @@ views: - loc - type - last + - formula.Icon sort: - property: last direction: DESC @@ -31,6 +35,8 @@ views: direction: ASC defaultZoom: 2 coordinates: note.coordinates + markerIcon: formula.Icon + markerColor: formula.Color - type: map name: Location filters: @@ -53,6 +59,8 @@ views: note.type: 199 coordinates: note.coordinates defaultZoom: 10.6 + markerIcon: formula.Icon + markerColor: formula.Color - type: map name: Type filters: @@ -62,6 +70,7 @@ views: - file.name - rating - type + - formula.Color sort: - property: last direction: DESC @@ -76,3 +85,5 @@ views: note.type: 199 coordinates: note.coordinates defaultZoom: 3.1 + markerIcon: formula.Icon + markerColor: formula.Color