@ogc-maps/storybook-components 0.2.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/dist/BasemapSwitcher-BW7lyZ2Y.js +43 -0
- package/dist/CollapsibleControl-Dz11KBrL.js +53 -0
- package/dist/CoordinateDisplay-PxPmVjpm.js +47 -0
- package/dist/LayerPanel-K00X2QUj.js +83 -0
- package/dist/Legend-D4cc1JzQ.js +94 -0
- package/dist/SearchPanel-CFVQV6JJ.js +135 -0
- package/dist/components/BasemapSwitcher/index.d.ts +2 -0
- package/dist/components/BasemapSwitcher/index.js +4 -0
- package/dist/components/CollapsibleControl/index.d.ts +2 -0
- package/dist/components/CollapsibleControl/index.js +4 -0
- package/dist/components/CoordinateDisplay/index.d.ts +2 -0
- package/dist/components/CoordinateDisplay/index.js +6 -0
- package/dist/components/LayerPanel/index.d.ts +2 -0
- package/dist/components/LayerPanel/index.js +4 -0
- package/dist/components/Legend/index.d.ts +2 -0
- package/dist/components/Legend/index.js +4 -0
- package/dist/components/SearchPanel/index.d.ts +2 -0
- package/dist/components/SearchPanel/index.js +4 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +12 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +47 -0
- package/dist/ogcApi-BuXSs9i0.js +48 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2821 -0
- package/dist/src/components/BasemapSwitcher/BasemapSwitcher.d.ts +9 -0
- package/dist/src/components/BasemapSwitcher/BasemapSwitcher.d.ts.map +1 -0
- package/dist/src/components/BasemapSwitcher/index.d.ts +3 -0
- package/dist/src/components/BasemapSwitcher/index.d.ts.map +1 -0
- package/dist/src/components/CollapsibleControl/CollapsibleControl.d.ts +31 -0
- package/dist/src/components/CollapsibleControl/CollapsibleControl.d.ts.map +1 -0
- package/dist/src/components/CollapsibleControl/index.d.ts +3 -0
- package/dist/src/components/CollapsibleControl/index.d.ts.map +1 -0
- package/dist/src/components/CoordinateDisplay/CoordinateDisplay.d.ts +26 -0
- package/dist/src/components/CoordinateDisplay/CoordinateDisplay.d.ts.map +1 -0
- package/dist/src/components/CoordinateDisplay/index.d.ts +2 -0
- package/dist/src/components/CoordinateDisplay/index.d.ts.map +1 -0
- package/dist/src/components/LayerPanel/LayerPanel.d.ts +10 -0
- package/dist/src/components/LayerPanel/LayerPanel.d.ts.map +1 -0
- package/dist/src/components/LayerPanel/index.d.ts +3 -0
- package/dist/src/components/LayerPanel/index.d.ts.map +1 -0
- package/dist/src/components/Legend/Legend.d.ts +8 -0
- package/dist/src/components/Legend/Legend.d.ts.map +1 -0
- package/dist/src/components/Legend/index.d.ts +3 -0
- package/dist/src/components/Legend/index.d.ts.map +1 -0
- package/dist/src/components/SearchPanel/SearchPanel.d.ts +11 -0
- package/dist/src/components/SearchPanel/SearchPanel.d.ts.map +1 -0
- package/dist/src/components/SearchPanel/index.d.ts +3 -0
- package/dist/src/components/SearchPanel/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +13 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +7 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/useOgcCollections.d.ts +13 -0
- package/dist/src/hooks/useOgcCollections.d.ts.map +1 -0
- package/dist/src/hooks/useOgcFeatures.d.ts +17 -0
- package/dist/src/hooks/useOgcFeatures.d.ts.map +1 -0
- package/dist/src/main.d.ts +6 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/schemas/config.d.ts +1510 -0
- package/dist/src/schemas/config.d.ts.map +1 -0
- package/dist/src/schemas/index.d.ts +2 -0
- package/dist/src/schemas/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +23 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/ogcApi.d.ts +100 -0
- package/dist/src/utils/ogcApi.d.ts.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +21 -0
- package/dist/useOgcFeatures-CmJxErv4.js +44 -0
- package/package.json +86 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BasemapConfig } from '../../types';
|
|
2
|
+
export interface BasemapSwitcherProps {
|
|
3
|
+
basemaps: BasemapConfig[];
|
|
4
|
+
activeBasemapId: string;
|
|
5
|
+
onSelect: (basemapId: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function BasemapSwitcher({ basemaps, activeBasemapId, onSelect, className, }: BasemapSwitcherProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=BasemapSwitcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasemapSwitcher.d.ts","sourceRoot":"","sources":["../../../../src/components/BasemapSwitcher/BasemapSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,SAAS,GACV,EAAE,oBAAoB,2CAkCtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/BasemapSwitcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CollapsibleControlProps {
|
|
2
|
+
/** Icon component to display when collapsed (e.g., LuLayers3 from react-icons/lu) */
|
|
3
|
+
icon: React.ComponentType<{
|
|
4
|
+
size?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
/** Accessible label for the control (shown as tooltip/aria-label) */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Initial collapsed state (uncontrolled mode) */
|
|
10
|
+
defaultCollapsed?: boolean;
|
|
11
|
+
/** Controlled collapsed state */
|
|
12
|
+
collapsed?: boolean;
|
|
13
|
+
/** Callback when collapsed state changes (controlled mode) */
|
|
14
|
+
onToggle?: (collapsed: boolean) => void;
|
|
15
|
+
/** Content to render when expanded */
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/** Additional CSS classes for the container */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* CollapsibleControl
|
|
22
|
+
*
|
|
23
|
+
* A wrapper component that collapses its children into a compact icon button.
|
|
24
|
+
* Useful for map controls that should take minimal space when not in use.
|
|
25
|
+
*
|
|
26
|
+
* Supports both controlled and uncontrolled modes:
|
|
27
|
+
* - Uncontrolled: Pass `defaultCollapsed` prop
|
|
28
|
+
* - Controlled: Pass `collapsed` and `onToggle` props
|
|
29
|
+
*/
|
|
30
|
+
export declare function CollapsibleControl({ icon: Icon, label, defaultCollapsed, collapsed: controlledCollapsed, onToggle, children, className, }: CollapsibleControlProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=CollapsibleControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapsibleControl.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleControl/CollapsibleControl.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,uBAAuB;IACtC,qFAAqF;IACrF,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,sCAAsC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EAAE,IAAI,EACV,KAAK,EACL,gBAAuB,EACvB,SAAS,EAAE,mBAAmB,EAC9B,QAAQ,EACR,QAAQ,EACR,SAAc,GACf,EAAE,uBAAuB,2CA4DzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface CoordinateFormatOption {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
format: (lat: number, lng: number) => string;
|
|
5
|
+
}
|
|
6
|
+
export interface CoordinateDisplayProps {
|
|
7
|
+
latitude: number | null;
|
|
8
|
+
longitude: number | null;
|
|
9
|
+
activeFormat: string;
|
|
10
|
+
formats: CoordinateFormatOption[];
|
|
11
|
+
onFormatChange: (formatId: string) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Format coordinates as decimal degrees
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatDecimal(lat: number, lng: number): string;
|
|
18
|
+
/**
|
|
19
|
+
* Format coordinates as degrees, minutes, seconds (DMS)
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatDMS(lat: number, lng: number): string;
|
|
22
|
+
/**
|
|
23
|
+
* CoordinateDisplay - Shows mouse coordinates with selectable format
|
|
24
|
+
*/
|
|
25
|
+
export declare function CoordinateDisplay({ latitude, longitude, activeFormat, formats, onFormatChange, className, }: CoordinateDisplayProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=CoordinateDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoordinateDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordinateDisplay/CoordinateDisplay.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAClC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAc1D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,SAAc,GACf,EAAE,sBAAsB,2CA2BxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CoordinateDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LayerConfig } from '../../types';
|
|
2
|
+
export interface LayerPanelProps {
|
|
3
|
+
layers: LayerConfig[];
|
|
4
|
+
activeLayerIds: string[];
|
|
5
|
+
onToggleVisibility: (layerId: string) => void;
|
|
6
|
+
onReorder?: (layerIds: string[]) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function LayerPanel({ layers, activeLayerIds, onToggleVisibility, onReorder, className, }: LayerPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=LayerPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayerPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/LayerPanel/LayerPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,SAAc,GACf,EAAE,eAAe,2CAwGjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/LayerPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LayerConfig } from '../../types';
|
|
2
|
+
export interface LegendProps {
|
|
3
|
+
layers: LayerConfig[];
|
|
4
|
+
visibleLayerIds: string[];
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Legend({ layers, visibleLayerIds, className }: LegendProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=Legend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../../src/components/Legend/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmED,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,WAAW,kDA0DzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Legend/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LayerConfig, SearchFilterValues, OgcApiSource } from '../../types';
|
|
2
|
+
export interface SearchPanelProps {
|
|
3
|
+
layers: LayerConfig[];
|
|
4
|
+
sources?: OgcApiSource[];
|
|
5
|
+
activeFilters: Record<string, SearchFilterValues>;
|
|
6
|
+
onFilterChange: (layerId: string, property: string, value: string | number | undefined) => void;
|
|
7
|
+
onClearFilters: (layerId: string) => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function SearchPanel({ layers, sources, activeFilters, onFilterChange, onClearFilters, className, }: SearchPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SearchPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchPanel/SearchPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAe,MAAM,aAAa,CAAC;AAG9F,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAClD,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAChG,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,SAAc,GACf,EAAE,gBAAgB,2CAoKlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { BasemapSwitcher } from './BasemapSwitcher';
|
|
2
|
+
export type { BasemapSwitcherProps } from './BasemapSwitcher';
|
|
3
|
+
export { CollapsibleControl } from './CollapsibleControl';
|
|
4
|
+
export type { CollapsibleControlProps } from './CollapsibleControl';
|
|
5
|
+
export { CoordinateDisplay, formatDecimal, formatDMS, } from './CoordinateDisplay';
|
|
6
|
+
export type { CoordinateDisplayProps, CoordinateFormatOption, } from './CoordinateDisplay';
|
|
7
|
+
export { LayerPanel } from './LayerPanel';
|
|
8
|
+
export type { LayerPanelProps } from './LayerPanel';
|
|
9
|
+
export { Legend } from './Legend';
|
|
10
|
+
export type { LegendProps } from './Legend';
|
|
11
|
+
export { SearchPanel } from './SearchPanel';
|
|
12
|
+
export type { SearchPanelProps } from './SearchPanel';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SearchField } from '../types';
|
|
2
|
+
export { useOgcCollections, type UseOgcCollectionsResult } from './useOgcCollections';
|
|
3
|
+
export { useOgcFeatures, type UseOgcFeaturesResult } from './useOgcFeatures';
|
|
4
|
+
export type { OgcApiSource, LayerConfig, MapConfig, UIConfig, ViewConfig, StyleConfig, FilterConfig, LegendConfig, SearchConfig, SearchField, } from '../types';
|
|
5
|
+
export type SearchFieldType = SearchField['type'];
|
|
6
|
+
export { fetchCollections, fetchFeatures, fetchQueryables, getFilteredVectorTileUrl, getTileJsonUrl, getVectorTileUrl, type OgcCollection, type OgcCollectionsResponse, type GeoJsonFeature, type OgcFeatureCollection, type OgcQueryables, type QueryableProperty, type FetchFeaturesOptions, } from '../utils/ogcApi';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,YAAY,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,GACZ,MAAM,UAAU,CAAC;AAClB,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type OgcCollection } from '../utils/ogcApi';
|
|
2
|
+
export interface UseOgcCollectionsResult {
|
|
3
|
+
collections: OgcCollection[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Hook to fetch the list of collections from an OGC API endpoint.
|
|
9
|
+
*
|
|
10
|
+
* @param baseUrl - The base URL of the OGC API server (e.g. "http://localhost:8001")
|
|
11
|
+
*/
|
|
12
|
+
export declare function useOgcCollections(baseUrl: string | null): UseOgcCollectionsResult;
|
|
13
|
+
//# sourceMappingURL=useOgcCollections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOgcCollections.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOgcCollections.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,uBAAuB,CAmCjF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type GeoJsonFeature, type FetchFeaturesOptions } from '../utils/ogcApi';
|
|
2
|
+
export interface UseOgcFeaturesResult {
|
|
3
|
+
features: GeoJsonFeature[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
/** True when the server reports more features are available beyond the current page. */
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Hook to fetch GeoJSON features from an OGC API collection.
|
|
11
|
+
*
|
|
12
|
+
* @param baseUrl - The base URL of the OGC API server
|
|
13
|
+
* @param collection - The collection ID to fetch features from
|
|
14
|
+
* @param options - Optional fetch parameters (bbox, limit, offset, properties, datetime)
|
|
15
|
+
*/
|
|
16
|
+
export declare function useOgcFeatures(baseUrl: string | null, collection: string | null, options?: FetchFeaturesOptions): UseOgcFeaturesResult;
|
|
17
|
+
//# sourceMappingURL=useOgcFeatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOgcFeatures.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOgcFeatures.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,wFAAwF;IACxF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,OAAO,GAAE,oBAAyB,GACjC,oBAAoB,CAsDtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC"}
|