diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-31 11:27:20 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-31 12:01:51 +0800 |
commit | 7ee1ad61627f9a2af04f080cfa95a30f3c8e4525 (patch) | |
tree | cff733c310788f802fe00fbcdd8f4054a3ef4075 /src/dumbyUtils.mjs | |
parent | 2bcad7ff9a42ad39a4b2f24c4af9b6a5578ba1fd (diff) |
feat: add menu-item for Geocoding
* Use nominatim for API calls
* Create multiple GeoLinks for each results in response
* Also add menu-item DELETE to remove duplicated GeoLinks from one
Geocoding
Diffstat (limited to 'src/dumbyUtils.mjs')
-rw-r--r-- | src/dumbyUtils.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbyUtils.mjs b/src/dumbyUtils.mjs index 975833b..8110e82 100644 --- a/src/dumbyUtils.mjs +++ b/src/dumbyUtils.mjs | |||
@@ -144,7 +144,7 @@ export const addGeoSchemeByText = async (node) => { | |||
144 | 144 | ||
145 | // Return anchor element with Geo Scheme | 145 | // Return anchor element with Geo Scheme |
146 | const a = document.createElement('a') | 146 | const a = document.createElement('a') |
147 | a.className = 'not-geolink from-text' | 147 | a.className = 'not-geolink from-geocoding' |
148 | a.href = `geo:0,0?xy=${x},${y}` | 148 | a.href = `geo:0,0?xy=${x},${y}` |
149 | a.textContent = match.at(0) | 149 | a.textContent = match.at(0) |
150 | return a | 150 | return a |