@mapcomponents/react-maplibre 1.3.3 → 1.5.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.
Files changed (174) hide show
  1. package/CHANGELOG.md +163 -38
  2. package/CODE_OF_CONDUCT.md +70 -70
  3. package/CONTRIBUTING.md +157 -149
  4. package/README.md +1 -1
  5. package/docs_md/anatomy_of_a_mapcomponent.md +34 -37
  6. package/docs_md/initial_0.gif +0 -0
  7. package/eslint.config.cjs +3 -0
  8. package/index.html +30 -0
  9. package/package.json +192 -224
  10. package/project.json +21 -0
  11. package/tsconfig.lib.json +29 -0
  12. package/vite.config.ts +61 -0
  13. package/.eslintrc.cjs +0 -33
  14. package/dist/assets/index.cjs-Iqz0mZaU.css +0 -98
  15. package/dist/assets/index.esm-Iqz0mZaU.css +0 -98
  16. package/dist/index.cjs.js +0 -22120
  17. package/dist/index.cjs.js.map +0 -1
  18. package/dist/index.esm.js +0 -22000
  19. package/dist/index.esm.js.map +0 -1
  20. package/dist/src/components/MapLibreMap/MapLibreMap.d.ts +0 -34
  21. package/dist/src/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +0 -120
  22. package/dist/src/components/MlCenterPosition/MlCenterPosition.d.ts +0 -36
  23. package/dist/src/components/MlClientSearch/MlClientSearch.d.ts +0 -30
  24. package/dist/src/components/MlClientSearch/lib/SearchContext.d.ts +0 -13
  25. package/dist/src/components/MlClientSearch/lib/SearchForm.d.ts +0 -2
  26. package/dist/src/components/MlClientSearch/lib/createGeojsonFeature.d.ts +0 -4
  27. package/dist/src/components/MlComponentTemplate/MlComponentTemplate.d.ts +0 -18
  28. package/dist/src/components/MlComponentTemplate/MlComponentTemplate.stories_.d.ts +0 -14
  29. package/dist/src/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +0 -22
  30. package/dist/src/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +0 -13
  31. package/dist/src/components/MlCreatePdfForm/lib/PdfContext.d.ts +0 -8
  32. package/dist/src/components/MlCreatePdfForm/lib/PdfForm.d.ts +0 -25
  33. package/dist/src/components/MlCreatePdfForm/lib/PdfPreview.d.ts +0 -26
  34. package/dist/src/components/MlCreatePdfForm/lib/pdf.templates.d.ts +0 -11
  35. package/dist/src/components/MlCreatePngButton/MlCreatePngButton.d.ts +0 -22
  36. package/dist/src/components/MlFeatureEditor/MlFeatureEditor.d.ts +0 -5
  37. package/dist/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +0 -62
  38. package/dist/src/components/MlFollowGps/MlFollowGps.d.ts +0 -81
  39. package/dist/src/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +0 -98
  40. package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +0 -9
  41. package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +0 -9
  42. package/dist/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +0 -4
  43. package/dist/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +0 -5
  44. package/dist/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +0 -23
  45. package/dist/src/components/MlGlobeButton/MlGlobeButton.d.ts +0 -28
  46. package/dist/src/components/MlGpxViewer/MlGpxViewer.d.ts +0 -31
  47. package/dist/src/components/MlGpxViewer/util/GeoJsonContext.d.ts +0 -10
  48. package/dist/src/components/MlGpxViewer/util/GeoJsonProvider.d.ts +0 -5
  49. package/dist/src/components/MlGpxViewer/util/Metadata.d.ts +0 -7
  50. package/dist/src/components/MlGpxViewer/util/MlGpxDemoLoader.d.ts +0 -11
  51. package/dist/src/components/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +0 -4
  52. package/dist/src/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +0 -39
  53. package/dist/src/components/MlLayer/MlLayer.d.ts +0 -33
  54. package/dist/src/components/MlLayerMagnify/MlLayerMagnify.d.ts +0 -33
  55. package/dist/src/components/MlLayerSwipe/MlLayerSwipe.d.ts +0 -26
  56. package/dist/src/components/MlLayerSwipe/assets/SwipeIcon.d.ts +0 -10
  57. package/dist/src/components/MlLayerSwitcher/MlLayerSwitcher.d.ts +0 -29
  58. package/dist/src/components/MlLayerSwitcher/components/LayerBox.d.ts +0 -10
  59. package/dist/src/components/MlMarker/MlMarker.d.ts +0 -29
  60. package/dist/src/components/MlMeasureTool/MlMeasureTool.d.ts +0 -37
  61. package/dist/src/components/MlMultiMeasureTool/MlMultiMeasureTool.d.ts +0 -55
  62. package/dist/src/components/MlNavigationCompass/MlNavigationCompass.d.ts +0 -33
  63. package/dist/src/components/MlNavigationCompass/assets/CompassBackground.d.ts +0 -9
  64. package/dist/src/components/MlNavigationCompass/assets/CompassNeedle.d.ts +0 -9
  65. package/dist/src/components/MlNavigationTools/MlNavigationTools.d.ts +0 -60
  66. package/dist/src/components/MlOgcApiFeatures/MlOgcApiFeatures.d.ts +0 -45
  67. package/dist/src/components/MlOrderLayers/MlOrderLayers.d.ts +0 -21
  68. package/dist/src/components/MlScaleReference/MlScaleReference.d.ts +0 -9
  69. package/dist/src/components/MlShareMapState/MlShareMapState.d.ts +0 -35
  70. package/dist/src/components/MlSketchTool/MlSketchTool.d.ts +0 -50
  71. package/dist/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +0 -40
  72. package/dist/src/components/MlSpatialElevationProfile/util/getElevationData.d.ts +0 -13
  73. package/dist/src/components/MlTemporalController/MlTemporalController.d.ts +0 -181
  74. package/dist/src/components/MlTemporalController/utils/MlTemporalControllerLabels.d.ts +0 -20
  75. package/dist/src/components/MlTemporalController/utils/TemporalControllerPlayer.d.ts +0 -22
  76. package/dist/src/components/MlTemporalController/utils/paintPicker.d.ts +0 -59
  77. package/dist/src/components/MlTemporalController/utils/useFilterData.d.ts +0 -14
  78. package/dist/src/components/MlTerrainLayer/MlTerrainLayer.d.ts +0 -28
  79. package/dist/src/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +0 -13
  80. package/dist/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +0 -12
  81. package/dist/src/components/MlUseMapDebugger/MlUseMapDebugger.d.ts +0 -21
  82. package/dist/src/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +0 -22
  83. package/dist/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +0 -22
  84. package/dist/src/components/MlWmsLayer/MlWmsLayer.d.ts +0 -58
  85. package/dist/src/components/MlWmsLoader/MlWmsLoader.d.ts +0 -125
  86. package/dist/src/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +0 -4
  87. package/dist/src/components/MlWmsLoader/utils/WMSLinks.d.ts +0 -8
  88. package/dist/src/contexts/LayerContext.d.ts +0 -59
  89. package/dist/src/contexts/MapContext.d.ts +0 -26
  90. package/dist/src/contexts/SimpleDataContext.d.ts +0 -4
  91. package/dist/src/contexts/SimpleDataProvider.d.ts +0 -12
  92. package/dist/src/decorators/EmptyMapDecorator.d.ts +0 -4
  93. package/dist/src/decorators/GeoJsonMapDecorator.d.ts +0 -4
  94. package/dist/src/decorators/LowZoomDecorator.d.ts +0 -4
  95. package/dist/src/decorators/MapContextDecorator.d.ts +0 -7
  96. package/dist/src/decorators/MapContextDecoratorHooks.d.ts +0 -4
  97. package/dist/src/decorators/MapContextReduxStoreDecorator.d.ts +0 -7
  98. package/dist/src/decorators/MultiMapContextDecorator.d.ts +0 -4
  99. package/dist/src/decorators/NoNavToolsDecorator.d.ts +0 -4
  100. package/dist/src/decorators/ThemeDecorator.d.ts +0 -5
  101. package/dist/src/hooks/useAddImage/useAddImage.d.ts +0 -20
  102. package/dist/src/hooks/useAddProtocol/useAddProtocol.d.ts +0 -23
  103. package/dist/src/hooks/useCameraFollowPath/useCameraFollowPath.d.ts +0 -35
  104. package/dist/src/hooks/useExportMap/index.d.ts +0 -11
  105. package/dist/src/hooks/useExportMap/lib.d.ts +0 -52
  106. package/dist/src/hooks/useFeatureEditor/useFeatureEditor.d.ts +0 -46
  107. package/dist/src/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +0 -116
  108. package/dist/src/hooks/useFitLayerBounds.d.ts +0 -8
  109. package/dist/src/hooks/useGpx/useGpx.d.ts +0 -26
  110. package/dist/src/hooks/useLayer.d.ts +0 -36
  111. package/dist/src/hooks/useLayerContext.d.ts +0 -2
  112. package/dist/src/hooks/useLayerFilter/useLayerFilter.d.ts +0 -8
  113. package/dist/src/hooks/useLayerHoverPopup/LayerHoverPopup.d.ts +0 -24
  114. package/dist/src/hooks/useMap.d.ts +0 -14
  115. package/dist/src/hooks/useMapState.d.ts +0 -37
  116. package/dist/src/hooks/useSource.d.ts +0 -17
  117. package/dist/src/hooks/useWms.d.ts +0 -26
  118. package/dist/src/index.d.ts +0 -126
  119. package/dist/src/omt_styles/bright.d.ts +0 -2495
  120. package/dist/src/omt_styles/config.d.ts +0 -7
  121. package/dist/src/omt_styles/gruvbox.d.ts +0 -2420
  122. package/dist/src/omt_styles/medieval_kingdom.d.ts +0 -2420
  123. package/dist/src/omt_styles/monokai.d.ts +0 -2420
  124. package/dist/src/omt_styles/oceanic_next.d.ts +0 -2420
  125. package/dist/src/omt_styles/solarized.d.ts +0 -2420
  126. package/dist/src/protocol_handlers/csv.d.ts +0 -8
  127. package/dist/src/protocol_handlers/mbtiles.d.ts +0 -74
  128. package/dist/src/protocol_handlers/osm.d.ts +0 -10
  129. package/dist/src/protocol_handlers/topojson.d.ts +0 -9
  130. package/dist/src/protocol_handlers/utils/getProtocolData.d.ts +0 -1
  131. package/dist/src/protocol_handlers/utils/protocolPathParser.d.ts +0 -7
  132. package/dist/src/protocol_handlers/xml.d.ts +0 -10
  133. package/dist/src/stores/map.store.d.ts +0 -105
  134. package/dist/src/ui_components/AddLayerButton/AddLayerButton.d.ts +0 -17
  135. package/dist/src/ui_components/AddLayerButton/AddLayerPopup.d.ts +0 -15
  136. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/GeoJsonLayerForm.d.ts +0 -8
  137. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/LayerTypeForm.d.ts +0 -10
  138. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/MbtilesLayerForm.d.ts +0 -13
  139. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/ProtocolHandlerLayerForm.d.ts +0 -10
  140. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/WmsLayerForm.d.ts +0 -10
  141. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/CSVOptionsFomular.d.ts +0 -6
  142. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts +0 -7
  143. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/OsmOptionsFomular.d.ts +0 -6
  144. package/dist/src/ui_components/ColorPicker/ColorPicker.d.ts +0 -15
  145. package/dist/src/ui_components/ColorPicker/transformers.d.ts +0 -10
  146. package/dist/src/ui_components/ConfirmDialog.d.ts +0 -16
  147. package/dist/src/ui_components/DemoDescriptions.d.ts +0 -12
  148. package/dist/src/ui_components/Dropzone.d.ts +0 -6
  149. package/dist/src/ui_components/ImageLoader.d.ts +0 -10
  150. package/dist/src/ui_components/LayerList/LayerList.d.ts +0 -7
  151. package/dist/src/ui_components/LayerList/LayerListFolder.d.ts +0 -9
  152. package/dist/src/ui_components/LayerList/LayerListItem.d.ts +0 -26
  153. package/dist/src/ui_components/LayerList/LayerListItemFactory.d.ts +0 -18
  154. package/dist/src/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +0 -19
  155. package/dist/src/ui_components/LayerList/util/LayerPropertyForm.d.ts +0 -10
  156. package/dist/src/ui_components/LayerList/util/SortableContainer.d.ts +0 -7
  157. package/dist/src/ui_components/LayerList/util/input/ColorPicker.d.ts +0 -10
  158. package/dist/src/ui_components/LayerTree/LayerOnMap.d.ts +0 -7
  159. package/dist/src/ui_components/LayerTree/LayerTree.d.ts +0 -6
  160. package/dist/src/ui_components/LayerTree/LayerTreeListItem.d.ts +0 -18
  161. package/dist/src/ui_components/LayerTree/util/LayerPropertyForm.d.ts +0 -9
  162. package/dist/src/ui_components/LayerTree/util/input/ColorPicker.d.ts +0 -7
  163. package/dist/src/ui_components/LoadingOverlayContext.d.ts +0 -4
  164. package/dist/src/ui_components/MapcomponentsTheme.d.ts +0 -36
  165. package/dist/src/ui_components/SelectStyleButton/SelectStyleButton.d.ts +0 -20
  166. package/dist/src/ui_components/SelectStyleButton/SelectStylePopup.d.ts +0 -18
  167. package/dist/src/ui_components/Sidebar.d.ts +0 -13
  168. package/dist/src/ui_components/SpeedDial/SpeedDial.d.ts +0 -14
  169. package/dist/src/ui_components/TopToolbar.d.ts +0 -9
  170. package/dist/src/ui_components/UploadButton.d.ts +0 -8
  171. package/dist/src/util/BubbleForInstructions.d.ts +0 -16
  172. package/dist/src/util/Instructions.d.ts +0 -14
  173. package/eslint.config.mjs +0 -73
  174. package/rollup.config.mjs +0 -62
@@ -1,8 +0,0 @@
1
- import { RequestParameters } from 'maplibre-gl';
2
- import { FeatureCollection } from 'geojson';
3
- import * as csv2geojsonType from './csv2geojson';
4
- declare function convertCsv(filename: string, options: csv2geojsonType.csvOptions): Promise<FeatureCollection>;
5
- declare const CSVProtocolHandler: (params: RequestParameters) => Promise<{
6
- data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
7
- }>;
8
- export { CSVProtocolHandler, convertCsv };
@@ -1,74 +0,0 @@
1
- import initSqlJs from 'sql.js';
2
- import { RequestParameters } from 'maplibre-gl';
3
- declare const parseTileParams: (url: string) => {
4
- filename: string;
5
- z: string;
6
- x: string;
7
- y: string;
8
- };
9
- declare const getMbtilesDbHandler: ({ filename }: {
10
- filename: string;
11
- }) => Promise<{
12
- close(): void;
13
- create_function(name: string, func: (...args: any[]) => any): /*elided*/ any;
14
- each(sql: string, params: initSqlJs.BindParams, callback: initSqlJs.ParamsCallback, done: () => void): /*elided*/ any;
15
- each(sql: string, callback: initSqlJs.ParamsCallback, done: () => void): /*elided*/ any;
16
- exec(sql: string, params?: initSqlJs.BindParams): initSqlJs.QueryExecResult[];
17
- export(): Uint8Array;
18
- getRowsModified(): number;
19
- handleError(): null | never;
20
- iterateStatements(sql: string): {
21
- getRemainingSQL(): string;
22
- next(): initSqlJs.StatementIteratorResult;
23
- [Symbol.iterator](): Iterator<{
24
- bind(values?: initSqlJs.BindParams): boolean;
25
- free(): boolean;
26
- freemem(): void;
27
- get(params?: initSqlJs.BindParams): initSqlJs.SqlValue[];
28
- getAsObject(params?: initSqlJs.BindParams): initSqlJs.ParamsObject;
29
- getColumnNames(): string[];
30
- getNormalizedSQL(): string;
31
- getSQL(): string;
32
- reset(): void;
33
- run(values?: initSqlJs.BindParams): void;
34
- step(): boolean;
35
- }>;
36
- };
37
- prepare(sql: string, params?: initSqlJs.BindParams): {
38
- bind(values?: initSqlJs.BindParams): boolean;
39
- free(): boolean;
40
- freemem(): void;
41
- get(params?: initSqlJs.BindParams): initSqlJs.SqlValue[];
42
- getAsObject(params?: initSqlJs.BindParams): initSqlJs.ParamsObject;
43
- getColumnNames(): string[];
44
- getNormalizedSQL(): string;
45
- getSQL(): string;
46
- reset(): void;
47
- run(values?: initSqlJs.BindParams): void;
48
- step(): boolean;
49
- };
50
- run(sql: string, params?: initSqlJs.BindParams): /*elided*/ any;
51
- }>;
52
- /**
53
- * Example usage:
54
- * getBufferFromMbtiles({ filename: 'mbtiles/countries.mbtiles', z: '0', x: '0', y: '0' }).then(
55
- * (result) => {
56
- * console.log(result);
57
- * }
58
- * );
59
- */
60
- declare function getBufferFromMbtiles(params: {
61
- filename: string;
62
- z: string;
63
- x: string;
64
- y: string;
65
- }): Promise<unknown>;
66
- /**
67
- * Expects a tile url in the following format:
68
- *
69
- * 'mbtiles://mbtiles/countries.mbtiles/{z}/{x}/{y}'
70
- */
71
- declare const mbTilesProtocolHandler: (params: RequestParameters) => Promise<{
72
- data: {};
73
- }>;
74
- export { mbTilesProtocolHandler, parseTileParams, getBufferFromMbtiles, getMbtilesDbHandler };
@@ -1,10 +0,0 @@
1
- import { RequestParameters } from 'maplibre-gl';
2
- import { FeatureCollection } from 'geojson';
3
- declare function convertOSM(params: {
4
- filename: string;
5
- options: osm2geojson.Options;
6
- }): Promise<FeatureCollection>;
7
- declare const OSMProtocolHandler: (params: RequestParameters) => Promise<{
8
- data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
9
- }>;
10
- export { OSMProtocolHandler, convertOSM };
@@ -1,9 +0,0 @@
1
- import { RequestParameters } from 'maplibre-gl';
2
- import { FeatureCollection } from 'geojson';
3
- declare function convertTopojson(params: {
4
- filename: string;
5
- }): Promise<FeatureCollection>;
6
- declare const TopojsonProtocolHandler: (params: RequestParameters) => Promise<{
7
- data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
8
- }>;
9
- export { TopojsonProtocolHandler, convertTopojson };
@@ -1 +0,0 @@
1
- export default function getProtocolData(path: string): Promise<any>;
@@ -1,7 +0,0 @@
1
- export default function protocolPathParser(url: string): {
2
- protocolId: string;
3
- filename: string;
4
- options: {
5
- [k: string]: string;
6
- };
7
- };
@@ -1,10 +0,0 @@
1
- import { RequestParameters } from 'maplibre-gl';
2
- import { FeatureCollection } from 'geojson';
3
- declare function convertXML(params: {
4
- filename: string;
5
- protocolId: string;
6
- }): Promise<FeatureCollection>;
7
- declare const XMLProtocolHandler: (params: RequestParameters) => Promise<{
8
- data: FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
9
- }>;
10
- export { XMLProtocolHandler, convertXML };
@@ -1,105 +0,0 @@
1
- import { MlGeoJsonLayerProps } from 'src/components/MlGeoJsonLayer/MlGeoJsonLayer';
2
- import { MlVectorTileLayerProps } from 'src/components/MlVectorTileLayer/MlVectorTileLayer';
3
- import { Layer } from 'wms-capabilities';
4
- import { MlWmsLayerProps } from '../components/MlWmsLayer/MlWmsLayer';
5
- export interface wmsLoaderConfigProps {
6
- getFeatureInfoUrl: string;
7
- layers: Layer[];
8
- name: string;
9
- open: boolean;
10
- visible: boolean;
11
- wmsUrl: string;
12
- }
13
- export interface wmsConfig {
14
- featureInfoActive?: boolean;
15
- config?: wmsLoaderConfigProps;
16
- url: string;
17
- }
18
- export type WmsLayerConfig = {
19
- type: 'wms';
20
- uuid: string;
21
- name?: string;
22
- id?: string;
23
- config?: MlWmsLayerProps;
24
- masterVisible?: boolean;
25
- };
26
- export type GeojsonLayerConfig = {
27
- type: 'geojson';
28
- uuid: string;
29
- name?: string;
30
- id?: string;
31
- config: MlGeoJsonLayerProps;
32
- masterVisible?: boolean;
33
- configurable?: boolean;
34
- };
35
- export type VtLayerConfig = {
36
- type: 'vt';
37
- uuid: string;
38
- name?: string;
39
- id?: string;
40
- config: MlVectorTileLayerProps;
41
- visible?: boolean;
42
- masterVisible?: boolean;
43
- };
44
- export type FolderLayerConfig = {
45
- type: 'folder';
46
- uuid: string;
47
- name?: string;
48
- visible?: boolean;
49
- masterVisible?: boolean;
50
- id?: string;
51
- config?: undefined;
52
- };
53
- export type LayerConfig = WmsLayerConfig | GeojsonLayerConfig | VtLayerConfig | FolderLayerConfig;
54
- export interface MapProps {
55
- center: [number, number];
56
- zoom: number;
57
- }
58
- export interface LayerOrderItem {
59
- uuid: string;
60
- layers?: LayerOrderItem[];
61
- }
62
- export interface MapConfig {
63
- name: string;
64
- mapProps: MapProps;
65
- layers: LayerConfig[];
66
- layerOrder: LayerOrderItem[];
67
- }
68
- export type MapState = {
69
- mapConfigs: {
70
- [key: string]: MapConfig;
71
- };
72
- };
73
- export type RootState = {
74
- mapConfig: MapState;
75
- };
76
- export declare const initialState: MapState;
77
- export declare const getLayerByUuid: (state: MapState, uuid: string) => LayerConfig | null;
78
- export declare const extractUuidsFromLayerOrder: (state: RootState, mapConfigKey: string) => string[];
79
- declare const store: import("@reduxjs/toolkit").EnhancedStore<{
80
- mapConfig: MapState;
81
- }, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
82
- dispatch: import("redux-thunk").ThunkDispatch<{
83
- mapConfig: MapState;
84
- }, undefined, import("redux").UnknownAction>;
85
- }>, import("redux").StoreEnhancer]>>;
86
- export declare const setMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
87
- key: string;
88
- mapConfig: MapConfig;
89
- }, "mapConfig/setMapConfig">, removeMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
90
- key: string;
91
- }, "mapConfig/removeMapConfig">, setLayerInMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
92
- mapConfigKey: string;
93
- layer: LayerConfig;
94
- }, "mapConfig/setLayerInMapConfig">, removeLayerFromMapConfig: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
95
- mapConfigKey: string;
96
- layerUuid: string;
97
- }, "mapConfig/removeLayerFromMapConfig">, updateLayerOrder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
98
- mapConfigKey: string;
99
- newOrder: LayerOrderItem[];
100
- }, "mapConfig/updateLayerOrder">, setMasterVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
101
- mapConfigKey: string;
102
- layerId: string;
103
- masterVisible: boolean;
104
- }, "mapConfig/setMasterVisible">;
105
- export default store;
@@ -1,17 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import React from 'react';
3
- import { LayerConfig } from '../../contexts/LayerContext';
4
- export interface AddLayerButtonProps {
5
- sx?: SxProps;
6
- /**
7
- * An string array, to filter the supported file types that would be shown to the user
8
- * Default is: ['geojson', 'wms', 'csv', 'topojson', 'osm', 'gpx', 'kml', 'tcx']
9
- */
10
- layerTypes?: string[];
11
- onComplete?: (config: LayerConfig) => void;
12
- }
13
- declare const AddLayerButton: {
14
- (props: AddLayerButtonProps): React.JSX.Element;
15
- defaultProps: {};
16
- };
17
- export default AddLayerButton;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { LayerConfig } from 'src/contexts/LayerContext';
3
- export interface AddLayerPopupProps {
4
- open: boolean;
5
- config?: LayerConfig;
6
- layerTypes: string[];
7
- setOpen: (open: boolean) => void;
8
- onChange?: (config: LayerConfig) => void;
9
- onComplete?: (config: LayerConfig) => void;
10
- }
11
- declare const AddLayerPopup: {
12
- (props: AddLayerPopupProps): React.JSX.Element;
13
- defaultProps: {};
14
- };
15
- export default AddLayerPopup;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { MlGeoJsonLayerProps } from 'src/components/MlGeoJsonLayer/MlGeoJsonLayer';
3
- export interface GeoJsonLayerFormProps {
4
- config?: MlGeoJsonLayerProps;
5
- onSubmit: (config: MlGeoJsonLayerProps) => void;
6
- onCancel: () => void;
7
- }
8
- export default function GeoJsonLayerForm(props: GeoJsonLayerFormProps): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface LayerTypeFormProps {
3
- onSelect: (type: string) => void;
4
- layerTypes: string[];
5
- }
6
- declare const LayerTypeForm: {
7
- (props: LayerTypeFormProps): React.JSX.Element;
8
- defaultProps: {};
9
- };
10
- export default LayerTypeForm;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { MlVectorTileLayerProps } from 'src/components/MlVectorTileLayer/MlVectorTileLayer';
3
- export interface WmsLayerConfig {
4
- url: string;
5
- }
6
- export interface MbtilesLayerFormProps {
7
- originType: string;
8
- config: MlVectorTileLayerProps;
9
- mapId?: string;
10
- onSubmit: (config: MlVectorTileLayerProps) => void;
11
- onCancel: () => void;
12
- }
13
- export default function MbtilesLayerForm(props: MbtilesLayerFormProps): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { MlGeoJsonLayerProps } from 'src/components/MlGeoJsonLayer/MlGeoJsonLayer';
3
- export interface ProtocolHandlerLayerFormProps {
4
- originType: string;
5
- config?: MlGeoJsonLayerProps;
6
- mapId?: string;
7
- onSubmit: (config: MlGeoJsonLayerProps) => void;
8
- onCancel: () => void;
9
- }
10
- export default function ProtocolHandlerLayerForm(props: ProtocolHandlerLayerFormProps): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { wmsConfig } from 'src/contexts/LayerContext';
3
- export interface WmsLayerConfig {
4
- url: string;
5
- }
6
- export interface WmsLayerFormProps {
7
- onSubmit: (config: wmsConfig) => void;
8
- onCancel: () => void;
9
- }
10
- export default function WmsLayerForm(props: WmsLayerFormProps): React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface CSVOptionsFormulaProps {
3
- setter: any;
4
- }
5
- declare function CSVOptionsFormular(props: CSVOptionsFormulaProps): React.JSX.Element;
6
- export default CSVOptionsFormular;
@@ -1,7 +0,0 @@
1
- import React, { Dispatch, SetStateAction } from 'react';
2
- import { LayerSpecification } from 'maplibre-gl';
3
- interface MbtilesLayerPropFormularProps {
4
- setter: Dispatch<SetStateAction<LayerSpecification[]>>;
5
- }
6
- export default function MbtilesLayerPropFormular(props: MbtilesLayerPropFormularProps): React.JSX.Element;
7
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface OsmOptionsFomularProps {
3
- setter: any;
4
- }
5
- declare function OsmOptionsFomular(props: OsmOptionsFomularProps): React.JSX.Element;
6
- export default OsmOptionsFomular;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export interface ColorPickerProps {
3
- onChange?: (value: string) => void;
4
- convert: 'rgb' | 'rgba' | 'rgba_hex' | 'hex' | 'rgba_rgb';
5
- value?: string;
6
- }
7
- declare const ColorPicker: {
8
- ({ convert, ...props }: ColorPickerProps): React.JSX.Element;
9
- defaultProps: {
10
- convert: string;
11
- label: string;
12
- name: string;
13
- };
14
- };
15
- export default ColorPicker;
@@ -1,10 +0,0 @@
1
- import { ColorResult } from 'react-color';
2
- export declare const DEFAULT_CONVERTER = "rgba_hex";
3
- export declare const converters: {
4
- rgba: (c: ColorResult) => string;
5
- rgb: (c: ColorResult) => string;
6
- hex: (c: ColorResult) => string;
7
- rgba_rgb: (c: ColorResult) => string;
8
- rgba_hex: (c: ColorResult) => string;
9
- };
10
- export default converters;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- export interface ConfirmDialogProps {
3
- open: boolean;
4
- title: string;
5
- text: string;
6
- onConfirm: () => void;
7
- onCancel: () => void;
8
- }
9
- declare function ConfirmDialog(props: ConfirmDialogProps): React.JSX.Element;
10
- declare namespace ConfirmDialog {
11
- var defaultProps: {
12
- title: string;
13
- text: string;
14
- };
15
- }
16
- export default ConfirmDialog;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export interface DemoDescriptionItem {
3
- item: string;
4
- description: string;
5
- }
6
- interface DemoDescriptionsProps {
7
- section: string;
8
- json: DemoDescriptionItem[];
9
- title: string;
10
- }
11
- declare function DemoDescriptions(props: DemoDescriptionsProps): React.JSX.Element;
12
- export default DemoDescriptions;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- setData: (data: string) => void;
4
- };
5
- export default function Dropzone(props: Props): React.JSX.Element;
6
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { SxProps } from '@mui/material';
3
- interface ImageLoaderProps {
4
- src: string;
5
- alt?: string;
6
- sx?: SxProps;
7
- className?: string;
8
- }
9
- declare const ImageLoader: (props: ImageLoaderProps) => React.JSX.Element;
10
- export default ImageLoader;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface LayerListProps {
3
- mapId?: string;
4
- children?: React.JSX.Element | React.JSX.Element[];
5
- }
6
- declare function LayerList(props: LayerListProps): React.JSX.Element;
7
- export default LayerList;
@@ -1,9 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface LayerListFolderProps {
3
- visible: boolean;
4
- name?: string | ReactNode;
5
- children: React.JSX.Element | React.JSX.Element[];
6
- setVisible?: (visible: boolean | ((val: unknown) => boolean)) => void;
7
- }
8
- declare function LayerListFolder({ visible, name, children, setVisible }: LayerListFolderProps): React.JSX.Element;
9
- export default LayerListFolder;
@@ -1,26 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { SxProps } from '@mui/material';
3
- interface LayerListItemProps {
4
- layerComponent: React.JSX.Element;
5
- visible: boolean;
6
- configurable: boolean;
7
- type?: 'background' | 'background-labels' | 'layer' | 'wms-layer' | 'vector-tile-layer';
8
- name: string | ReactNode;
9
- description?: string;
10
- setLayerState?: (state: unknown) => void;
11
- showDeleteButton?: boolean;
12
- listItemSx?: SxProps;
13
- buttons?: React.JSX.Element;
14
- layerId?: string;
15
- sortable?: boolean;
16
- }
17
- declare function LayerListItem({ layerComponent, visible, type, name, description, configurable, setLayerState, ...props }: LayerListItemProps): React.JSX.Element;
18
- declare namespace LayerListItem {
19
- var defaultProps: {
20
- type: string;
21
- visible: boolean;
22
- showDeleteButton: boolean;
23
- buttons: React.JSX.Element;
24
- };
25
- }
26
- export default LayerListItem;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { LayerConfig } from '../../contexts/LayerContext';
3
- import { FitBoundsOptions } from 'maplibre-gl';
4
- export interface LayerListItemFactoryProps {
5
- mapId?: string;
6
- layers: LayerConfig[];
7
- setLayers?: (layers: LayerConfig[] | ((state: LayerConfig[]) => LayerConfig[])) => void;
8
- insertBeforeLayer?: string;
9
- sortable?: boolean;
10
- fitBoundsOptions?: FitBoundsOptions;
11
- }
12
- declare function LayerListItemFactory(props: LayerListItemFactoryProps): React.JSX.Element;
13
- declare namespace LayerListItemFactory {
14
- var defaultProps: {
15
- mapId: undefined;
16
- };
17
- }
18
- export default LayerListItemFactory;
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { MlVectorTileLayerProps } from '../../../components/MlVectorTileLayer/MlVectorTileLayer';
3
- export declare const ListItemStyled: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "className" | "style" | "classes" | "components" | "componentsProps" | "slotProps" | "slots" | "alignItems" | "children" | "ContainerComponent" | "ContainerProps" | "dense" | "disableGutters" | "disablePadding" | "divider" | "secondaryAction" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
- export declare const CheckboxListItemIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemIconProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("@mui/material").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- interface LayerListItemVectorLayerProps {
7
- id: string;
8
- configurable?: boolean;
9
- vtProps: MlVectorTileLayerProps;
10
- setVtProps: ((state: unknown) => void) | undefined;
11
- visibleMaster?: boolean;
12
- }
13
- declare function LayerListItemVectorLayer({ configurable, vtProps, setVtProps, id, ...props }: LayerListItemVectorLayerProps): React.JSX.Element;
14
- declare namespace LayerListItemVectorLayer {
15
- var defaultProps: {
16
- configurable: boolean;
17
- };
18
- }
19
- export default LayerListItemVectorLayer;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { CircleLayerSpecification, FillLayerSpecification, LineLayerSpecification } from 'maplibre-gl';
3
- export type paintPropsType = CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
4
- interface LayerPropertyFormProps {
5
- paintProps: paintPropsType;
6
- setPaintProps: (paintProps: paintPropsType | ((current: paintPropsType) => paintPropsType)) => void;
7
- layerType: string;
8
- }
9
- declare function LayerPropertyForm({ paintProps, setPaintProps }: LayerPropertyFormProps): React.JSX.Element;
10
- export default LayerPropertyForm;
@@ -1,7 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- interface SortableContainerProps {
3
- children: ReactNode;
4
- layerId: string;
5
- }
6
- declare function SortableContainer({ children, layerId }: SortableContainerProps): React.JSX.Element;
7
- export default SortableContainer;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { paintPropsType } from '../LayerPropertyForm';
3
- interface PaintPropsColorPickerProps {
4
- key: string;
5
- value: string;
6
- propKey: string;
7
- setPaintProps: (paintProps: paintPropsType | ((current: paintPropsType) => paintPropsType)) => void;
8
- }
9
- declare function PaintPropsColorPicker({ propKey, value, setPaintProps }: PaintPropsColorPickerProps): React.JSX.Element;
10
- export default PaintPropsColorPicker;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface LayerOnMapProps {
3
- mapConfigKey: string;
4
- mapId?: string;
5
- }
6
- declare function LayerOnMap(props: LayerOnMapProps): React.JSX.Element;
7
- export default LayerOnMap;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface LayerTreeProps {
3
- mapConfigKey: string;
4
- }
5
- declare function LayerTree(props: LayerTreeProps): React.JSX.Element;
6
- export default LayerTree;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { SxProps } from '@mui/material';
3
- import { LayerOrderItem } from '../../stores/map.store';
4
- interface LayerTreeListItemProps {
5
- visible?: boolean;
6
- type?: 'background' | 'background-labels' | 'layer' | 'wms-layer' | 'vector-tile-layer';
7
- name?: string;
8
- description?: string;
9
- setLayerState?: (state: unknown) => void;
10
- showDeleteButton?: boolean;
11
- listItemSx?: SxProps;
12
- buttons?: React.JSX.Element;
13
- sortable?: boolean;
14
- mapConfigKey: string;
15
- layerOrderConfig: LayerOrderItem;
16
- }
17
- declare function LayerTreeListItem(props: LayerTreeListItemProps): React.JSX.Element;
18
- export default LayerTreeListItem;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { CircleLayerSpecification, FillLayerSpecification, LineLayerSpecification } from 'maplibre-gl';
3
- export type paintPropsType = CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
4
- interface LayerPropertyFormProps {
5
- layerUuid: string;
6
- mapConfigKey: string;
7
- }
8
- declare function LayerPropertyForm(props: LayerPropertyFormProps): React.JSX.Element;
9
- export default LayerPropertyForm;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface PaintPropsColorPickerProps {
3
- value: string;
4
- onChange: (value: string) => void;
5
- }
6
- declare function PaintPropsColorPicker(props: PaintPropsColorPickerProps): React.JSX.Element;
7
- export default PaintPropsColorPicker;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare const LoadingOverlayContext: React.Context<{}>;
3
- declare const LoadingOverlayProvider: (children: React.ReactNode) => React.JSX.Element;
4
- export { LoadingOverlayContext, LoadingOverlayProvider };
@@ -1,36 +0,0 @@
1
- declare module '@mui/material' {
2
- interface Palette {
3
- topToolbar: {
4
- barColor: string;
5
- };
6
- navigation: {
7
- buttonColor: string;
8
- navColor: string;
9
- navHover: string;
10
- };
11
- GPS: {
12
- GPSActiveColor: string;
13
- GPSInactiveColor: string;
14
- GPSActiveBackgroundColor: string;
15
- };
16
- compass: {
17
- compColor: string;
18
- compHover: string;
19
- compStroke: string;
20
- compNorth: string;
21
- compSouth: string;
22
- };
23
- }
24
- }
25
- declare module '@mui/material/Button' {
26
- interface ButtonPropsVariantOverrides {
27
- navtools: true;
28
- }
29
- }
30
- declare module '@mui/material' {
31
- interface ListItemTextProps {
32
- variant?: 'layerlist';
33
- }
34
- }
35
- declare const getTheme: (mode: "light" | "dark" | undefined) => import("@mui/material").Theme;
36
- export default getTheme;