diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-14 14:47:04 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-14 16:57:34 +0800 |
commit | 5d4a43abb181ae4fd63d2365210ea4949f10012e (patch) | |
tree | 733f756c9a4bc635b9c56a33b374ff9ee7e99961 /src/editor.mjs | |
parent | 01b1b9e76cea73ddbe3cdf4bee524b61c182b14d (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.mjs | 2 |
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 @@ | |||
2 | import { markdown2HTML, generateMaps } from './dumbymap' | 2 | import { markdown2HTML, generateMaps } from './dumbymap' |
3 | import { defaultAliases, parseConfigsFromYaml } from 'mapclay' | 3 | import { defaultAliases, parseConfigsFromYaml } from 'mapclay' |
4 | import * as menuItem from './MenuItem' | 4 | import * as menuItem from './MenuItem' |
5 | import { addAnchorByPoint, createGeoLink } from './dumbyUtils.mjs' | 5 | import { addAnchorByPoint } from './dumbyUtils.mjs' |
6 | import { shiftByWindow } from './utils.mjs' | 6 | import { shiftByWindow } from './utils.mjs' |
7 | import * as tutorial from './tutorial' | 7 | import * as tutorial from './tutorial' |
8 | 8 | ||