mirror of
https://github.com/blamouche/obsidian-geocode-note.git
synced 2026-07-22 14:00:27 +00:00
Replace Leaflet + CARTO Voyager with MapLibre GL JS rendering OpenFreeMap vector tiles (`bright` / `dark` auto-switched on Obsidian theme) to match the visual style of Obsidian's built-in Bases maps. Covers both the geocoder modal preview and the geocode-map code block, and rebuilds the modal marker live on icon/color changes. Also fix the experimental Obsidian Maps locate button stacking on top of the native MapLibre GeolocateControl now shipped by Bases, and scrub stale buttons on load. Bump esbuild target to es2020 (MapLibre uses BigInt literals). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
27 lines
670 B
JSON
27 lines
670 B
JSON
{
|
|
"name": "obsidian-geocode-note",
|
|
"version": "1.5.0",
|
|
"description": "Add geographic coordinates to Obsidian notes",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production"
|
|
},
|
|
"keywords": [],
|
|
"author": "Benoit Lamouche",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^16.11.6",
|
|
"@typescript-eslint/parser": "^8.58.2",
|
|
"builtin-modules": "3.3.0",
|
|
"esbuild": "0.17.3",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-obsidianmd": "^0.1.9",
|
|
"obsidian": "latest",
|
|
"tslib": "2.4.0",
|
|
"typescript": "5.5.4"
|
|
},
|
|
"dependencies": {
|
|
"maplibre-gl": "^5.23.0"
|
|
}
|
|
}
|