Skip to content

Commit 47d391c

Browse files
committed
Add icon and color examples
1 parent 35002d8 commit 47d391c

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

References/Fushimi Inari.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ categories:
44
tags:
55
- places
66
type:
7-
- "[[Shrines]]"
87
- "[[Parks]]"
8+
- "[[Shrines]]"
99
loc:
1010
- "[[Kyoto]]"
1111
- "[[Japan]]"

References/Parks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
tags:
33
- places/types
4+
icon: trees
5+
color: green
46
---
57

68
## Places

Templates/Bases/Map.base

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ filters:
22
and:
33
- categories.contains(link("Places"))
44
- '!file.name.contains("Template")'
5+
formulas:
6+
Icon: list(type)[0].asFile().properties.icon
7+
Color: list(type)[0].asFile().properties.color
58
properties:
69
note.type:
710
displayName: Type
@@ -22,6 +25,7 @@ views:
2225
- loc
2326
- type
2427
- last
28+
- formula.Icon
2529
sort:
2630
- property: last
2731
direction: DESC
@@ -31,6 +35,8 @@ views:
3135
direction: ASC
3236
defaultZoom: 2
3337
coordinates: note.coordinates
38+
markerIcon: formula.Icon
39+
markerColor: formula.Color
3440
- type: map
3541
name: Location
3642
filters:
@@ -53,6 +59,8 @@ views:
5359
note.type: 199
5460
coordinates: note.coordinates
5561
defaultZoom: 10.6
62+
markerIcon: formula.Icon
63+
markerColor: formula.Color
5664
- type: map
5765
name: Type
5866
filters:
@@ -62,6 +70,7 @@ views:
6270
- file.name
6371
- rating
6472
- type
73+
- formula.Color
6574
sort:
6675
- property: last
6776
direction: DESC
@@ -76,3 +85,5 @@ views:
7685
note.type: 199
7786
coordinates: note.coordinates
7887
defaultZoom: 3.1
88+
markerIcon: formula.Icon
89+
markerColor: formula.Color

0 commit comments

Comments
 (0)