From 7ee1ad61627f9a2af04f080cfa95a30f3c8e4525 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 31 Oct 2024 11:27:20 +0800 Subject: 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 --- src/dumbyUtils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dumbyUtils.mjs') 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) => { // Return anchor element with Geo Scheme const a = document.createElement('a') - a.className = 'not-geolink from-text' + a.className = 'not-geolink from-geocoding' a.href = `geo:0,0?xy=${x},${y}` a.textContent = match.at(0) return a -- cgit v1.2.3-70-g09d2