@opengeoweb/layer-select 9.37.0 → 10.0.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.
- package/README.md +4 -0
- package/index.esm.js +18 -8
- package/package.json +1 -1
- package/src/lib/store/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -5,3 +5,7 @@ This library was generated with [Nx](https://nx.dev).
|
|
|
5
5
|
## Running unit tests
|
|
6
6
|
|
|
7
7
|
Run `nx test layer-select` to execute the unit tests via [Jest](https://jestjs.io).
|
|
8
|
+
|
|
9
|
+
### TypeScript Documentation
|
|
10
|
+
|
|
11
|
+
- [TypeScript Docs](https://opengeoweb.gitlab.io/opengeoweb/typescript-docs/layer-select/)
|
package/index.esm.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'i18next';
|
|
|
12
12
|
import { useTranslation } from 'react-i18next';
|
|
13
13
|
import { FixedSizeList } from 'react-window';
|
|
14
14
|
import { getDimensionsList, LayerInfoButton } from '@opengeoweb/webmap-react';
|
|
15
|
-
import { webmapUtils, LayerType,
|
|
15
|
+
import { webmapUtils, LayerType, getWMSServiceId, queryWMSServiceInfo, queryWMSLayers, invalidateWMSGetCapabilities, clearImageCacheForAllMaps } from '@opengeoweb/webmap';
|
|
16
16
|
import { snackbarTypes, snackbarActions } from '@opengeoweb/snackbar';
|
|
17
17
|
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField } from '@opengeoweb/form-fields';
|
|
18
18
|
import { useFormContext } from 'react-hook-form';
|
|
@@ -2373,20 +2373,30 @@ var loadWMSService = /*#__PURE__*/function () {
|
|
|
2373
2373
|
if (forceReload === void 0) {
|
|
2374
2374
|
forceReload = false;
|
|
2375
2375
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2376
|
+
if (!forceReload) {
|
|
2377
|
+
_context.next = 4;
|
|
2378
|
+
break;
|
|
2379
|
+
}
|
|
2380
|
+
_context.next = 4;
|
|
2381
|
+
return invalidateWMSGetCapabilities(serviceUrl);
|
|
2382
|
+
case 4:
|
|
2383
|
+
_context.next = 6;
|
|
2384
|
+
return queryWMSLayers(serviceUrl);
|
|
2385
|
+
case 6:
|
|
2379
2386
|
layers = _context.sent;
|
|
2380
|
-
|
|
2387
|
+
_context.next = 9;
|
|
2388
|
+
return queryWMSServiceInfo(serviceUrl);
|
|
2389
|
+
case 9:
|
|
2390
|
+
service = _context.sent;
|
|
2381
2391
|
return _context.abrupt("return", {
|
|
2382
|
-
id: service.id,
|
|
2392
|
+
id: service.id || getWMSServiceId(serviceUrl),
|
|
2383
2393
|
name: service.title,
|
|
2384
2394
|
serviceUrl: serviceUrl,
|
|
2385
2395
|
"abstract": service["abstract"],
|
|
2386
2396
|
layers: layers,
|
|
2387
2397
|
scope: 'user'
|
|
2388
2398
|
});
|
|
2389
|
-
case
|
|
2399
|
+
case 11:
|
|
2390
2400
|
case "end":
|
|
2391
2401
|
return _context.stop();
|
|
2392
2402
|
}
|
|
@@ -3154,4 +3164,4 @@ var LayerSelectConnect = function LayerSelectConnect(_ref) {
|
|
|
3154
3164
|
});
|
|
3155
3165
|
};
|
|
3156
3166
|
|
|
3157
|
-
export { AllChipConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
|
3167
|
+
export { AllChipConnect, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LAYER_SELECT_NAMESPACE, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, layerSelectListener, reducer as layerSelectReducer, selectors as layerSelectSelectors, layerSelectTranslations, types as layerSelectTypes, useAppSelector };
|
package/package.json
CHANGED
package/src/lib/store/index.d.ts
CHANGED