septima-widget 0.0.0-dev-a3cc7 → 0.0.0-dev-22973

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 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "septima-widget",
3
- "version": "0.0.0-dev-a3cc7",
3
+ "version": "0.0.0-dev-22973",
4
4
  "description": "Septima Widget API",
5
5
  "type": "module",
6
6
  "module": "./widgetapi.mjs",
package/widgetapi.mjs CHANGED
@@ -203,6 +203,13 @@ export default class WidgetAPI {
203
203
  this._controlsReady(() => this._widget.reloadLayer(layerId))
204
204
  }
205
205
 
206
+ getLayers(filter) {
207
+ if (this._controlsAreReady) {
208
+ return this._widget.getLayers(filter)
209
+ }
210
+ return []
211
+ }
212
+
206
213
  updateLayerParams(layerId, params) {
207
214
  this._controlsReady(() => this._widget.updateLayerParams(layerId, params))
208
215
  }