Add icon and color examples

This commit is contained in:
Steph Ango
2025-10-06 12:26:16 -07:00
parent 35002d844a
commit 47d391cc50
3 changed files with 14 additions and 1 deletions

View File

@@ -4,8 +4,8 @@ categories:
tags: tags:
- places - places
type: type:
- "[[Shrines]]"
- "[[Parks]]" - "[[Parks]]"
- "[[Shrines]]"
loc: loc:
- "[[Kyoto]]" - "[[Kyoto]]"
- "[[Japan]]" - "[[Japan]]"

View File

@@ -1,6 +1,8 @@
--- ---
tags: tags:
- places/types - places/types
icon: trees
color: green
--- ---
## Places ## Places

View File

@@ -2,6 +2,9 @@ filters:
and: and:
- categories.contains(link("Places")) - categories.contains(link("Places"))
- '!file.name.contains("Template")' - '!file.name.contains("Template")'
formulas:
Icon: list(type)[0].asFile().properties.icon
Color: list(type)[0].asFile().properties.color
properties: properties:
note.type: note.type:
displayName: Type displayName: Type
@@ -22,6 +25,7 @@ views:
- loc - loc
- type - type
- last - last
- formula.Icon
sort: sort:
- property: last - property: last
direction: DESC direction: DESC
@@ -31,6 +35,8 @@ views:
direction: ASC direction: ASC
defaultZoom: 2 defaultZoom: 2
coordinates: note.coordinates coordinates: note.coordinates
markerIcon: formula.Icon
markerColor: formula.Color
- type: map - type: map
name: Location name: Location
filters: filters:
@@ -53,6 +59,8 @@ views:
note.type: 199 note.type: 199
coordinates: note.coordinates coordinates: note.coordinates
defaultZoom: 10.6 defaultZoom: 10.6
markerIcon: formula.Icon
markerColor: formula.Color
- type: map - type: map
name: Type name: Type
filters: filters:
@@ -62,6 +70,7 @@ views:
- file.name - file.name
- rating - rating
- type - type
- formula.Color
sort: sort:
- property: last - property: last
direction: DESC direction: DESC
@@ -76,3 +85,5 @@ views:
note.type: 199 note.type: 199
coordinates: note.coordinates coordinates: note.coordinates
defaultZoom: 3.1 defaultZoom: 3.1
markerIcon: formula.Icon
markerColor: formula.Color