diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-08 17:40:23 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-08 20:50:44 +0800 |
commit | c04eff2711d690087d2306e318e03bfcebece5a1 (patch) | |
tree | 83bf98d7d73bded3f5a31521df3997046f0bcb65 /addon/src/openlayers.mjs | |
parent | fc2a1da82934600ee085f1289ae3c6a3107db312 (diff) |
fix: redeclaration, use IIFE to load modules
* put bundled scripts into scripts/, this make gitignore easier
Diffstat (limited to 'addon/src/openlayers.mjs')
-rw-r--r-- | addon/src/openlayers.mjs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addon/src/openlayers.mjs b/addon/src/openlayers.mjs new file mode 100644 index 0000000..be690b2 --- /dev/null +++ b/addon/src/openlayers.mjs | |||
@@ -0,0 +1,3 @@ | |||
1 | import { default as Openlayers } from '../../node_modules/mapclay/dist/renderers/openlayers.mjs' | ||
2 | |||
3 | globalThis.mapclayRenderers.Openlayers = Openlayers | ||