@opengeoweb/layer-select 9.35.0 → 9.35.1-spike-oltanstack.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/index.esm.js +17 -7
- package/package.json +1 -1
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';
|
|
@@ -2353,20 +2353,30 @@ var loadWMSService = /*#__PURE__*/function () {
|
|
|
2353
2353
|
if (forceReload === void 0) {
|
|
2354
2354
|
forceReload = false;
|
|
2355
2355
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2356
|
+
if (!forceReload) {
|
|
2357
|
+
_context.next = 4;
|
|
2358
|
+
break;
|
|
2359
|
+
}
|
|
2360
|
+
_context.next = 4;
|
|
2361
|
+
return invalidateWMSGetCapabilities(serviceUrl);
|
|
2362
|
+
case 4:
|
|
2363
|
+
_context.next = 6;
|
|
2364
|
+
return queryWMSLayers(serviceUrl);
|
|
2365
|
+
case 6:
|
|
2359
2366
|
layers = _context.sent;
|
|
2360
|
-
|
|
2367
|
+
_context.next = 9;
|
|
2368
|
+
return queryWMSServiceInfo(serviceUrl);
|
|
2369
|
+
case 9:
|
|
2370
|
+
service = _context.sent;
|
|
2361
2371
|
return _context.abrupt("return", {
|
|
2362
|
-
id: service.id,
|
|
2372
|
+
id: service.id || getWMSServiceId(serviceUrl),
|
|
2363
2373
|
name: service.title,
|
|
2364
2374
|
serviceUrl: serviceUrl,
|
|
2365
2375
|
"abstract": service["abstract"],
|
|
2366
2376
|
layers: layers,
|
|
2367
2377
|
scope: 'user'
|
|
2368
2378
|
});
|
|
2369
|
-
case
|
|
2379
|
+
case 11:
|
|
2370
2380
|
case "end":
|
|
2371
2381
|
return _context.stop();
|
|
2372
2382
|
}
|