@mapcomponents/react-maplibre 0.1.96 → 1.0.1
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/.eslintrc.cjs +32 -0
- package/CHANGELOG.md +6 -0
- package/dist/{index.esm.css → assets/index.cjs-Iqz0mZaU.css} +4 -4
- package/dist/assets/index.esm-Iqz0mZaU.css +98 -0
- package/dist/components/MapLibreMap/MapLibreMap.d.ts +30 -31
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +105 -105
- package/dist/components/MlCenterPosition/MlCenterPosition.d.ts +36 -36
- package/dist/components/MlComponentTemplate/MlComponentTemplate.d.ts +18 -18
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +22 -22
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +30 -30
- package/dist/components/MlCreatePdfForm/lib/PdfContext.d.ts +8 -8
- package/dist/components/MlCreatePdfForm/lib/PdfForm.d.ts +11 -11
- package/dist/components/MlCreatePdfForm/lib/PdfPreview.d.ts +26 -26
- package/dist/components/MlCreatePdfForm/lib/pdf.templates.d.ts +11 -11
- package/dist/components/MlCreatePngButton/MlCreatePngButton.d.ts +22 -22
- package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +5 -5
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +62 -62
- package/dist/components/MlFollowGps/MlFollowGps.d.ts +81 -81
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +97 -97
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +9 -2
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +8 -2
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerCircleStyler.d.ts +4 -4
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerHeatMapStyler.d.ts +4 -4
- package/dist/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +2 -2
- package/dist/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +5 -5
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +23 -23
- package/dist/components/MlGpxViewer/MlGpxViewer.d.ts +31 -31
- package/dist/components/MlGpxViewer/util/GeoJsonContext.d.ts +10 -10
- package/dist/components/MlGpxViewer/util/GeoJsonProvider.d.ts +5 -5
- package/dist/components/MlGpxViewer/util/Metadata.d.ts +7 -7
- package/dist/components/MlGpxViewer/util/MlGpxDemoLoader.d.ts +11 -11
- package/dist/components/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +4 -4
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +39 -39
- package/dist/components/MlLayer/MlLayer.d.ts +33 -33
- package/dist/components/MlLayerMagnify/MlLayerMagnify.d.ts +33 -33
- package/dist/components/MlLayerSwipe/MlLayerSwipe.d.ts +26 -26
- package/dist/components/MlLayerSwitcher/MlLayerSwitcher.d.ts +29 -30
- package/dist/components/MlLayerSwitcher/components/LayerBox.d.ts +10 -6
- package/dist/components/MlMarker/MlMarker.d.ts +34 -34
- package/dist/components/MlMeasureTool/MlMeasureTool.d.ts +36 -36
- package/dist/components/MlMultiMeasureTool/MlMultiMeasureTool.d.ts +55 -55
- package/dist/components/MlNavigationCompass/MlNavigationCompass.d.ts +33 -33
- package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +55 -55
- package/dist/components/MlOrderLayers/MlOrderLayers.d.ts +21 -21
- package/dist/components/MlScaleReference/MlScaleReference.d.ts +9 -9
- package/dist/components/MlShareMapState/MlShareMapState.d.ts +42 -42
- package/dist/components/MlSketchTool/MlSketchTool.d.ts +42 -42
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +40 -40
- package/dist/components/MlSpatialElevationProfile/util/getElevationData.d.ts +12 -14
- package/dist/components/MlTemporalController/MlTemporalController.d.ts +181 -181
- package/dist/components/MlTemporalController/utils/MlTemporalControllerLabels.d.ts +20 -20
- package/dist/components/MlTemporalController/utils/TemporalControllerPlayer.d.ts +22 -22
- package/dist/components/MlTemporalController/utils/paintPicker.d.ts +59 -59
- package/dist/components/MlTemporalController/utils/useFilterData.d.ts +14 -14
- package/dist/components/MlTerrainLayer/MlTerrainLayer.d.ts +28 -28
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +30 -30
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +12 -10
- package/dist/components/MlUseMapDebugger/MlUseMapDebugger.d.ts +18 -22
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +19 -19
- package/dist/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +29 -22
- package/dist/components/MlWmsLayer/MlWmsLayer.d.ts +104 -104
- package/dist/components/MlWmsLoader/MlWmsLoader.d.ts +125 -125
- package/dist/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +4 -4
- package/dist/components/MlWmsLoader/utils/WMSLinks.d.ts +8 -8
- package/dist/contexts/LayerContext.d.ts +59 -59
- package/dist/contexts/MapContext.d.ts +24 -24
- package/dist/contexts/SimpleDataContext.d.ts +4 -4
- package/dist/contexts/SimpleDataProvider.d.ts +18 -8
- package/dist/decorators/EmptyMapDecorator.d.ts +4 -2
- package/dist/decorators/GeoJsonMapDecorator.d.ts +4 -2
- package/dist/decorators/LowZoomDecorator.d.ts +4 -2
- package/dist/decorators/MapContextDecorator.d.ts +4 -2
- package/dist/decorators/MapContextDecoratorHooks.d.ts +4 -2
- package/dist/decorators/MultiMapContextDecorator.d.ts +4 -2
- package/dist/decorators/NoNavToolsDecorator.d.ts +4 -2
- package/dist/decorators/ThemeDecorator.d.ts +5 -2
- package/dist/hooks/useAddImage/useAddImage.d.ts +20 -20
- package/dist/hooks/useAddProtocol/useAddProtocol.d.ts +23 -23
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.d.ts +35 -35
- package/dist/hooks/useExportMap/index.d.ts +11 -11
- package/dist/hooks/useExportMap/lib.d.ts +51 -51
- package/dist/hooks/useFeatureEditor/useFeatureEditor.d.ts +46 -46
- package/dist/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +88 -88
- package/dist/hooks/useFitLayerBounds.d.ts +8 -8
- package/dist/hooks/useGpx/useGpx.d.ts +26 -26
- package/dist/hooks/useLayer.d.ts +36 -36
- package/dist/hooks/useLayerContext.d.ts +2 -2
- package/dist/hooks/useLayerFilter/useLayerFilter.d.ts +8 -8
- package/dist/hooks/useLayerHoverPopup/{useLayerHoverPopup.d.ts → LayerHoverPopup.d.ts} +23 -24
- package/dist/hooks/useMap.d.ts +14 -14
- package/dist/hooks/useMapState.d.ts +62 -62
- package/dist/hooks/useSource.d.ts +17 -17
- package/dist/hooks/useWms.d.ts +26 -26
- package/dist/index.cjs.js +21050 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +87 -89
- package/dist/index.esm.js +19882 -20200
- package/dist/index.esm.js.map +1 -1
- package/dist/omt_styles/bright.d.ts +2495 -2495
- package/dist/omt_styles/config.d.ts +7 -7
- package/dist/omt_styles/gruvbox.d.ts +2420 -2420
- package/dist/omt_styles/medieval_kingdom.d.ts +2420 -2420
- package/dist/omt_styles/monokai.d.ts +2420 -2420
- package/dist/omt_styles/oceanic_next.d.ts +2420 -2420
- package/dist/omt_styles/solarized.d.ts +2420 -2420
- package/dist/protocol_handlers/csv.d.ts +8 -8
- package/dist/protocol_handlers/mbtiles.d.ts +33 -33
- package/dist/protocol_handlers/osm.d.ts +11 -11
- package/dist/protocol_handlers/topojson.d.ts +9 -9
- package/dist/protocol_handlers/utils/getProtocolData.d.ts +1 -1
- package/dist/protocol_handlers/utils/protocolPathParser.d.ts +7 -7
- package/dist/protocol_handlers/xml.d.ts +10 -10
- package/dist/ui_components/AddLayerButton/AddLayerButton.d.ts +17 -17
- package/dist/ui_components/AddLayerButton/AddLayerPopup.d.ts +15 -15
- package/dist/ui_components/AddLayerButton/LayerConfigForms/GeoJsonLayerForm.d.ts +8 -8
- package/dist/ui_components/AddLayerButton/LayerConfigForms/LayerTypeForm.d.ts +10 -10
- package/dist/ui_components/AddLayerButton/LayerConfigForms/MbtilesLayerForm.d.ts +13 -13
- package/dist/ui_components/AddLayerButton/LayerConfigForms/ProtocolHandlerLayerForm.d.ts +10 -10
- package/dist/ui_components/AddLayerButton/LayerConfigForms/WmsLayerForm.d.ts +10 -10
- package/dist/ui_components/AddLayerButton/LayerConfigForms/utils/CSVOptionsFomular.d.ts +6 -6
- package/dist/ui_components/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts +7 -7
- package/dist/ui_components/AddLayerButton/LayerConfigForms/utils/OsmOptionsFomular.d.ts +6 -6
- package/dist/ui_components/ColorPicker/ColorPicker.d.ts +17 -17
- package/dist/ui_components/ColorPicker/transformers.d.ts +10 -10
- package/dist/ui_components/ConfirmDialog.d.ts +16 -16
- package/dist/ui_components/DemoDescriptions.d.ts +12 -12
- package/dist/ui_components/Dropzone.d.ts +6 -6
- package/dist/ui_components/ImageLoader.d.ts +10 -10
- package/dist/ui_components/LayerList/LayerList.d.ts +7 -7
- package/dist/ui_components/LayerList/LayerListFolder.d.ts +9 -9
- package/dist/ui_components/LayerList/LayerListItem.d.ts +26 -26
- package/dist/ui_components/LayerList/LayerListItemFactory.d.ts +18 -18
- package/dist/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +23 -36
- package/dist/ui_components/LayerList/util/LayerPropertyForm.d.ts +10 -10
- package/dist/ui_components/LayerList/util/SortableContainer.d.ts +7 -7
- package/dist/ui_components/LayerList/util/input/ColorPicker.d.ts +10 -10
- package/dist/ui_components/LoadingOverlayContext.d.ts +10 -10
- package/dist/ui_components/MapcomponentsTheme.d.ts +35 -35
- package/dist/ui_components/SelectStyleButton/SelectStyleButton.d.ts +20 -20
- package/dist/ui_components/SelectStyleButton/SelectStylePopup.d.ts +18 -18
- package/dist/ui_components/Sidebar.d.ts +12 -12
- package/dist/ui_components/SpeedDial/SpeedDial.d.ts +14 -14
- package/dist/ui_components/TopToolbar.d.ts +9 -9
- package/dist/ui_components/UploadButton.d.ts +8 -8
- package/dist/util/BubbleForInstructions.d.ts +16 -2
- package/dist/util/Instructions.d.ts +14 -14
- package/package.json +207 -208
- package/rollup.config.mjs +62 -0
- package/dist/components/MapLibreMap/MapLibreMap.stories.d.ts +0 -20
- package/dist/components/MapLibreMap/MapLibreMap.test.d.ts +0 -1
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.test.d.ts +0 -1
- package/dist/components/MlBasicComponent.d.ts +0 -5
- package/dist/components/MlCenterPosition/MlCenterPosition.stories.d.ts +0 -21
- package/dist/components/MlComponentTemplate/MlComponentTemplate.stories.d.ts +0 -14
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.stories.d.ts +0 -14
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.cy.d.ts +0 -1
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +0 -15
- package/dist/components/MlCreatePdfForm/lib/_PdfPreview.d.ts +0 -14
- package/dist/components/MlCreatePngButton/MlCreatePngButton.stories.d.ts +0 -14
- package/dist/components/MlFeatureEditor/MlFeatureEditor.stories.d.ts +0 -16
- package/dist/components/MlFeatureEditor/MlFeatureEditor.test.d.ts +0 -1
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.stories.d.ts +0 -27
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.test.d.ts +0 -1
- package/dist/components/MlFollowGps/MlFollowGps.stories.d.ts +0 -11
- package/dist/components/MlFollowGps/MlFollowGps.test.d.ts +0 -1
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +0 -18
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.test.d.ts +0 -1
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.d.ts +0 -14
- package/dist/components/MlGpxViewer/MlGpxViewer.stories.d.ts +0 -18
- package/dist/components/MlGpxViewer/MlGpxViewer.test.d.ts +0 -1
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.stories.d.ts +0 -9
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.test.d.ts +0 -1
- package/dist/components/MlLayer/MlLayer.test.d.ts +0 -1
- package/dist/components/MlLayerMagnify/MlLayerMagnify.stories.d.ts +0 -15
- package/dist/components/MlLayerMagnify/MlLayerMagnify.test.d.ts +0 -1
- package/dist/components/MlLayerSwipe/MlLayerSwipe.stories.d.ts +0 -14
- package/dist/components/MlLayerSwipe/MlLayerSwipe.test.d.ts +0 -1
- package/dist/components/MlLayerSwitcher/MlLayerSwitcher.stories.d.ts +0 -13
- package/dist/components/MlMarker/MlMarker.stories.d.ts +0 -9
- package/dist/components/MlMeasureTool/MlMeasureTool.stories.d.ts +0 -12
- package/dist/components/MlMultiMeasureTool/MlMultiMeasureTool.stories.d.ts +0 -16
- package/dist/components/MlNavigationCompass/MlNavigationCompass.stories.d.ts +0 -10
- package/dist/components/MlNavigationCompass/MlNavigationCompass.test.d.ts +0 -1
- package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +0 -29
- package/dist/components/MlOrderLayers/MlOrderLayers.stories.d.ts +0 -15
- package/dist/components/MlOsmLayer/MlOsmLayer.d.ts +0 -18
- package/dist/components/MlOsmLayer/MlOsmLayer.stories_.d.ts +0 -16
- package/dist/components/MlOsmLayer/MlOsmLayer.test.d.ts +0 -1
- package/dist/components/MlScaleReference/MlScaleReference.stories.d.ts +0 -15
- package/dist/components/MlShareMapState/MlShareMapState.stories.d.ts +0 -17
- package/dist/components/MlSketchTool/MlSketchTool.stories.d.ts +0 -15
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.d.ts +0 -20
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.test.d.ts +0 -1
- package/dist/components/MlTemporalController/MlTemporalController.stories.d.ts +0 -34
- package/dist/components/MlTerrainLayer/MlTerrainLayer.cy.d.ts +0 -1
- package/dist/components/MlTerrainLayer/MlTerrainLayer.stories.d.ts +0 -14
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.stories.d.ts +0 -22
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.test.d.ts +0 -1
- package/dist/components/MlThreeJsLayer/lib/GLTFLoader.d.ts +0 -18
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.d.ts +0 -13
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.test.d.ts +0 -1
- package/dist/components/MlTransitionGeoJsonLayer/util/transitionFunctions.d.ts +0 -2
- package/dist/components/MlUseMapDebugger/MlUseMapDebugger.stories.d.ts +0 -13
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.stories.d.ts +0 -13
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.test.d.ts +0 -1
- package/dist/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.stories.d.ts +0 -22
- package/dist/components/MlWmsLayer/MlWmsLayer.stories.d.ts +0 -13
- package/dist/components/MlWmsLayer/MlWmsLayer.test.d.ts +0 -1
- package/dist/components/MlWmsLoader/MlWmsLoader.stories.d.ts +0 -30
- package/dist/contexts/MapComponentsProvider.test.d.ts +0 -1
- package/dist/contexts/SimpleDataProvider.test.d.ts +0 -1
- package/dist/hooks/useAddImage/useAddImage.stories.d.ts +0 -14
- package/dist/hooks/useAddImage/useaddImage.cy.d.ts +0 -1
- package/dist/hooks/useAddProtocol/useAddProtocol.stories.d.ts +0 -22
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.stories.d.ts +0 -18
- package/dist/hooks/useGpx/lib/gpxConverter.d.ts +0 -11
- package/dist/hooks/useGpx/useGpx.stories.d.ts +0 -10
- package/dist/hooks/useLayer.test.d.ts +0 -1
- package/dist/hooks/useLayerEvent.d.ts +0 -2
- package/dist/hooks/useLayerFilter/useLayerFilter.stories.d.ts +0 -10
- package/dist/hooks/useLayerHoverPopup/useLayerHoverPopup.stories.d.ts +0 -10
- package/dist/hooks/useMap.test.d.ts +0 -1
- package/dist/hooks/useMapState.stories.d.ts +0 -14
- package/dist/hooks/useSources.stories.d.ts +0 -13
- package/dist/setupTests.d.ts +0 -13
- package/dist/stories/components/Readme.d.ts +0 -2
- package/dist/ui_components/AddLayerButton/AddLayerButton.stories.d.ts +0 -13
- package/dist/ui_components/LayerList/LayerList.stories.d.ts +0 -15
- package/dist/ui_components/SelectStyleButton/SelectStyleButton.stories.d.ts +0 -15
- package/dist/ui_components/SpeedDial/SpeedDial.stories.d.ts +0 -21
- package/dist/util/index.d.ts +0 -3
- package/dist/util/layerRemovalTest.d.ts +0 -2
- package/dist/util/sourceRemovalTest.d.ts +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RequestParameters
|
|
2
|
-
import { FeatureCollection } from '@turf/turf';
|
|
3
|
-
import * as csv2geojsonType from './csv2geojson';
|
|
4
|
-
declare function convertCsv(filename: string, options: csv2geojsonType.csvOptions): Promise<FeatureCollection>;
|
|
5
|
-
declare const CSVProtocolHandler: (params: RequestParameters
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export { CSVProtocolHandler, convertCsv };
|
|
1
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
+
import { FeatureCollection } from '@turf/turf';
|
|
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("@turf/turf").Geometry | import("@turf/turf").GeometryCollection, import("@turf/turf").Properties>;
|
|
7
|
+
}>;
|
|
8
|
+
export { CSVProtocolHandler, convertCsv };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { RequestParameters
|
|
2
|
-
declare const parseTileParams: (url: string) => {
|
|
3
|
-
filename: string;
|
|
4
|
-
z: string;
|
|
5
|
-
x: string;
|
|
6
|
-
y: string;
|
|
7
|
-
};
|
|
8
|
-
declare const getMbtilesDbHandler: ({ filename }: {
|
|
9
|
-
filename: string;
|
|
10
|
-
}) => Promise<any>;
|
|
11
|
-
/**
|
|
12
|
-
* Example usage:
|
|
13
|
-
* getBufferFromMbtiles({ filename: 'mbtiles/countries.mbtiles', z: '0', x: '0', y: '0' }).then(
|
|
14
|
-
* (result) => {
|
|
15
|
-
* console.log(result);
|
|
16
|
-
* }
|
|
17
|
-
* );
|
|
18
|
-
*/
|
|
19
|
-
declare function getBufferFromMbtiles(params: {
|
|
20
|
-
filename: string;
|
|
21
|
-
z: string;
|
|
22
|
-
x: string;
|
|
23
|
-
y: string;
|
|
24
|
-
}): Promise<unknown>;
|
|
25
|
-
/**
|
|
26
|
-
* Expects a tile url in the following format:
|
|
27
|
-
*
|
|
28
|
-
* 'mbtiles://mbtiles/countries.mbtiles/{z}/{x}/{y}'
|
|
29
|
-
*/
|
|
30
|
-
declare const mbTilesProtocolHandler: (params: RequestParameters
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
export { mbTilesProtocolHandler, parseTileParams, getBufferFromMbtiles, getMbtilesDbHandler };
|
|
1
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
+
declare const parseTileParams: (url: string) => {
|
|
3
|
+
filename: string;
|
|
4
|
+
z: string;
|
|
5
|
+
x: string;
|
|
6
|
+
y: string;
|
|
7
|
+
};
|
|
8
|
+
declare const getMbtilesDbHandler: ({ filename }: {
|
|
9
|
+
filename: string;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Example usage:
|
|
13
|
+
* getBufferFromMbtiles({ filename: 'mbtiles/countries.mbtiles', z: '0', x: '0', y: '0' }).then(
|
|
14
|
+
* (result) => {
|
|
15
|
+
* console.log(result);
|
|
16
|
+
* }
|
|
17
|
+
* );
|
|
18
|
+
*/
|
|
19
|
+
declare function getBufferFromMbtiles(params: {
|
|
20
|
+
filename: string;
|
|
21
|
+
z: string;
|
|
22
|
+
x: string;
|
|
23
|
+
y: string;
|
|
24
|
+
}): Promise<unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* Expects a tile url in the following format:
|
|
27
|
+
*
|
|
28
|
+
* 'mbtiles://mbtiles/countries.mbtiles/{z}/{x}/{y}'
|
|
29
|
+
*/
|
|
30
|
+
declare const mbTilesProtocolHandler: (params: RequestParameters) => Promise<{
|
|
31
|
+
data: {};
|
|
32
|
+
}>;
|
|
33
|
+
export { mbTilesProtocolHandler, parseTileParams, getBufferFromMbtiles, getMbtilesDbHandler };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RequestParameters
|
|
2
|
-
import { FeatureCollection } from '@turf/turf';
|
|
3
|
-
import osm2geojson from 'osm2geojson-lite';
|
|
4
|
-
declare function convertOSM(params: {
|
|
5
|
-
filename: string;
|
|
6
|
-
options: osm2geojson.Options;
|
|
7
|
-
}): Promise<FeatureCollection>;
|
|
8
|
-
declare const OSMProtocolHandler: (params: RequestParameters
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export { OSMProtocolHandler, convertOSM };
|
|
1
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
+
import { FeatureCollection, Geometry, GeometryCollection, Properties } from '@turf/turf';
|
|
3
|
+
import osm2geojson from 'osm2geojson-lite';
|
|
4
|
+
declare function convertOSM(params: {
|
|
5
|
+
filename: string;
|
|
6
|
+
options: osm2geojson.Options;
|
|
7
|
+
}): Promise<FeatureCollection>;
|
|
8
|
+
declare const OSMProtocolHandler: (params: RequestParameters) => Promise<{
|
|
9
|
+
data: FeatureCollection<Geometry | GeometryCollection, Properties>;
|
|
10
|
+
}>;
|
|
11
|
+
export { OSMProtocolHandler, convertOSM };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RequestParameters
|
|
2
|
-
import { FeatureCollection } from '@turf/turf';
|
|
3
|
-
declare function convertTopojson(params: {
|
|
4
|
-
filename: string;
|
|
5
|
-
}): Promise<FeatureCollection>;
|
|
6
|
-
declare const TopojsonProtocolHandler: (params: RequestParameters
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export { TopojsonProtocolHandler, convertTopojson };
|
|
1
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
+
import { FeatureCollection, Geometry, GeometryCollection, Properties } from '@turf/turf';
|
|
3
|
+
declare function convertTopojson(params: {
|
|
4
|
+
filename: string;
|
|
5
|
+
}): Promise<FeatureCollection>;
|
|
6
|
+
declare const TopojsonProtocolHandler: (params: RequestParameters) => Promise<{
|
|
7
|
+
data: FeatureCollection<Geometry | GeometryCollection, Properties>;
|
|
8
|
+
}>;
|
|
9
|
+
export { TopojsonProtocolHandler, convertTopojson };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function getProtocolData(path: string): Promise<any>;
|
|
1
|
+
export default function getProtocolData(path: string): Promise<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export default function protocolPathParser(url: string): {
|
|
2
|
-
protocolId: string;
|
|
3
|
-
filename: string;
|
|
4
|
-
options: {
|
|
5
|
-
[k: string]: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
1
|
+
export default function protocolPathParser(url: string): {
|
|
2
|
+
protocolId: string;
|
|
3
|
+
filename: string;
|
|
4
|
+
options: {
|
|
5
|
+
[k: string]: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RequestParameters
|
|
2
|
-
import { FeatureCollection } from '@turf/turf';
|
|
3
|
-
declare function convertXML(params: {
|
|
4
|
-
filename: string;
|
|
5
|
-
protocolId: string;
|
|
6
|
-
}): Promise<FeatureCollection>;
|
|
7
|
-
declare const XMLProtocolHandler: (params: RequestParameters
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export { XMLProtocolHandler, convertXML };
|
|
1
|
+
import { RequestParameters } from 'maplibre-gl';
|
|
2
|
+
import { FeatureCollection, Geometry, GeometryCollection, Properties } from '@turf/turf';
|
|
3
|
+
declare function convertXML(params: {
|
|
4
|
+
filename: string;
|
|
5
|
+
protocolId: string;
|
|
6
|
+
}): Promise<FeatureCollection>;
|
|
7
|
+
declare const XMLProtocolHandler: (params: RequestParameters) => Promise<{
|
|
8
|
+
data: FeatureCollection<Geometry | GeometryCollection, Properties>;
|
|
9
|
+
}>;
|
|
10
|
+
export { XMLProtocolHandler, convertXML };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
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): JSX.Element;
|
|
15
|
-
defaultProps: {};
|
|
16
|
-
};
|
|
17
|
-
export default AddLayerButton;
|
|
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 +1,15 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
13
|
-
defaultProps: {};
|
|
14
|
-
};
|
|
15
|
-
export default AddLayerPopup;
|
|
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 +1,8 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
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 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export interface LayerTypeFormProps {
|
|
3
|
-
onSelect: (type: string) => void;
|
|
4
|
-
layerTypes: string[];
|
|
5
|
-
}
|
|
6
|
-
declare const LayerTypeForm: {
|
|
7
|
-
(props: LayerTypeFormProps): JSX.Element;
|
|
8
|
-
defaultProps: {};
|
|
9
|
-
};
|
|
10
|
-
export default LayerTypeForm;
|
|
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 +1,13 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
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 +1,10 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
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 +1,10 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
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 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
interface CSVOptionsFormulaProps {
|
|
3
|
-
setter: any;
|
|
4
|
-
}
|
|
5
|
-
declare function CSVOptionsFormular(props: CSVOptionsFormulaProps): JSX.Element;
|
|
6
|
-
export default CSVOptionsFormular;
|
|
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;
|
package/dist/ui_components/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { 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): JSX.Element;
|
|
7
|
-
export {};
|
|
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 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
interface OsmOptionsFomularProps {
|
|
3
|
-
setter: any;
|
|
4
|
-
}
|
|
5
|
-
declare function OsmOptionsFomular(props: OsmOptionsFomularProps): JSX.Element;
|
|
6
|
-
export default OsmOptionsFomular;
|
|
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,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ColorPickerProps {
|
|
3
|
-
onChange?: (value: string) => void;
|
|
4
|
-
convert: 'rgb' | 'rgba' | 'rgba_hex' | 'hex' | 'rgba_rgb';
|
|
5
|
-
internalValue?: string;
|
|
6
|
-
setValue?: (value: string) => void;
|
|
7
|
-
value?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const ColorPicker: {
|
|
10
|
-
({ convert, ...props }: ColorPickerProps): JSX.Element;
|
|
11
|
-
defaultProps: {
|
|
12
|
-
convert: string;
|
|
13
|
-
label: string;
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default ColorPicker;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ColorPickerProps {
|
|
3
|
+
onChange?: (value: string) => void;
|
|
4
|
+
convert: 'rgb' | 'rgba' | 'rgba_hex' | 'hex' | 'rgba_rgb';
|
|
5
|
+
internalValue?: string;
|
|
6
|
+
setValue?: (value: string) => void;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ColorPicker: {
|
|
10
|
+
({ convert, ...props }: ColorPickerProps): React.JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
convert: string;
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default ColorPicker;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
+
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 +1,16 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
10
|
-
declare namespace ConfirmDialog {
|
|
11
|
-
var defaultProps: {
|
|
12
|
-
title: string;
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export default ConfirmDialog;
|
|
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 +1,12 @@
|
|
|
1
|
-
|
|
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): JSX.Element;
|
|
12
|
-
export default DemoDescriptions;
|
|
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 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
type Props = {
|
|
3
|
-
setData: (data: string) => void;
|
|
4
|
-
};
|
|
5
|
-
export default function Dropzone(props: Props): JSX.Element;
|
|
6
|
-
export {};
|
|
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 +1,10 @@
|
|
|
1
|
-
|
|
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) => JSX.Element;
|
|
10
|
-
export default ImageLoader;
|
|
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 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
interface LayerListProps {
|
|
3
|
-
mapId?: string;
|
|
4
|
-
children?: JSX.Element | JSX.Element[];
|
|
5
|
-
}
|
|
6
|
-
declare function LayerList(props: LayerListProps): JSX.Element;
|
|
7
|
-
export default LayerList;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LayerListProps {
|
|
3
|
+
mapId?: string;
|
|
4
|
+
children?: JSX.Element | JSX.Element[];
|
|
5
|
+
}
|
|
6
|
+
declare function LayerList(props: LayerListProps): React.JSX.Element;
|
|
7
|
+
export default LayerList;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
interface LayerListFolderProps {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
name?: string;
|
|
5
|
-
children: JSX.Element | JSX.Element[];
|
|
6
|
-
setVisible?: (visible: boolean | ((val: unknown) => boolean)) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function LayerListFolder({ visible, name, children, setVisible }: LayerListFolderProps): JSX.Element;
|
|
9
|
-
export default LayerListFolder;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LayerListFolderProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
name?: string;
|
|
5
|
+
children: JSX.Element | 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 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import { SxProps } from '@mui/material';
|
|
3
|
-
interface LayerListItemProps {
|
|
4
|
-
layerComponent: JSX.Element;
|
|
5
|
-
visible: boolean;
|
|
6
|
-
configurable: boolean;
|
|
7
|
-
type?: 'background' | 'background-labels' | 'layer' | 'wms-layer' | 'vector-tile-layer';
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
setLayerState?: (state: unknown) => void;
|
|
11
|
-
showDeleteButton?: boolean;
|
|
12
|
-
listItemSx?: SxProps;
|
|
13
|
-
buttons?: JSX.Element;
|
|
14
|
-
layerId?: string;
|
|
15
|
-
sortable?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function LayerListItem({ layerComponent, visible, type, name, description, configurable, setLayerState, ...props }: LayerListItemProps): JSX.Element;
|
|
18
|
-
declare namespace LayerListItem {
|
|
19
|
-
var defaultProps: {
|
|
20
|
-
type: string;
|
|
21
|
-
visible: boolean;
|
|
22
|
-
showDeleteButton: boolean;
|
|
23
|
-
buttons: JSX.Element;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export default LayerListItem;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
interface LayerListItemProps {
|
|
4
|
+
layerComponent: JSX.Element;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
configurable: boolean;
|
|
7
|
+
type?: 'background' | 'background-labels' | 'layer' | 'wms-layer' | 'vector-tile-layer';
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
setLayerState?: (state: unknown) => void;
|
|
11
|
+
showDeleteButton?: boolean;
|
|
12
|
+
listItemSx?: SxProps;
|
|
13
|
+
buttons?: 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;
|