aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/editor.mjs
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-14 14:47:04 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-14 16:57:34 +0800
commit5d4a43abb181ae4fd63d2365210ea4949f10012e (patch)
tree733f756c9a4bc635b9c56a33b374ff9ee7e99961 /src/editor.mjs
parent01b1b9e76cea73ddbe3cdf4bee524b61c182b14d (diff)
feat: improve GeoLink generation
* Stop searching pattern by linkify, Add links with geo URI scheme by async function instead * Search text nodes with patterns, and replace them with links * Add checker for valid degree/meter coordinated * Add query string "xy" anyway
Diffstat (limited to 'src/editor.mjs')
-rw-r--r--src/editor.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs
index df6e3bf..d13be58 100644
--- a/src/editor.mjs
+++ b/src/editor.mjs
@@ -2,7 +2,7 @@
2import { markdown2HTML, generateMaps } from './dumbymap' 2import { markdown2HTML, generateMaps } from './dumbymap'
3import { defaultAliases, parseConfigsFromYaml } from 'mapclay' 3import { defaultAliases, parseConfigsFromYaml } from 'mapclay'
4import * as menuItem from './MenuItem' 4import * as menuItem from './MenuItem'
5import { addAnchorByPoint, createGeoLink } from './dumbyUtils.mjs' 5import { addAnchorByPoint } from './dumbyUtils.mjs'
6import { shiftByWindow } from './utils.mjs' 6import { shiftByWindow } from './utils.mjs'
7import * as tutorial from './tutorial' 7import * as tutorial from './tutorial'
8 8