@opengeoweb/store 12.13.0 → 13.1.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.
@@ -137,20 +137,19 @@ export declare const getLayersFromServiceSelector: ((state: CoreAppStore, servic
137
137
  /**
138
138
  * Gets the layer from the store using the serviceUrl and layerName
139
139
  *
140
- * Example: layer = getLayerFromService(store, 'https://geoservices.knmi.nl/...', 'radar', true)
140
+ * Example: layer = getLayerFromService(store, 'https://geoservices.knmi.nl/...', 'radar')
141
141
  * @param {object} store store: object - The application store
142
142
  * @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
143
143
  * @param {string} layerName layerName: string - Name of the layer in the service
144
- * @param {boolean} isEDRService isEDRService: boolean - if service is EDR (optional, default to false)
145
144
  * @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
146
145
  */
147
- export declare const getLayerFromService: ((state: CoreAppStore, _serviceUrl: string, _layerName: string, isEDRService?: any) => LayerProps | undefined) & {
146
+ export declare const getLayerFromService: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
148
147
  clearCache: () => void;
149
148
  resultsCount: () => number;
150
149
  resetResultsCount: () => void;
151
150
  } & {
152
- resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string, resultFuncArgs_2: any) => LayerProps | undefined;
153
- memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string, resultFuncArgs_2: any) => LayerProps | undefined) & {
151
+ resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
152
+ memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
154
153
  clearCache: () => void;
155
154
  resultsCount: () => number;
156
155
  resetResultsCount: () => void;
@@ -196,7 +195,7 @@ export declare const getLayerFromService: ((state: CoreAppStore, _serviceUrl: st
196
195
  } & {
197
196
  memoize: typeof import("reselect").weakMapMemoize;
198
197
  argsMemoize: typeof import("reselect").weakMapMemoize;
199
- }, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string, (_store: CoreAppStore, _serviceUrl: string, _layerName: string, isEDRService?: any) => any];
198
+ }, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
200
199
  recomputations: () => number;
201
200
  resetRecomputations: () => void;
202
201
  dependencyRecomputations: () => number;
@@ -214,7 +213,7 @@ export declare const getLayerFromService: ((state: CoreAppStore, _serviceUrl: st
214
213
  * @param {string} layerName layerName: string - Name of the layer in the service
215
214
  * @returns {array} returnType: Style[] - array containing layer styles
216
215
  */
217
- export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string, _layerName: string, isEDRService?: any) => Style[]) & {
216
+ export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => Style[]) & {
218
217
  clearCache: () => void;
219
218
  resultsCount: () => number;
220
219
  resetResultsCount: () => void;
@@ -226,13 +225,13 @@ export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string,
226
225
  resetResultsCount: () => void;
227
226
  };
228
227
  lastResult: () => Style[];
229
- dependencies: [((state: CoreAppStore, _serviceUrl: string, _layerName: string, isEDRService?: any) => LayerProps | undefined) & {
228
+ dependencies: [((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
230
229
  clearCache: () => void;
231
230
  resultsCount: () => number;
232
231
  resetResultsCount: () => void;
233
232
  } & {
234
- resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string, resultFuncArgs_2: any) => LayerProps | undefined;
235
- memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string, resultFuncArgs_2: any) => LayerProps | undefined) & {
233
+ resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
234
+ memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
236
235
  clearCache: () => void;
237
236
  resultsCount: () => number;
238
237
  resetResultsCount: () => void;
@@ -278,7 +277,97 @@ export declare const getLayerStyles: ((state: CoreAppStore, _serviceUrl: string,
278
277
  } & {
279
278
  memoize: typeof import("reselect").weakMapMemoize;
280
279
  argsMemoize: typeof import("reselect").weakMapMemoize;
281
- }, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string, (_store: CoreAppStore, _serviceUrl: string, _layerName: string, isEDRService?: any) => any];
280
+ }, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
281
+ recomputations: () => number;
282
+ resetRecomputations: () => void;
283
+ dependencyRecomputations: () => number;
284
+ resetDependencyRecomputations: () => void;
285
+ } & {
286
+ memoize: typeof import("reselect").weakMapMemoize;
287
+ argsMemoize: typeof import("reselect").weakMapMemoize;
288
+ }];
289
+ recomputations: () => number;
290
+ resetRecomputations: () => void;
291
+ dependencyRecomputations: () => number;
292
+ resetDependencyRecomputations: () => void;
293
+ } & {
294
+ memoize: typeof import("reselect").weakMapMemoize;
295
+ argsMemoize: typeof import("reselect").weakMapMemoize;
296
+ };
297
+ /**
298
+ * Gets the layer title from the servicestore using the serviceUrl and layerName
299
+ *
300
+ * Example: layerStyles = getLayerTitle(store, layerService, layerName);
301
+ * @param {object} store store: object - store from which the layers state will be extracted
302
+ * @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
303
+ * @param {string} layerName layerName: string - Name of the layer in the service
304
+ * @returns {array} returnType: string - string containing layer title
305
+ */
306
+ export declare const getLayerTitle: ((state: CoreAppStore, _serviceUrl: string, layerName: string) => string | undefined) & {
307
+ clearCache: () => void;
308
+ resultsCount: () => number;
309
+ resetResultsCount: () => void;
310
+ } & {
311
+ resultFunc: (resultFuncArgs_0: LayerProps | undefined) => string | undefined;
312
+ memoizedResultFunc: ((resultFuncArgs_0: LayerProps | undefined) => string | undefined) & {
313
+ clearCache: () => void;
314
+ resultsCount: () => number;
315
+ resetResultsCount: () => void;
316
+ };
317
+ lastResult: () => string | undefined;
318
+ dependencies: [((state: CoreAppStore, _serviceUrl: string, layerName: string) => LayerProps | undefined) & {
319
+ clearCache: () => void;
320
+ resultsCount: () => number;
321
+ resetResultsCount: () => void;
322
+ } & {
323
+ resultFunc: (resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined;
324
+ memoizedResultFunc: ((resultFuncArgs_0: LayerProps[], resultFuncArgs_1: string) => LayerProps | undefined) & {
325
+ clearCache: () => void;
326
+ resultsCount: () => number;
327
+ resetResultsCount: () => void;
328
+ };
329
+ lastResult: () => LayerProps | undefined;
330
+ dependencies: [((state: CoreAppStore, serviceUrl: string) => LayerProps[]) & {
331
+ clearCache: () => void;
332
+ resultsCount: () => number;
333
+ resetResultsCount: () => void;
334
+ } & {
335
+ resultFunc: (resultFuncArgs_0: ReduxService | undefined) => LayerProps[];
336
+ memoizedResultFunc: ((resultFuncArgs_0: ReduxService | undefined) => LayerProps[]) & {
337
+ clearCache: () => void;
338
+ resultsCount: () => number;
339
+ resetResultsCount: () => void;
340
+ };
341
+ lastResult: () => LayerProps[];
342
+ dependencies: [((state: CoreAppStore, serviceUrl: string) => ReduxService | undefined) & {
343
+ clearCache: () => void;
344
+ resultsCount: () => number;
345
+ resetResultsCount: () => void;
346
+ } & {
347
+ resultFunc: (resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined;
348
+ memoizedResultFunc: ((resultFuncArgs_0: ServiceState | undefined, resultFuncArgs_1: string) => ReduxService | undefined) & {
349
+ clearCache: () => void;
350
+ resultsCount: () => number;
351
+ resetResultsCount: () => void;
352
+ };
353
+ lastResult: () => ReduxService | undefined;
354
+ dependencies: [(store: CoreAppStore) => ServiceState | undefined, (state: CoreAppStore, serviceUrl: string) => string];
355
+ recomputations: () => number;
356
+ resetRecomputations: () => void;
357
+ dependencyRecomputations: () => number;
358
+ resetDependencyRecomputations: () => void;
359
+ } & {
360
+ memoize: typeof import("reselect").weakMapMemoize;
361
+ argsMemoize: typeof import("reselect").weakMapMemoize;
362
+ }];
363
+ recomputations: () => number;
364
+ resetRecomputations: () => void;
365
+ dependencyRecomputations: () => number;
366
+ resetDependencyRecomputations: () => void;
367
+ } & {
368
+ memoize: typeof import("reselect").weakMapMemoize;
369
+ argsMemoize: typeof import("reselect").weakMapMemoize;
370
+ }, (_store: CoreAppStore, _serviceUrl: string, layerName: string) => string];
282
371
  recomputations: () => number;
283
372
  resetRecomputations: () => void;
284
373
  dependencyRecomputations: () => number;