@opengeoweb/webmap 15.3.0 → 17.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.
Files changed (65) hide show
  1. package/index.esm.js +390 -156
  2. package/package.json +2 -2
  3. package/src/index.d.ts +0 -16
  4. package/src/lib/components/LoadDurationCounter.d.ts +0 -17
  5. package/src/lib/components/LoadDurationCounter.spec.d.ts +0 -1
  6. package/src/lib/components/WMBBOX.d.ts +0 -32
  7. package/src/lib/components/WMBBOX.spec.d.ts +0 -1
  8. package/src/lib/components/WMConstants.d.ts +0 -31
  9. package/src/lib/components/WMImage.d.ts +0 -111
  10. package/src/lib/components/WMImage.spec.d.ts +0 -1
  11. package/src/lib/components/WMImageStore.d.ts +0 -61
  12. package/src/lib/components/WMImageStore.spec.d.ts +0 -1
  13. package/src/lib/components/WMJSDimension.d.ts +0 -126
  14. package/src/lib/components/WMJSDimension.spec.d.ts +0 -1
  15. package/src/lib/components/WMJSDimensionModes.d.ts +0 -15
  16. package/src/lib/components/WMJSDimensionModes.spec.d.ts +0 -1
  17. package/src/lib/components/WMJSTools.d.ts +0 -62
  18. package/src/lib/components/WMJSTools.spec.d.ts +0 -1
  19. package/src/lib/components/WMLayer.d.ts +0 -117
  20. package/src/lib/components/WMLayer.spec.d.ts +0 -1
  21. package/src/lib/components/WMLayerTypes.d.ts +0 -65
  22. package/src/lib/components/WMLayerUtils.d.ts +0 -22
  23. package/src/lib/components/WMLegend.d.ts +0 -6
  24. package/src/lib/components/WMLegend.spec.d.ts +0 -1
  25. package/src/lib/components/WMListener.d.ts +0 -57
  26. package/src/lib/components/WMListener.spec.d.ts +0 -1
  27. package/src/lib/components/WMProjection.d.ts +0 -17
  28. package/src/lib/components/WMTime.d.ts +0 -44
  29. package/src/lib/components/WMTime.spec.d.ts +0 -1
  30. package/src/lib/components/WMTimeTypes.d.ts +0 -19
  31. package/src/lib/components/WMXMLParser.d.ts +0 -9
  32. package/src/lib/components/WMXMLParser.spec.d.ts +0 -1
  33. package/src/lib/components/index.d.ts +0 -25
  34. package/src/lib/components/makeHashUrlForGeoReferencedImage.d.ts +0 -6
  35. package/src/lib/components/makeHashUrlForGeoReferencedImage.spec.d.ts +0 -1
  36. package/src/lib/components/types.d.ts +0 -231
  37. package/src/lib/index.d.ts +0 -6
  38. package/src/lib/query/fakeApiWmtsQueries.d.ts +0 -208
  39. package/src/lib/query/queryConstants.d.ts +0 -7
  40. package/src/lib/query/queryWMS.d.ts +0 -69
  41. package/src/lib/query/queryWMS.spec.d.ts +0 -1
  42. package/src/lib/specs/getCapabilitySpecs/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -1
  43. package/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesHarmN25.d.ts +0 -2
  44. package/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritAndReplaceLayerprops.d.ts +0 -2
  45. package/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritLayerprops.d.ts +0 -2
  46. package/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithInheritLayerpropsToLayerTree.d.ts +0 -76
  47. package/src/lib/specs/getCapabilitySpecs/WMS130GetCapabilitiesRadarTestWithoutInheritLayerprops.d.ts +0 -2
  48. package/src/lib/specs/getCapabilitySpecs/WMSGetCapabilitiesMissingLegend.d.ts +0 -1
  49. package/src/lib/specs/getCapabilitySpecs/WMSSmartMet.d.ts +0 -2
  50. package/src/lib/specs/getCapabilitySpecs/radarGetCapabilities.d.ts +0 -244
  51. package/src/lib/specs/index.d.ts +0 -93
  52. package/src/lib/specs/layerSpecs.d.ts +0 -34
  53. package/src/lib/specs/mockGetCapabilities.d.ts +0 -90
  54. package/src/lib/utils/consoleErrorMessages.d.ts +0 -12
  55. package/src/lib/utils/fakeMaxAgeResponses.d.ts +0 -1
  56. package/src/lib/utils/getCapabilities/getWMSServiceId.d.ts +0 -10
  57. package/src/lib/utils/getCapabilities/index.d.ts +0 -4
  58. package/src/lib/utils/getCapabilities/utils.d.ts +0 -64
  59. package/src/lib/utils/getCapabilities/utils.spec.d.ts +0 -1
  60. package/src/lib/utils/getCapabilities/wmsQueryClient.d.ts +0 -7
  61. package/src/lib/utils/i18n.d.ts +0 -6
  62. package/src/lib/utils/index.d.ts +0 -3
  63. package/src/lib/utils/tilesettings.d.ts +0 -27
  64. package/src/lib/utils/utils.d.ts +0 -31
  65. package/src/lib/utils/utils.spec.d.ts +0 -1
@@ -1,64 +0,0 @@
1
- import type { Capability, WMSGetCapabilities, Header, LayerProps, LayerTree, WMSLayerFromGetCapabilities, WMSServiceInfo, WMTSGetCapabilities, OGCWMSWMTSGetCapabilities } from '../../components/types';
2
- /**
3
- * A LayerTree with deeply nested children will be flattened into a 1D array.
4
- * Children properties are removed and result is sorted alphabetically by the layers title.
5
- * @param layerTree a WMS LayerTree
6
- * @returns Flat array of layers as LayerProps[]
7
- */
8
- export declare const privateWmsFlattenLayerTree: (layerTree: LayerTree) => LayerProps[];
9
- export declare const privateGetOGCCapabilitiesUrl: (url?: string, service?: string, additionalParams?: {}) => string;
10
- export declare const privateWmsGetCapabilities: (serviceUrl: string, headers?: Header[], forceReload?: boolean) => Promise<WMSGetCapabilities>;
11
- export declare const privateWmtsGetCapabilities: (serviceUrl: string, headers?: Header[], forceReload?: boolean) => Promise<string>;
12
- /**
13
- * privateWmsGetCapabilityElement
14
- * @param jsonData
15
- * @returns
16
- */
17
- export declare const privateWmsGetCapabilityElement: (jsonData: WMSGetCapabilities) => Capability;
18
- export declare const privateCheckException: (jsonData: WMSGetCapabilities) => string | undefined;
19
- export declare const privateWmsGetRootLayerFromGetCapabilities: (jsonData: WMSGetCapabilities) => WMSLayerFromGetCapabilities;
20
- export declare const privateCheckVersion130: (jsonData: WMSGetCapabilities) => void;
21
- export declare const privateCheckVersion: (jsonData: WMSGetCapabilities) => string | null;
22
- /**
23
- * Returns a LayerTree object representing hierarchical structure of Lahyers in the WMS GetCapabilities document
24
- * @param jsonData WMSGetCapabilities
25
- * @returns LayerTree
26
- */
27
- export declare const privateWmsGetLayerTree: (jsonData: OGCWMSWMTSGetCapabilities) => LayerTree | null;
28
- /**
29
- * Builds a standardized LayerTree object based on WMSLayerFromGetCapabilities object.
30
- * @param wmsLayer The WMSLayerFromGetCapabilities object
31
- * @param nestedPath - Optional, only to be used by privateWmsBuildLayerTreeFromNestedWMSLayer
32
- * @param nestedLayerPath - Optional, only to be used by privateWmsBuildLayerTreeFromNestedWMSLayer
33
- * @returns A LayerTree object.
34
- */
35
- export declare const privateWmsBuildLayerTreeFromNestedWMSLayer: (wmsLayer: WMSLayerFromGetCapabilities, nestedPath?: string[], nestedLayerPath?: LayerProps[]) => LayerTree;
36
- export type GetCapabilitiesFunctionType = (serviceUrl: string) => Promise<WMSGetCapabilities>;
37
- export declare const setWMSGetCapabilitiesFetcher: (functionToSet: GetCapabilitiesFunctionType | null) => void;
38
- /**
39
- * Returns details about the WMS service. You are encouraged to use queryWMSServiceInfo instead.
40
- * @param getCapabilitiesJson
41
- * @param serviceUrl
42
- * @returns
43
- */
44
- export declare const privateGetWMSServiceInfo: (getCapabilitiesJson: WMSGetCapabilities, serviceUrl: string) => WMSServiceInfo;
45
- /**
46
- * Returns details about the WMTS service. You are encouraged to use queryWMSServiceInfo instead.
47
- * @param getCapabilitiesJson
48
- * @param serviceUrl
49
- * @returns
50
- */
51
- export declare const privateGetWMTSServiceInfo: (getCapabilitiesJson: WMTSGetCapabilities, serviceUrl: string) => WMSServiceInfo;
52
- /**
53
- * Makes a uniform and harmonized URL used as caching key in TanStack
54
- * @param serviceUrl
55
- * @returns
56
- */
57
- export declare const makeQueryKeyFroMServiceUrl: (serviceUrl: string) => string;
58
- /**
59
- * Parses WMTS GetCapabilities and returns an array of LayerProps
60
- * @param getCapabilities
61
- * @returns
62
- */
63
- export declare const handleWMTSGetCapabilities: (getCapabilities: WMTSGetCapabilities) => LayerProps[];
64
- export declare const handleWMTSGetCapabilitiesForLayer: (getCapabilities: WMTSGetCapabilities, layerName: string) => LayerProps | undefined;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { QueryClient } from '@tanstack/query-core';
2
- /**
3
- * This is the default TanStack QueryClient used for the query functions.
4
- * It can be used in react by a provider to provide the query client to the hook functions.
5
- * This ensures that TanStack keeps the same store for both the hooks and the query functions.
6
- */
7
- export declare const wmsQueryClient: QueryClient;
@@ -1,6 +0,0 @@
1
- import type { TFunction } from 'i18next';
2
- import i18n from 'i18next';
3
- export declare const WEBMAP_NAMESPACE = "webmap";
4
- export declare const initWebmapTestI18n: () => void;
5
- export { i18n };
6
- export declare const translateInTestsAndStories: (t: TFunction | undefined, key: string, params?: Record<string, string | number> | undefined) => string;
@@ -1,3 +0,0 @@
1
- export * from './tilesettings';
2
- export * from './utils';
3
- export * from './getCapabilities';
@@ -1,27 +0,0 @@
1
- import type { EPSGCode } from '@opengeoweb/shared';
2
- export interface TileSettings {
3
- home: string;
4
- minLevel: number;
5
- maxLevel: number;
6
- tileServerType: string;
7
- copyRight: string;
8
- origX?: number;
9
- origY?: number;
10
- resolution?: number;
11
- title?: string;
12
- tileSize?: number;
13
- tileServerFormat?: string;
14
- tms?: boolean;
15
- urlTemplate?: (basePath: string) => string;
16
- }
17
- export type TileSettingPerProjection = {
18
- [key in EPSGCode]?: TileSettings;
19
- };
20
- export interface Title {
21
- title?: string;
22
- }
23
- export interface TileServerDefinition extends Title, TileSettingPerProjection {
24
- }
25
- export type TileServerMap = Map<string, TileServerDefinition>;
26
- export type TileServerSettings = Record<string, TileServerDefinition>;
27
- export declare const tilesettings: TileServerSettings;
@@ -1,31 +0,0 @@
1
- import type { WMJSDimension, WMLayer } from '../components';
2
- export declare const generateLayerId: () => string;
3
- export declare const generateMapId: () => string;
4
- export declare const generateTimesliderId: () => string;
5
- /**
6
- * Registers a WMJSLayer in a lookuptable with a layerId
7
- * @param {WMLayer} wmLayer
8
- * @param {string} layerId
9
- */
10
- export declare const registerWMLayer: (wmLayer: WMLayer, layerId: string) => void;
11
- /**
12
- * Get the WMLayer from the lookuptable with layerId
13
- * @param {string} layerId
14
- */
15
- export declare const getWMLayerById: (layerId: string) => WMLayer;
16
- export declare const unRegisterWMJSLayer: (layerId: string) => void;
17
- export declare const unRegisterAllWMJSLayersAndMaps: () => void;
18
- /**
19
- * Returns the WMJSDimension object for given layerId and dimension name
20
- * @param layerId The layerId
21
- * @param dimensionName The dimension to lookup
22
- */
23
- export declare const getWMJSDimensionForLayerAndDimension: (layerId: string, dimensionName: string | undefined) => WMJSDimension | undefined;
24
- /**
25
- * Gets the WMJSTimeDimension for given activeLayerId and dimensions list
26
- * @param layerId: The layer id to search the WMJSDimension for
27
- * @return: The WMJSDimension if found, otherwise null
28
- */
29
- export declare const getWMJSTimeDimensionForLayerId: (layerId: string) => WMJSDimension;
30
- export declare const roundWithTimeStep: (unixTime: number, timeStep: number, type?: string) => number;
31
- export declare const getCorrectWMSDimName: (origDimName: string) => string;
@@ -1 +0,0 @@
1
- export {};