septima-widget 0.0.0-dev-c77af → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/widgetapi.mjs +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Septima Widget API
|
|
2
2
|
|
|
3
|
-
[Septima Widget](https://septima.dk/
|
|
3
|
+
[Septima Widget](https://widget.cdn.septima.dk/latest/index.html) (in Danish) is a simple way to add interactive maps on the web. It is a commercial API. Please contact us at kontakt@septima.dk for more info.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
package/package.json
CHANGED
package/widgetapi.mjs
CHANGED
|
@@ -6,7 +6,7 @@ export default class WidgetAPI {
|
|
|
6
6
|
|
|
7
7
|
_target = null
|
|
8
8
|
|
|
9
|
-
VERSION = '
|
|
9
|
+
VERSION = '3.2.4'
|
|
10
10
|
|
|
11
11
|
constructor(target, config, options) {
|
|
12
12
|
this._target = target
|
|
@@ -14,7 +14,7 @@ export default class WidgetAPI {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
async _load(target, config, options) {
|
|
17
|
-
const { load } = await import('https://widget.cdn.septima.dk/
|
|
17
|
+
const { load } = await import('https://widget.cdn.septima.dk/3.2.4/core/load.mjs')
|
|
18
18
|
this._widget = await load(target, config, options, this.VERSION)
|
|
19
19
|
this.on('controlsready', () => {
|
|
20
20
|
this._controlsReady()
|
|
@@ -192,7 +192,7 @@ export default class WidgetAPI {
|
|
|
192
192
|
|
|
193
193
|
transform(geojson, options, callback) {
|
|
194
194
|
this._controlsReady(async () => {
|
|
195
|
-
const { transform } = await import('https://widget.cdn.septima.dk/
|
|
195
|
+
const { transform } = await import('https://widget.cdn.septima.dk/3.2.4/core/utils.mjs')
|
|
196
196
|
if (callback) {
|
|
197
197
|
callback(transform(geojson, options));
|
|
198
198
|
} else {
|