From 35002d844a2aca886c4736696f1746a462bfaba9 Mon Sep 17 00:00:00 2001 From: Steph Ango <10565871+kepano@users.noreply.github.com> Date: Mon, 6 Oct 2025 12:18:58 -0700 Subject: [PATCH] Switch to Obsidian Maps --- .obsidian/snippets/stock-charts.css | 48 ------------------ .obsidian/types.json | 2 +- Categories/Places.md | 9 +--- References/Fushimi Inari.md | 2 +- References/Kyoto.md | 16 +----- References/Parks.md | 9 ++++ Templates/Bases/Map.base | 78 +++++++++++++++++++++++++++++ Templates/City Template.md | 16 +----- Templates/Map Template.md | 14 ------ Templates/Place Type Template.md | 10 +--- 10 files changed, 95 insertions(+), 109 deletions(-) delete mode 100644 .obsidian/snippets/stock-charts.css create mode 100644 References/Parks.md create mode 100644 Templates/Bases/Map.base delete mode 100644 Templates/Map Template.md diff --git a/.obsidian/snippets/stock-charts.css b/.obsidian/snippets/stock-charts.css deleted file mode 100644 index beca825..0000000 --- a/.obsidian/snippets/stock-charts.css +++ /dev/null @@ -1,48 +0,0 @@ -/* Stocks */ -.stock-cards { - margin: 2em 0; - width: 100%; - display: flex; - flex-flow: row wrap; - gap: 6px; - justify-content: center; - - & .stock-card { - position: relative; - a { - cursor: pointer; - position: absolute; - width: 100%; - height: 100%; - } - &:hover .stock-card-inner { - background-color: var(--background-primary); - } - } -} - -.stock-chart, .stock-financials, .stock-card-inner { - box-sizing: border-box; - display: block; - border: 1px solid var(--background-modifier-border); - border-radius: var(--radius-m); - background-color: var(--background-primary); -} -.stock-chart { - width: 100%; - min-height: 340px; - height: 40vh; - margin-bottom: 1em; -} -.stock-container { - width: var(--line-width); - margin: 0 auto; -} -.stock-financials { - width: 100%; - height: 800px; -} -.stock-card-inner { - height: 94px; - width: 270px; -} \ No newline at end of file diff --git a/.obsidian/types.json b/.obsidian/types.json index 16b8b49..095b11c 100644 --- a/.obsidian/types.json +++ b/.obsidian/types.json @@ -12,7 +12,7 @@ "topics": "multitext", "rating": "number", "year": "number", - "location": "multitext", + "coordinates": "multitext", "model": "text", "lotsqft": "number", "isbn13": "number", diff --git a/Categories/Places.md b/Categories/Places.md index 73063e6..5f171fe 100644 --- a/Categories/Places.md +++ b/Categories/Places.md @@ -2,13 +2,6 @@ tags: - categories --- -```leaflet -id: places -markerTag: places -maxZoom:15 -height:400px -``` - -## Places +![[Map.base]] ![[Places.base]] diff --git a/References/Fushimi Inari.md b/References/Fushimi Inari.md index 5c12e0a..ea00f66 100644 --- a/References/Fushimi Inari.md +++ b/References/Fushimi Inari.md @@ -11,7 +11,7 @@ loc: - "[[Japan]]" rating: 7 created: 2023-09-12 -location: +coordinates: - "34.9689499" - "135.7692576" --- diff --git a/References/Kyoto.md b/References/Kyoto.md index d02e97e..86cd34c 100644 --- a/References/Kyoto.md +++ b/References/Kyoto.md @@ -8,7 +8,7 @@ tags: - cities loc: - "[[Japan]]" -location: +coordinates: - "35.021041" - "135.7556075" rating: 7 @@ -18,19 +18,7 @@ created: 2023-09-12 ![[Trips.base#Location]] -## Map - -```leaflet -id: kyoto -minZoom: 7 -maxZoom: 20 -defaultZoom: 11 -markerTag: - - places -height: 400px -coordinates: [[Kyoto]] -``` - ## Places +![[Map.base#Location]] ![[Places.base#Location]] \ No newline at end of file diff --git a/References/Parks.md b/References/Parks.md new file mode 100644 index 0000000..4cbd36a --- /dev/null +++ b/References/Parks.md @@ -0,0 +1,9 @@ +--- +tags: + - places/types +--- + +## Places + +![[Map.base#Type]] +![[Places.base#Type]] \ No newline at end of file diff --git a/Templates/Bases/Map.base b/Templates/Bases/Map.base new file mode 100644 index 0000000..caa2a20 --- /dev/null +++ b/Templates/Bases/Map.base @@ -0,0 +1,78 @@ +filters: + and: + - categories.contains(link("Places")) + - '!file.name.contains("Template")' +properties: + note.type: + displayName: Type + note.rating: + displayName: Rating + note.loc: + displayName: Location + file.name: + displayName: Name + note.last: + displayName: Last +views: + - type: map + name: Map + order: + - file.name + - rating + - loc + - type + - last + sort: + - property: last + direction: DESC + - property: type + direction: ASC + - property: loc + direction: ASC + defaultZoom: 2 + coordinates: note.coordinates + - type: map + name: Location + filters: + or: + - list(loc).contains(this) + - list(loc).containsAny(this.related) + order: + - file.name + sort: + - property: last + direction: DESC + - property: type + direction: ASC + - property: loc + direction: ASC + columnSize: + file.name: 162 + note.rating: 84 + note.loc: 145 + note.type: 199 + coordinates: note.coordinates + defaultZoom: 10.6 + - type: map + name: Type + filters: + and: + - list(type).contains(this) + order: + - file.name + - rating + - type + sort: + - property: last + direction: DESC + - property: type + direction: ASC + - property: loc + direction: ASC + columnSize: + file.name: 162 + note.rating: 84 + note.loc: 145 + note.type: 199 + coordinates: note.coordinates + defaultZoom: 3.1 diff --git a/Templates/City Template.md b/Templates/City Template.md index 02d34e3..2391d09 100644 --- a/Templates/City Template.md +++ b/Templates/City Template.md @@ -10,7 +10,7 @@ loc: rating: created: {{date}} last: -location: +coordinates: - "35.021041" - "135.7556075" --- @@ -18,19 +18,7 @@ location: ![[Trips.base#Location]] -## Map - -```leaflet -id: kyoto -minZoom: 10 -maxZoom: 20 -defaultZoom: 12 -markerTag: - - places -height: 400px -coordinates: [[Kyoto]] -``` - ## Places +![[Map.base#Location]] ![[Places.base#Location]] \ No newline at end of file diff --git a/Templates/Map Template.md b/Templates/Map Template.md deleted file mode 100644 index 913f84f..0000000 --- a/Templates/Map Template.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -tags: - - maps ---- - -```leaflet -id: nyc -minZoom: 10 -maxZoom: 20 -defaultZoom: 12 -linksTo: [[New York]] -height: 400px -coordinates: [[New York]] -``` \ No newline at end of file diff --git a/Templates/Place Type Template.md b/Templates/Place Type Template.md index 5a62cab..4cbd36a 100644 --- a/Templates/Place Type Template.md +++ b/Templates/Place Type Template.md @@ -3,15 +3,7 @@ tags: - places/types --- -```leaflet -id: restaurants -linksTo: [[Pizzerias]] -minZoom: 3 -maxZoom: 20 -defaultZoom: 3 -height: 400px -``` - ## Places +![[Map.base#Type]] ![[Places.base#Type]] \ No newline at end of file