@mapcomponents/react-maplibre 0.1.66 → 0.1.68
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/.github/workflows/node_version_test.yml +1 -1
- package/.storybook/main.js +37 -31
- package/.storybook/preview.js +21 -0
- package/CHANGELOG.md +13 -0
- package/coverage/clover.xml +545 -472
- package/coverage/coverage-final.json +18 -17
- package/coverage/lcov-report/index.html +80 -80
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +50 -26
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +5 -5
- package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +30 -51
- package/coverage/lcov-report/src/components/MlCenterPosition/index.html +3 -3
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.cy.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +48 -105
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +15 -15
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +2 -2
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerCircleStyler.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerHeatMapStyler.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGpxViewer/MlGpxViewer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGpxViewer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +52 -40
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +10 -10
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +4 -4
- package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +41 -113
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +15 -15
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/{MlScaleReference.js.html → MlScaleReference.tsx.html} +57 -36
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +2 -2
- package/coverage/lcov-report/src/components/MlShareMapState/{MlShareMapState.js.html → MlShareMapState.tsx.html} +192 -84
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +20 -20
- package/coverage/lcov-report/src/components/MlSketchTool/LayerList/ColorPicker.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerList.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerListItem.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx.html +2 -2
- package/coverage/lcov-report/src/components/MlSketchTool/LayerList/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSketchTool/MlSketchTool.tsx.html +2 -2
- package/coverage/lcov-report/src/components/MlSketchTool/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreejsLayer.tsx.html +769 -0
- package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +25 -10
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +22 -10
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +13 -13
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +11 -11
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +11 -11
- package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +27 -18
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +11 -11
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +72 -27
- package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
- package/coverage/lcov-report/src/contexts/index.html +1 -1
- package/coverage/lcov-report/src/hooks/index.html +21 -21
- package/coverage/lcov-report/src/hooks/useCameraFollowPath/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useCameraFollowPath/useCameraFollowPath.tsx.html +1 -1
- package/coverage/lcov-report/src/hooks/useExportMap/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useExportMap/index.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useExportMap/lib.ts.html +2 -2
- package/coverage/lcov-report/src/hooks/useGpx/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useGpx/useGpx.tsx.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +9 -9
- package/coverage/lcov-report/src/hooks/useLayerFilter/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerFilter/useLayerFilter.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerHoverPopup/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerHoverPopup/useLayerHoverPopup.tsx.html +9 -6
- package/coverage/lcov-report/src/hooks/useMap.ts.html +2 -2
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +8 -29
- package/coverage/lcov-report/src/hooks/useSource.ts.html +10 -10
- package/coverage/lcov-report/src/hooks/useWms.ts.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +105 -12
- package/coverage/lcov.info +1038 -917
- package/dist/components/MapLibreMap/MapLibreMap.d.ts +3 -3
- package/dist/components/MapLibreMap/MapLibreMap.stories.d.ts +5 -0
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +17 -15
- package/dist/components/MlCenterPosition/MlCenterPosition.d.ts +2 -15
- package/dist/components/MlCenterPosition/MlCenterPosition.stories.d.ts +2 -15
- package/dist/components/MlComponentTemplate/MlComponentTemplate.d.ts +1 -0
- package/dist/components/MlComponentTemplate/MlComponentTemplate.stories.d.ts +2 -1
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +1 -0
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.stories.d.ts +2 -1
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +1 -0
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +2 -1
- package/dist/components/MlCreatePdfForm/lib/PdfForm.d.ts +1 -0
- package/dist/components/MlCreatePdfForm/lib/_PdfPreview.d.ts +1 -0
- package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +1 -0
- package/dist/components/MlFeatureEditor/lib/create_supplementary_points.d.ts +1 -1
- package/dist/components/MlFeatureEditor/lib/create_vertex.d.ts +1 -1
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +1 -0
- package/dist/components/MlFollowGps/MlFollowGps.d.ts +5 -23
- package/dist/components/MlFollowGps/MlFollowGps.stories.d.ts +2 -2
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +1 -0
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +2 -1
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerCircleStyler.d.ts +1 -0
- package/dist/components/MlGeoJsonLayer/story_utils/MlGeojsonLayerHeatMapStyler.d.ts +1 -0
- package/dist/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +4 -1
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +1 -0
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.d.ts +2 -1
- package/dist/components/MlGpxViewer/MlGpxViewer.d.ts +1 -0
- package/dist/components/MlGpxViewer/MlGpxViewer.stories.d.ts +2 -1
- package/dist/components/MlGpxViewer/util/GeoJsonProvider.d.ts +1 -0
- package/dist/components/MlGpxViewer/util/MetadataDrawer.d.ts +1 -0
- package/dist/components/MlGpxViewer/util/MlGpxDemoLoader.d.ts +1 -0
- package/dist/components/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +1 -0
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +1 -0
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.stories.d.ts +2 -1
- package/dist/components/MlLayer/MlLayer.d.ts +1 -0
- package/dist/components/MlLayerMagnify/MlLayerMagnify.stories.d.ts +2 -1
- package/dist/components/MlLayerSwipe/MlLayerSwipe.stories.d.ts +2 -1
- package/dist/components/MlMarker/MlMarker.d.ts +1 -0
- package/dist/components/MlMeasureTool/MlMeasureTool.d.ts +1 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.d.ts +1 -0
- package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +5 -0
- package/dist/components/MlScaleReference/MlScaleReference.d.ts +8 -1
- package/dist/components/MlShareMapState/MlShareMapState.d.ts +33 -13
- package/dist/components/MlShareMapState/MlShareMapState.stories.d.ts +16 -9
- package/dist/components/MlSketchTool/LayerList/ColorPicker.d.ts +1 -0
- package/dist/components/MlSketchTool/LayerList/LayerList.d.ts +1 -0
- package/dist/components/MlSketchTool/LayerList/LayerListItem.d.ts +1 -0
- package/dist/components/MlSketchTool/LayerList/LayerPropertyForm.d.ts +1 -0
- package/dist/components/MlSketchTool/MlSketchTool.d.ts +1 -0
- package/dist/components/MlSketchTool/MlSketchTool.stories.d.ts +2 -1
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +1 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.d.ts +2 -1
- package/dist/components/MlSpatialElevationProfile/util/getElevationData.d.ts +1 -1
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.stories.d.ts +2 -1
- package/dist/components/MlThreeJsLayer/MlThreejsLayer.d.ts +30 -0
- package/dist/components/MlThreeJsLayer/lib/GLTFLoader.d.ts +2 -1
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +1 -0
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +3 -2
- package/dist/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.stories.d.ts +2 -1
- package/dist/components/MlWmsLayer/MlWmsLayer.d.ts +1 -0
- package/dist/components/MlWmsLoader/MlWmsLoader.d.ts +1 -0
- package/dist/components/MlWmsLoader/MlWmsLoader.stories.d.ts +2 -1
- package/dist/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +1 -0
- package/dist/components/MlWmsLoader/utils/WMSLinks.d.ts +1 -0
- package/dist/contexts/MapContext.d.ts +13 -2
- package/dist/decorators/EmptyMapDecorator.d.ts +2 -0
- package/dist/decorators/MapContextDecorator.d.ts +1 -1
- package/dist/decorators/MapContextDecoratorHooks.d.ts +1 -1
- package/dist/decorators/MultiMapContextDecorator.d.ts +1 -1
- package/dist/decorators/NoNavToolsDecorator.d.ts +1 -1
- package/dist/decorators/ThemeDecorator.d.ts +2 -0
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.stories.d.ts +2 -1
- package/dist/hooks/useExportMap/lib.d.ts +1 -1
- package/dist/hooks/useLayerFilter/useLayerFilter.stories.d.ts +2 -1
- package/dist/hooks/useLayerHoverPopup/useLayerHoverPopup.d.ts +1 -0
- package/dist/index.d.ts +25 -8
- package/dist/index.esm.css +0 -97
- package/dist/index.esm.js +2187 -9306
- package/dist/index.esm.js.map +1 -1
- package/dist/setupTests.d.ts +6 -6
- package/dist/ui_components/Dropzone.d.ts +1 -0
- package/dist/ui_components/ImageLoader.d.ts +1 -0
- package/dist/ui_components/LayerList/LayerList.d.ts +6 -0
- package/dist/ui_components/LayerList/LayerList.stories.d.ts +12 -0
- package/dist/ui_components/LayerList/LayerListFolder.d.ts +9 -0
- package/dist/ui_components/LayerList/LayerListItem.d.ts +18 -0
- package/dist/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +15 -0
- package/dist/ui_components/LayerList/util/LayerPropertyForm.d.ts +10 -0
- package/dist/ui_components/LayerList/util/input/ColorPicker.d.ts +10 -0
- package/dist/ui_components/LoadingOverlayContext.d.ts +0 -1
- package/dist/ui_components/MapcomponentsTheme.d.ts +7 -0
- package/dist/ui_components/Tooltip.d.ts +1 -0
- package/dist/ui_components/TopToolbar.d.ts +1 -0
- package/dist/ui_components/UploadButton.d.ts +1 -0
- package/dist/util/Instructions.d.ts +1 -0
- package/package.json +67 -67
- package/public/thumbnails/{MlGPXViewer.png → MlGpxViewer.png} +0 -0
- package/rollup.config.js +68 -50
- package/src/@types/assets/index.d.ts +20 -0
- package/src/App.css +0 -55
- package/src/components/MapLibreMap/MapLibreMap.stories.js +38 -32
- package/src/components/MapLibreMap/MapLibreMap.tsx +29 -21
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +50 -40
- package/src/components/MlCenterPosition/MlCenterPosition.tsx +22 -29
- package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +6 -6
- package/src/components/MlFollowGps/MlFollowGps.stories.js +28 -10
- package/src/components/MlFollowGps/MlFollowGps.tsx +38 -57
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx +1 -1
- package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.ts +16 -10
- package/src/components/MlGpxViewer/MlGpxViewer.stories.tsx +4 -13
- package/src/components/MlGpxViewer/util/MlGpxDemoLoader.tsx +3 -1
- package/src/components/MlLayerMagnify/MlLayerMagnify.tsx +21 -17
- package/src/components/MlLayerSwipe/MlLayerSwipe.tsx +3 -3
- package/src/components/MlNavigationTools/MlNavigationTools.stories.js +4 -5
- package/src/components/MlNavigationTools/MlNavigationTools.tsx +30 -54
- package/src/components/MlScaleReference/{MlScaleReference.js → MlScaleReference.tsx} +38 -31
- package/src/components/MlShareMapState/MlShareMapState.stories.tsx +100 -0
- package/src/components/MlShareMapState/{MlShareMapState.js → MlShareMapState.tsx} +94 -58
- package/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx +1 -1
- package/src/components/MlSketchTool/MlSketchTool.tsx +1 -1
- package/src/components/MlThreeJsLayer/MlThreejsLayer.tsx +228 -0
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx +7 -3
- package/src/components/MlWmsLoader/MlWmsLoader.stories.tsx +3 -11
- package/src/components/MlWmsLoader/MlWmsLoader.tsx +7 -4
- package/src/components/MlWmsLoader/utils/MlWmsLoaderInstructions.tsx +2 -2
- package/src/components/MlWmsLoader/utils/WMSLinks.tsx +1 -1
- package/src/contexts/MapContext.tsx +34 -20
- package/src/custom.d.ts +4 -0
- package/src/decorators/EmptyMapDecorator.js +38 -0
- package/src/decorators/MapContextDecorator.js +31 -26
- package/src/decorators/MapContextDecoratorHooks.js +29 -24
- package/src/decorators/MultiMapContextDecorator.js +71 -71
- package/src/decorators/NoNavToolsDecorator.js +25 -23
- package/src/decorators/ThemeDecorator.js +24 -0
- package/src/decorators/style.css +0 -2
- package/src/hooks/useCameraFollowPath/useCameraFollowPath.stories.tsx +13 -19
- package/src/hooks/useExportMap/lib.ts +1 -1
- package/src/hooks/useGpx/useGpx.stories.js +1 -1
- package/src/hooks/useLayerHoverPopup/useLayerHoverPopup.stories.js +1 -1
- package/src/hooks/useLayerHoverPopup/useLayerHoverPopup.tsx +5 -4
- package/src/hooks/useMap.ts +1 -1
- package/src/hooks/useMapState.stories.js +1 -1
- package/src/hooks/useMapState.ts +6 -13
- package/src/hooks/useSource.ts +1 -1
- package/src/hooks/useSources.stories.js +1 -1
- package/src/index.ts +40 -8
- package/src/ui_components/LayerList/LayerList.stories.tsx +136 -0
- package/src/ui_components/LayerList/LayerList.tsx +12 -0
- package/src/ui_components/LayerList/LayerListFolder.tsx +82 -0
- package/src/ui_components/LayerList/LayerListItem.tsx +180 -0
- package/src/ui_components/LayerList/assets/sample_1.json +26 -0
- package/src/ui_components/LayerList/assets/sample_2.json +22 -0
- package/src/ui_components/LayerList/assets/sample_polygon_1.json +33 -0
- package/src/ui_components/LayerList/assets/style.json +2599 -0
- package/src/ui_components/LayerList/util/LayerListItemVectorLayer.tsx +92 -0
- package/src/ui_components/LayerList/util/LayerPropertyForm.tsx +125 -0
- package/src/ui_components/LayerList/util/input/ColorPicker.tsx +44 -0
- package/src/ui_components/MapcomponentsTheme.tsx +133 -0
- package/src/ui_components/Sidebar.tsx +16 -11
- package/src/ui_components/TopToolbar.tsx +1 -3
- package/src/util/BubbleForInstructions.js +14 -12
- package/tsconfig.json +3 -9
- package/dist/components/MlGPXViewer/MlGPXViewer.d.ts +0 -29
- package/dist/components/MlGPXViewer/MlGPXViewer.stories.d.ts +0 -16
- package/dist/components/MlGPXViewer/MlGPXViewer.test.d.ts +0 -1
- package/dist/components/MlGPXViewer/gpxConverter.d.ts +0 -11
- package/dist/components/MlGPXViewer/util/GeoJsonContext.d.ts +0 -10
- package/dist/components/MlGPXViewer/util/GeoJsonProvider.d.ts +0 -4
- package/dist/components/MlLayer/MlLayer.stories.d.ts +0 -10
- package/dist/custom.d.d.ts +0 -22
- package/dist/decorators/ThemeWrapper.d.ts +0 -3
- package/dist/hooks/exportMap/index.d.ts +0 -11
- package/dist/hooks/exportMap/lib.d.ts +0 -36
- package/dist/ui_components/Legend.d.ts +0 -1
- package/dist/ui_components/LoadingOverlay.d.ts +0 -2
- package/src/components/MlShareMapState/MlShareMapState.stories.js +0 -100
- package/src/custom.d.tsx +0 -26
- package/src/decorators/ThemeWrapper.tsx +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { MapOptions as MapOptionsType } from
|
|
3
|
-
import
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MapOptions as MapOptionsType } from 'maplibre-gl';
|
|
3
|
+
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
4
4
|
type MapLibreMapProps = {
|
|
5
5
|
/**
|
|
6
6
|
* Id of the MapLibreGl(Wrapper) instance in mapContext
|
|
@@ -11,5 +11,10 @@ declare namespace storyoptions {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
export { themeDecorator as decorators };
|
|
15
|
+
export namespace parameters {
|
|
16
|
+
const sourceLink: string;
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
19
|
import MapLibreMap from "./MapLibreMap";
|
|
20
|
+
import themeDecorator from "../../decorators/ThemeDecorator";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Map, IControl, MapOptions as MapOptionsType, MapEventType, MapLayerEventType, StyleImageInterface, LayerSpecification, CustomLayerInterface, SourceSpecification, ControlPosition } from '
|
|
1
|
+
import { Map, IControl, MapOptions as MapOptionsType, MapEventType, MapLayerEventType, StyleImageInterface, LayerSpecification, CustomLayerInterface, SourceSpecification, ControlPosition, StyleImageMetadata } from 'maplibre-gl';
|
|
2
2
|
import { Map as MapType, Style } from 'maplibre-gl';
|
|
3
3
|
type WrapperEventArgArray = [string, (arg0: unknown) => void];
|
|
4
4
|
type EventArgArray = [
|
|
@@ -28,6 +28,18 @@ type ViewportState = {
|
|
|
28
28
|
*
|
|
29
29
|
* @class
|
|
30
30
|
*/
|
|
31
|
+
interface MapLibreGlWrapper extends MapType {
|
|
32
|
+
addImage: (id: string, image: HTMLImageElement | ImageBitmap | ImageData | {
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
data: Uint8Array | Uint8ClampedArray;
|
|
36
|
+
} | StyleImageInterface, key?: Partial<StyleImageMetadata> | string | undefined, componentId?: string | undefined) => this;
|
|
37
|
+
addLayer: (layer: (LayerSpecification & {
|
|
38
|
+
source?: string | SourceSpecification | undefined;
|
|
39
|
+
}) | (CustomLayerInterface & {
|
|
40
|
+
source?: string | SourceSpecification | undefined;
|
|
41
|
+
}), beforeId?: string | undefined, componentId?: string | undefined) => this;
|
|
42
|
+
}
|
|
31
43
|
declare class MapLibreGlWrapper {
|
|
32
44
|
registeredElements: {
|
|
33
45
|
[key: string]: {
|
|
@@ -77,21 +89,11 @@ declare class MapLibreGlWrapper {
|
|
|
77
89
|
initRegisteredElements: (componentId: string, force?: boolean | undefined) => void;
|
|
78
90
|
addNativeMaplibreFunctionsAndProps: () => void;
|
|
79
91
|
map: MapType;
|
|
80
|
-
style:
|
|
92
|
+
style: Style;
|
|
81
93
|
styleJson: object;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
source?: string | SourceSpecification | undefined;
|
|
86
|
-
}), beforeId?: string | undefined, componentId?: string | undefined) => Map | undefined;
|
|
87
|
-
addSource: (id: string, source: SourceSpecification, componentId?: string | undefined) => Map | undefined;
|
|
88
|
-
addControl: (control: IControl | unknown, position?: ControlPosition | undefined, componentId?: string | undefined) => Map | undefined;
|
|
89
|
-
addImage: (id: string, image: HTMLImageElement | ImageBitmap | ImageData | {
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
data: Uint8Array | Uint8ClampedArray;
|
|
93
|
-
} | StyleImageInterface, componentId?: string | undefined) => void;
|
|
94
|
-
on: (type: keyof MapLayerEventType | keyof MapEventType | string, layerId: string | ((ev: unknown) => void), handler?: ((ev: MapEventType & unknown) => Map | void) | string, componentId?: string | undefined) => Map | undefined;
|
|
94
|
+
addSource: (id: string, source: SourceSpecification, componentId?: string | undefined) => this;
|
|
95
|
+
addControl: (control: IControl | unknown, position?: ControlPosition | undefined, componentId?: string | undefined) => this;
|
|
96
|
+
on: (type: keyof MapLayerEventType | keyof MapEventType | string, layerId: string | ((ev: unknown) => void), handler?: ((ev: MapEventType & unknown) => Map | void) | string, componentId?: string | undefined) => this;
|
|
95
97
|
cleanup: (componentId: string) => void;
|
|
96
98
|
constructor(props: {
|
|
97
99
|
mapOptions: MapOptionsType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
3
|
export interface MlCenterPositionProps {
|
|
3
4
|
/**
|
|
4
5
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -30,20 +31,6 @@ declare const MlCenterPosition: {
|
|
|
30
31
|
(props: MlCenterPositionProps): JSX.Element;
|
|
31
32
|
defaultProps: {
|
|
32
33
|
mapId: undefined;
|
|
33
|
-
style: {
|
|
34
|
-
minWidth: string;
|
|
35
|
-
minHeight: string;
|
|
36
|
-
width: string;
|
|
37
|
-
height: string;
|
|
38
|
-
backgroundColor: string;
|
|
39
|
-
borderRadius: string;
|
|
40
|
-
margin: number;
|
|
41
|
-
fontSize: string;
|
|
42
|
-
":hover": {
|
|
43
|
-
backgroundColor: string;
|
|
44
|
-
color: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
34
|
onColor: string;
|
|
48
35
|
offColor: string;
|
|
49
36
|
};
|
|
@@ -1,29 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
4
5
|
(props: import("./MlCenterPosition").MlCenterPositionProps): JSX.Element;
|
|
5
6
|
defaultProps: {
|
|
6
7
|
mapId: undefined;
|
|
7
|
-
style: {
|
|
8
|
-
minWidth: string;
|
|
9
|
-
minHeight: string;
|
|
10
|
-
width: string;
|
|
11
|
-
height: string;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
borderRadius: string;
|
|
14
|
-
margin: number;
|
|
15
|
-
fontSize: string;
|
|
16
|
-
":hover": {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
color: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
8
|
onColor: string;
|
|
22
9
|
offColor: string;
|
|
23
10
|
};
|
|
24
11
|
};
|
|
25
12
|
argTypes: {};
|
|
26
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
13
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
27
14
|
parameters: {
|
|
28
15
|
docs: {
|
|
29
16
|
source: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -7,7 +8,7 @@ declare const storyoptions: {
|
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
argTypes: {};
|
|
10
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
11
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
11
12
|
};
|
|
12
13
|
export default storyoptions;
|
|
13
14
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -7,7 +8,7 @@ declare const storyoptions: {
|
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
argTypes: {};
|
|
10
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
11
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
11
12
|
};
|
|
12
13
|
export default storyoptions;
|
|
13
14
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './lib/preview.css';
|
|
2
3
|
declare const storyoptions: {
|
|
3
4
|
title: string;
|
|
@@ -8,7 +9,7 @@ declare const storyoptions: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
argTypes: {};
|
|
11
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
12
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
12
13
|
};
|
|
13
14
|
export default storyoptions;
|
|
14
15
|
export declare const ExampleConfig: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default createSupplementaryPoints;
|
|
2
|
-
declare function createSupplementaryPoints(geojson: any, options?: {}, basePath?: null):
|
|
2
|
+
declare function createSupplementaryPoints(geojson: any, options?: {}, basePath?: null): typeof import("geojson")[];
|
|
@@ -10,4 +10,4 @@ export default create_vertex;
|
|
|
10
10
|
* @param {boolean} selected
|
|
11
11
|
* @return {GeoJSON} Point
|
|
12
12
|
*/
|
|
13
|
-
declare function create_vertex(parentId: string, coordinates: Array<number>, path: string, selected: boolean):
|
|
13
|
+
declare function create_vertex(parentId: string, coordinates: Array<number>, path: string, selected: boolean): typeof import("geojson");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { CircleLayerSpecification, FillLayerSpecification } from
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CircleLayerSpecification, FillLayerSpecification } from 'maplibre-gl';
|
|
3
3
|
interface MlFollowGpsProps {
|
|
4
4
|
/**
|
|
5
5
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -39,13 +39,13 @@ interface MlFollowGpsProps {
|
|
|
39
39
|
* Use any available paint prop from layer type "fill".
|
|
40
40
|
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
41
41
|
*/
|
|
42
|
-
orientationConePaint?: FillLayerSpecification[
|
|
42
|
+
orientationConePaint?: FillLayerSpecification['paint'];
|
|
43
43
|
/**
|
|
44
44
|
* Position circle paint property object, that is passed to the MlGeoJsonLayer responsible for drawing the position circle.
|
|
45
45
|
* Use any available paint prop from layer type "circle".
|
|
46
46
|
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#circle
|
|
47
47
|
*/
|
|
48
|
-
circlePaint?: CircleLayerSpecification[
|
|
48
|
+
circlePaint?: CircleLayerSpecification['paint'];
|
|
49
49
|
/**
|
|
50
50
|
* Active button font color
|
|
51
51
|
*/
|
|
@@ -59,11 +59,7 @@ interface MlFollowGpsProps {
|
|
|
59
59
|
* Use any available paint prop from layer type "fill".
|
|
60
60
|
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
61
61
|
*/
|
|
62
|
-
accuracyPaint?: FillLayerSpecification[
|
|
63
|
-
/**
|
|
64
|
-
* CSS style object that is applied to the button component
|
|
65
|
-
*/
|
|
66
|
-
buttonSx?: SxProps | any;
|
|
62
|
+
accuracyPaint?: FillLayerSpecification['paint'];
|
|
67
63
|
}
|
|
68
64
|
/**
|
|
69
65
|
* Adds a button that makes the map follow the users GPS position using
|
|
@@ -74,20 +70,6 @@ declare const MlFollowGps: {
|
|
|
74
70
|
(props: MlFollowGpsProps): JSX.Element;
|
|
75
71
|
defaultProps: {
|
|
76
72
|
mapId: undefined;
|
|
77
|
-
buttonSx: {
|
|
78
|
-
minWidth: string;
|
|
79
|
-
minHeight: string;
|
|
80
|
-
width: string;
|
|
81
|
-
height: string;
|
|
82
|
-
backgroundColor: string;
|
|
83
|
-
borderRadius: string;
|
|
84
|
-
margin: number;
|
|
85
|
-
fontSize: string;
|
|
86
|
-
":hover": {
|
|
87
|
-
backgroundColor: string;
|
|
88
|
-
color: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
73
|
onColor: string;
|
|
92
74
|
offColor: string;
|
|
93
75
|
showAccuracyCircle: boolean;
|
|
@@ -4,7 +4,7 @@ declare namespace storyoptions {
|
|
|
4
4
|
export const title: string;
|
|
5
5
|
export { MlFollowGps as component };
|
|
6
6
|
export const argTypes: {};
|
|
7
|
-
export {
|
|
7
|
+
export { noNavToolsDecorator as decorators };
|
|
8
8
|
}
|
|
9
9
|
import MlFollowGps from "./MlFollowGps";
|
|
10
|
-
import
|
|
10
|
+
import noNavToolsDecorator from "../../decorators/NoNavToolsDecorator";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { Feature, FeatureCollection } from '@turf/turf';
|
|
2
3
|
import { useLayerProps } from '../../hooks/useLayer';
|
|
3
4
|
import { LineLayerSpecification, CircleLayerSpecification, FillLayerSpecification, LayerSpecification, RasterLayerSpecification } from 'maplibre-gl';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { MlGeoJsonLayerProps } from './MlGeoJsonLayer';
|
|
2
3
|
declare const storyoptions: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: (props: MlGeoJsonLayerProps) => JSX.Element;
|
|
5
6
|
argTypes: {};
|
|
6
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
7
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
7
8
|
};
|
|
8
9
|
export default storyoptions;
|
|
9
10
|
export declare const Linestring: any;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { LayerSpecification, RasterLayerSpecification } from 'maplibre-gl';
|
|
2
|
+
declare const getDefaultPaintPropsByType: (type: string, defaultPaintOverrides?: {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
} | undefined) => Exclude<LayerSpecification['paint'], RasterLayerSpecification['paint']>;
|
|
2
5
|
export default getDefaultPaintPropsByType;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -7,7 +8,7 @@ declare const storyoptions: {
|
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
argTypes: {};
|
|
10
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
11
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
11
12
|
};
|
|
12
13
|
export default storyoptions;
|
|
13
14
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -11,7 +12,7 @@ declare const storyoptions: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
15
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
15
16
|
};
|
|
16
17
|
export default storyoptions;
|
|
17
18
|
export declare const ExampleConfig: any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: (props: import("./MlImageMarkerLayer").MlImageMarkerLayerProps) => JSX.Element;
|
|
4
5
|
argTypes: {};
|
|
5
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
6
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
6
7
|
};
|
|
7
8
|
export default storyoptions;
|
|
8
9
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -8,7 +9,7 @@ declare const storyoptions: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
argTypes: {};
|
|
11
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
12
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
12
13
|
};
|
|
13
14
|
export default storyoptions;
|
|
14
15
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -7,7 +8,7 @@ declare const storyoptions: {
|
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
10
|
argTypes: {};
|
|
10
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
11
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
11
12
|
};
|
|
12
13
|
export default storyoptions;
|
|
13
14
|
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SxProps } from "@mui/material";
|
|
2
3
|
interface MlNavigationToolsProps {
|
|
3
4
|
/**
|
|
@@ -33,6 +34,10 @@ interface MlNavigationToolsProps {
|
|
|
33
34
|
* Style attribute for NavigationTools container
|
|
34
35
|
*/
|
|
35
36
|
sx?: SxProps;
|
|
37
|
+
/**
|
|
38
|
+
* Style attribute for NavigationTools container
|
|
39
|
+
*/
|
|
40
|
+
mediaIsMobile?: boolean;
|
|
36
41
|
}
|
|
37
42
|
/**
|
|
38
43
|
* @component
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MlScaleReferenceProps {
|
|
3
|
+
mapId?: string;
|
|
4
|
+
insertBeforeLayer?: string | undefined;
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
unit?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const MlScaleReference: (props: MlScaleReferenceProps) => JSX.Element;
|
|
1
9
|
export default MlScaleReference;
|
|
2
|
-
declare function MlScaleReference(props: any): JSX.Element;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export interface MapState {
|
|
4
|
+
lat?: number;
|
|
5
|
+
lng?: number;
|
|
6
|
+
zoom?: number;
|
|
7
|
+
bearing?: number;
|
|
8
|
+
pitch?: number;
|
|
9
|
+
layers?: {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
2
14
|
/**
|
|
3
15
|
* TODO: Add short & useful description
|
|
4
16
|
*
|
|
@@ -7,16 +19,24 @@ export default MlShareMapState;
|
|
|
7
19
|
*
|
|
8
20
|
* @component
|
|
9
21
|
*/
|
|
10
|
-
|
|
11
|
-
mapId
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
namespace defaultProps {
|
|
15
|
-
const mapId: undefined;
|
|
16
|
-
}
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
const mapId_1: PropTypes.Requireable<string>;
|
|
19
|
-
export { mapId_1 as mapId };
|
|
20
|
-
}
|
|
22
|
+
export interface MlShareMapStateProps {
|
|
23
|
+
mapId?: string;
|
|
24
|
+
idPrefix?: string;
|
|
25
|
+
active?: boolean;
|
|
21
26
|
}
|
|
22
|
-
|
|
27
|
+
export interface LayerStatesInterface {
|
|
28
|
+
[key: string]: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare const MlShareMapState: {
|
|
31
|
+
(props: MlShareMapStateProps): JSX.Element;
|
|
32
|
+
defaultProps: {
|
|
33
|
+
mapId: undefined;
|
|
34
|
+
};
|
|
35
|
+
propTypes: {
|
|
36
|
+
/**
|
|
37
|
+
* Id of the target MapLibre instance in mapContext
|
|
38
|
+
*/
|
|
39
|
+
mapId: PropTypes.Requireable<string>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default MlShareMapState;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const storyoptions: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
(props: import("./MlShareMapState").MlShareMapStateProps): JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
mapId: undefined;
|
|
8
|
+
};
|
|
9
|
+
propTypes: {
|
|
10
|
+
mapId: import("prop-types").Requireable<string>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
argTypes: {};
|
|
14
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
15
|
+
};
|
|
1
16
|
export default storyoptions;
|
|
2
|
-
export const ExampleConfig: any;
|
|
3
|
-
declare namespace storyoptions {
|
|
4
|
-
export const title: string;
|
|
5
|
-
export { MlShareMapState as component };
|
|
6
|
-
export const argTypes: {};
|
|
7
|
-
export { mapContextDecorator as decorators };
|
|
8
|
-
}
|
|
9
|
-
import MlShareMapState from "./MlShareMapState";
|
|
10
|
-
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
17
|
+
export declare const ExampleConfig: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CircleLayerSpecification, FillLayerSpecification, LineLayerSpecification } from 'maplibre-gl';
|
|
2
3
|
export type paintPropsType = CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['paint'];
|
|
3
4
|
type Props = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const storyoptions: {
|
|
2
3
|
title: string;
|
|
3
4
|
component: {
|
|
@@ -8,7 +9,7 @@ declare const storyoptions: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
argTypes: {};
|
|
11
|
-
decorators: ((Story: any) => JSX.Element)[];
|
|
12
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
12
13
|
};
|
|
13
14
|
export default storyoptions;
|
|
14
15
|
export declare const ExampleConfig: any;
|