septima-widget 3.10.3 → 3.11.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/widgetapi.mjs +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "septima-widget",
3
- "version": "3.10.3",
3
+ "version": "3.11.0",
4
4
  "description": "Septima Widget API",
5
5
  "type": "module",
6
6
  "module": "./widgetapi.mjs",
package/widgetapi.mjs CHANGED
@@ -6,7 +6,7 @@ export default class WidgetAPI {
6
6
 
7
7
  _target = null
8
8
 
9
- VERSION = '3.10.3'
9
+ VERSION = '3.11.0'
10
10
 
11
11
  isReady = false
12
12
 
@@ -16,7 +16,7 @@ export default class WidgetAPI {
16
16
  }
17
17
 
18
18
  async _load(target, config, options) {
19
- const { load } = await import('https://widget.cdn.septima.dk/3.10.3/core/load.mjs')
19
+ const { load } = await import('https://widget.cdn.septima.dk/3.11.0/core/load.mjs')
20
20
  this._widget = await load(target, config, options, this)
21
21
  this.on('controlsready', () => {
22
22
  this._controlsReady()
@@ -195,6 +195,10 @@ export default class WidgetAPI {
195
195
  this._controlsReady(() => this._widget.setLayerOpacity(layerId, opacity))
196
196
  }
197
197
 
198
+ setLayerZIndex(layerId, zIndex) {
199
+ this._controlsReady(() => this._widget.setLayerZIndex(layerId, zIndex))
200
+ }
201
+
198
202
  reloadLayer(layerId) {
199
203
  this._controlsReady(() => this._widget.reloadLayer(layerId))
200
204
  }
@@ -225,7 +229,7 @@ export default class WidgetAPI {
225
229
 
226
230
  transform(geojson, options, callback) {
227
231
  this._controlsReady(async () => {
228
- const { transform } = await import('https://widget.cdn.septima.dk/3.10.3/core/utils.mjs')
232
+ const { transform } = await import('https://widget.cdn.septima.dk/3.11.0/core/utils.mjs')
229
233
  if (callback) {
230
234
  callback(transform(geojson, options))
231
235
  } else {