Map Note

pending

by Isaiah Sarju

Add location notes that the Bases Map view will render.

2 starsUpdated 26d agoGPL-3.0Discovered via Obsidian Unofficial Plugins
View on GitHub

Node.js build GitHub Downloads (specific asset, all releases)

Requires Obsidian 1.10. Creates notes with the necessary properties to be rendered by the Obsidian Bases Map view.

Install

Use BRAT plugin while this is in beta.

Example Templates

You will need to specify a path to your template. To create a new note the plugin will fill in the template with values from OpenStreetMaps.

Simple - Bare minimum, coordinates as list

---
coordinates:
  - "{{lat}}"
  - "{{lon}}"
---

Simple - Bare minimum, coordinates as string

---
coordinates: "{{lat}}, {{lon}}"
---

Simple - Bare minimum with icon

---
coordinates:
  - "{{lat}}"
  - "{{lon}}"
icon: "{{lucide_icon}}"
---

Custom Example

---
coordinates:
  - "{{lat}}"
  - "{{lon}}"
address: "{{display_name}}"
icon: "{{lucide_icon}}"
color: "{{color}}"
recommended by:
osm: "{{osm_id}}"
concepts:
tags:
  - place
  - want-to-go
---

Data and Types

The OSM and plugin generated data is available for insertion into the template.

OSM Generated JSON Data and Types

Your template can have the following properties set. Bare minimum you need coordinates. You can use the following keys as {{key}} in your template file. lat and lon are required in the whatever field maps to the Bases Map view coordinates. See the official Obsidian Bases Map view guidance here.

keyvalue typeimportance
addresstypestringUsed as backup for icon resolution
boundingboxstring[]
classstringUsed as backup for icon resolution
display_namestringThe formal "address"
importancenumber
latstringLatitude. Required to add point on map
licencestring
lonstringLongitude. Required to add point on map
namestringUse for default file name
osm_idnumber
osm_typestring
place_idnumber
place_ranknumber
typestringUsed for icon resolution

Plugin Generated JSON Data and Types

Icons are rendered using lucide.dev.

keyvalue typeimportance
lucide_iconstringIcon that shows up on the map
colorstringA valid CSS value: hex, RGB, named color

Disclosures

Network Access

Uses Nominatim web API for accessing OpenStreetMaps Data.

LLM Usage

Limited use of LLMs during development. Reserved for synthesizing search results. No code has been generated using LLMs.

If committing to this project please indicate in code comments when and where LLMs or "AI" was used.

Greetz

Chunks of code plagiarized from anpigon's book search plugin, using my mind's artificial intelligence

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.