@mapcomponents/react-maplibre 0.1.67 → 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/coverage/clover.xml +172 -174
- package/coverage/coverage-final.json +7 -7
- package/coverage/lcov-report/index.html +38 -38
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +43 -25
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +10 -10
- 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 +41 -98
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +1 -1
- 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.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +24 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/hooks/useMap.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useSource.ts.html +1 -1
- 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 +27 -3
- package/coverage/lcov.info +326 -342
- package/dist/components/MapLibreMap/MapLibreMap.d.ts +3 -3
- package/dist/components/MapLibreMap/MapLibreMap.stories.d.ts +2 -0
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +1 -1
- package/dist/components/MlCenterPosition/MlCenterPosition.d.ts +2 -15
- package/dist/components/MlCenterPosition/MlCenterPosition.stories.d.ts +1 -14
- package/dist/components/MlComponentTemplate/MlComponentTemplate.d.ts +1 -0
- package/dist/components/MlComponentTemplate/MlComponentTemplate.stories.d.ts +1 -0
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +1 -0
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.stories.d.ts +1 -0
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +1 -0
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +1 -0
- 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/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 +1 -0
- 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 +1 -0
- package/dist/components/MlGpxViewer/MlGpxViewer.d.ts +1 -0
- package/dist/components/MlGpxViewer/MlGpxViewer.stories.d.ts +1 -0
- 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 +1 -0
- package/dist/components/MlLayer/MlLayer.d.ts +1 -0
- package/dist/components/MlLayerMagnify/MlLayerMagnify.stories.d.ts +1 -0
- package/dist/components/MlLayerSwipe/MlLayerSwipe.stories.d.ts +1 -0
- 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 +1 -0
- package/dist/components/MlShareMapState/MlShareMapState.d.ts +1 -0
- package/dist/components/MlShareMapState/MlShareMapState.stories.d.ts +1 -0
- 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 +1 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +1 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.d.ts +1 -0
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.stories.d.ts +1 -0
- package/dist/components/MlThreeJsLayer/MlThreejsLayer.d.ts +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +1 -0
- package/dist/components/MlWmsLoader/utils/WMSLinks.d.ts +1 -0
- package/dist/decorators/EmptyMapDecorator.d.ts +2 -0
- package/dist/decorators/ThemeDecorator.d.ts +2 -0
- package/dist/hooks/useCameraFollowPath/useCameraFollowPath.stories.d.ts +1 -0
- package/dist/hooks/useExportMap/lib.d.ts +1 -1
- package/dist/hooks/useLayerFilter/useLayerFilter.stories.d.ts +1 -0
- package/dist/hooks/useLayerHoverPopup/useLayerHoverPopup.d.ts +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.esm.css +0 -97
- package/dist/index.esm.js +5495 -14503
- package/dist/index.esm.js.map +1 -1
- 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 +24 -31
- package/rollup.config.js +61 -44
- package/src/@types/assets/index.d.ts +1 -1
- package/src/App.css +0 -55
- package/src/components/MapLibreMap/MapLibreMap.stories.js +36 -37
- package/src/components/MapLibreMap/MapLibreMap.tsx +23 -17
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +1 -1
- 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 +31 -50
- 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/MlNavigationTools/MlNavigationTools.stories.js +4 -5
- package/src/components/MlNavigationTools/MlNavigationTools.tsx +30 -54
- package/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx +1 -1
- package/src/components/MlSketchTool/MlSketchTool.tsx +1 -1
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx +7 -3
- package/src/components/MlWmsLoader/MlWmsLoader.stories.tsx +3 -11
- package/src/components/MlWmsLoader/utils/MlWmsLoaderInstructions.tsx +2 -2
- package/src/components/MlWmsLoader/utils/WMSLinks.tsx +1 -1
- package/src/contexts/MapContext.tsx +8 -1
- package/src/custom.d.ts +4 -5
- package/src/decorators/EmptyMapDecorator.js +38 -0
- package/src/decorators/MapContextDecorator.js +10 -16
- package/src/decorators/MapContextDecoratorHooks.js +25 -30
- package/src/decorators/MultiMapContextDecorator.js +8 -18
- package/src/decorators/NoNavToolsDecorator.js +8 -15
- 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/useMapState.stories.js +1 -1
- package/src/hooks/useSources.stories.js +1 -1
- package/src/index.ts +9 -0
- 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 -10
- 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 -1
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { useRef, useEffect, useCallback } from
|
|
1
|
+
import React, { useRef, useEffect, useCallback } from 'react';
|
|
2
2
|
import useMap from '../../hooks/useMap';
|
|
3
3
|
import { LayerSpecification } from 'maplibre-gl';
|
|
4
4
|
import { VectorSourceSpecification } from 'maplibre-gl';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
export type MlVectorTileLayerProps = {
|
|
7
7
|
mapId?: string;
|
|
8
8
|
insertBeforeLayer?: string;
|
|
9
9
|
layerId?: string;
|
|
@@ -29,6 +29,8 @@ const MlVectorTileLayer = (props: MlVectorTileLayerProps) => {
|
|
|
29
29
|
const layerLayoutConfsRef = useRef({});
|
|
30
30
|
const initializedRef = useRef(false);
|
|
31
31
|
|
|
32
|
+
console.log('render vt')
|
|
33
|
+
console.log(props.layers)
|
|
32
34
|
const createLayers = useCallback(() => {
|
|
33
35
|
if (!mapHook.map) return;
|
|
34
36
|
|
|
@@ -43,8 +45,10 @@ const MlVectorTileLayer = (props: MlVectorTileLayerProps) => {
|
|
|
43
45
|
layerId.current,
|
|
44
46
|
{
|
|
45
47
|
type: 'vector',
|
|
46
|
-
tiles: [props.url ||
|
|
48
|
+
tiles: [props.url || ''],
|
|
47
49
|
attribution: '',
|
|
50
|
+
minzoom: 0,
|
|
51
|
+
maxzoom: 14,
|
|
48
52
|
...props.sourceOptions,
|
|
49
53
|
},
|
|
50
54
|
mapHook.componentId
|
|
@@ -46,25 +46,17 @@ const Template = (props: MlWmsLoaderStoryProps) => {
|
|
|
46
46
|
<MlWmsLoaderInstructions open={guide} />
|
|
47
47
|
<WMSLinks open={demoMode} close={() => setDemoMode(false)} load={loader} />
|
|
48
48
|
<TopToolbar appBarStyle={{ zIndex: 1220 }}>
|
|
49
|
-
<Button
|
|
50
|
-
variant="contained"
|
|
51
|
-
onClick={openGuide}
|
|
52
|
-
sx={{ marginRight: '10px' }}
|
|
53
|
-
>
|
|
49
|
+
<Button variant="contained" onClick={openGuide} sx={{ marginRight: '10px' }}>
|
|
54
50
|
Guide me through
|
|
55
51
|
</Button>
|
|
56
|
-
<Button
|
|
57
|
-
variant="contained"
|
|
58
|
-
onClick={() => setDemoMode(!demoMode)}
|
|
59
|
-
|
|
60
|
-
>
|
|
52
|
+
<Button variant="contained" onClick={() => setDemoMode(!demoMode)}>
|
|
61
53
|
Demo WMS
|
|
62
54
|
</Button>
|
|
63
55
|
</TopToolbar>
|
|
64
56
|
|
|
65
57
|
{!mediaIsMobile || (mediaIsMobile && !demoMode) ? (
|
|
66
58
|
<Sidebar
|
|
67
|
-
drawerPaperProps={{ sx: { top: '
|
|
59
|
+
drawerPaperProps={{ sx: { top: '64px', maxWidth: '20%', padding: '40px' } }}
|
|
68
60
|
drawerButtonStyle={{ top: '65px' }}
|
|
69
61
|
sx={{ wordBreak: 'break-word' }}
|
|
70
62
|
>
|
|
@@ -12,7 +12,7 @@ const steps = [
|
|
|
12
12
|
iconTransform: 'rotate(90deg)',
|
|
13
13
|
iconMarginTop: '-210px',
|
|
14
14
|
iconMarginLeft: '200px',
|
|
15
|
-
zIndex: 1210
|
|
15
|
+
zIndex: 1210,
|
|
16
16
|
},
|
|
17
17
|
content: (
|
|
18
18
|
<>
|
|
@@ -31,7 +31,7 @@ const steps = [
|
|
|
31
31
|
iconTransform: 'rotate(90deg)',
|
|
32
32
|
iconMarginTop: '-125px',
|
|
33
33
|
iconMarginLeft: '280px',
|
|
34
|
-
zIndex: 1210
|
|
34
|
+
zIndex: 1210,
|
|
35
35
|
},
|
|
36
36
|
content: (
|
|
37
37
|
<>
|
|
@@ -111,7 +111,7 @@ export default function WMSLinks(props: wmsLinksProps) {
|
|
|
111
111
|
</Grid>
|
|
112
112
|
<Grid item xs={2}>
|
|
113
113
|
<Button onClick={props.close}>
|
|
114
|
-
<CloseIcon sx={{ color: '
|
|
114
|
+
<CloseIcon sx={{ color: 'text.primary' }} />
|
|
115
115
|
</Button>
|
|
116
116
|
</Grid>
|
|
117
117
|
</Grid>
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { useState, useRef, ReactNode } from 'react';
|
|
2
2
|
import MapLibreGlWrapper from '../components/MapLibreMap/lib/MapLibreGlWrapper';
|
|
3
3
|
|
|
4
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
5
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
6
|
+
|
|
4
7
|
export interface MapContextType {
|
|
5
8
|
mapIds: string[];
|
|
6
9
|
mapExists: (map_id: string | undefined) => boolean;
|
|
@@ -92,7 +95,11 @@ const MapComponentsProvider = ({ children }: { children: ReactNode }) => {
|
|
|
92
95
|
},
|
|
93
96
|
} as unknown as MapContextType;
|
|
94
97
|
|
|
95
|
-
return
|
|
98
|
+
return (
|
|
99
|
+
<MapContext.Provider value={value}>
|
|
100
|
+
<MUIThemeProvider theme={getTheme('light')}>{children}</MUIThemeProvider>
|
|
101
|
+
</MapContext.Provider>
|
|
102
|
+
);
|
|
96
103
|
};
|
|
97
104
|
|
|
98
105
|
export { MapComponentsProvider };
|
package/src/custom.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import { GeoJSONFeature } from "maplibre-gl";
|
|
2
|
+
import { GeoJSONObject } from '@turf/turf';
|
|
3
|
+
|
|
4
|
+
export type GeoJSON = (GeoJSONFeature & GeoJSONObject);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
import { MapComponentsProvider } from '../index';
|
|
4
|
+
import MapLibreMap from '../components/MapLibreMap/MapLibreMap';
|
|
5
|
+
import './style.css';
|
|
6
|
+
import MlNavgiationTools from '../components/MlNavigationTools/MlNavigationTools';
|
|
7
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
8
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
9
|
+
|
|
10
|
+
const decorators = [
|
|
11
|
+
(Story, context) => {
|
|
12
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className="fullscreen_map">
|
|
16
|
+
<MapComponentsProvider>
|
|
17
|
+
<MUIThemeProvider theme={theme}>
|
|
18
|
+
<Story />
|
|
19
|
+
<MapLibreMap
|
|
20
|
+
mapId="map_1"
|
|
21
|
+
options={{
|
|
22
|
+
zoom: 12.5,
|
|
23
|
+
center: [7.0851268, 50.73884],
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
26
|
+
<MlNavgiationTools
|
|
27
|
+
sx={{ bottom: '25px', right: '5px' }}
|
|
28
|
+
showZoomButtons={false}
|
|
29
|
+
mapId="map_1"
|
|
30
|
+
/>
|
|
31
|
+
</MUIThemeProvider>
|
|
32
|
+
</MapComponentsProvider>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export default decorators;
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
2
|
|
|
3
3
|
import { MapComponentsProvider } from '../index';
|
|
4
4
|
import MapLibreMap from '../components/MapLibreMap/MapLibreMap';
|
|
5
5
|
import './style.css';
|
|
6
6
|
import MlNavgiationTools from '../components/MlNavigationTools/MlNavigationTools';
|
|
7
|
-
import { ThemeProvider as MUIThemeProvider
|
|
7
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
8
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
8
9
|
|
|
9
10
|
const decorators = [
|
|
10
11
|
(Story, context) => {
|
|
11
|
-
const theme = useMemo(
|
|
12
|
-
|
|
13
|
-
createTheme({
|
|
14
|
-
palette: {
|
|
15
|
-
mode: context?.globals?.theme ? context?.globals?.theme : 'light',
|
|
16
|
-
},
|
|
17
|
-
}),
|
|
18
|
-
[context?.globals?.theme]
|
|
19
|
-
);
|
|
12
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
13
|
+
|
|
20
14
|
return (
|
|
21
15
|
<div className="fullscreen_map">
|
|
22
|
-
<
|
|
23
|
-
<
|
|
16
|
+
<MapComponentsProvider>
|
|
17
|
+
<MUIThemeProvider theme={theme}>
|
|
24
18
|
<Story />
|
|
25
19
|
<MapLibreMap
|
|
26
20
|
options={{
|
|
@@ -31,12 +25,12 @@ const decorators = [
|
|
|
31
25
|
mapId="map_1"
|
|
32
26
|
/>
|
|
33
27
|
<MlNavgiationTools
|
|
34
|
-
sx={{ bottom: '25px', right:
|
|
28
|
+
sx={{ bottom: '25px', right: '5px' }}
|
|
35
29
|
showZoomButtons={false}
|
|
36
30
|
mapId="map_1"
|
|
37
31
|
/>
|
|
38
|
-
</
|
|
39
|
-
</
|
|
32
|
+
</MUIThemeProvider>
|
|
33
|
+
</MapComponentsProvider>
|
|
40
34
|
</div>
|
|
41
35
|
);
|
|
42
36
|
},
|
|
@@ -4,41 +4,36 @@ import { MapComponentsProvider } from "../index";
|
|
|
4
4
|
import MapLibreMap from "../components/MapLibreMap/MapLibreMap";
|
|
5
5
|
import "./style.css";
|
|
6
6
|
import MlNavgiationTools from "../components/MlNavigationTools/MlNavigationTools";
|
|
7
|
-
import { ThemeProvider as MUIThemeProvider
|
|
7
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
8
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
8
9
|
|
|
9
10
|
const decorators = [
|
|
10
11
|
(Story, context) => {
|
|
11
|
-
const theme = useMemo(
|
|
12
|
-
|
|
13
|
-
createTheme({
|
|
14
|
-
palette: {
|
|
15
|
-
mode: context?.globals?.theme ? context?.globals?.theme : 'light',
|
|
16
|
-
},
|
|
17
|
-
}),
|
|
18
|
-
[context?.globals?.theme]
|
|
19
|
-
);
|
|
12
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
13
|
+
|
|
20
14
|
return (
|
|
21
15
|
<div className="fullscreen_map">
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
16
|
+
<MapComponentsProvider>
|
|
17
|
+
<MUIThemeProvider theme={theme}>
|
|
18
|
+
<Story />
|
|
19
|
+
<MapLibreMap
|
|
20
|
+
options={{
|
|
21
|
+
zoom: 14.5,
|
|
22
|
+
style: 'https://wms.wheregroup.com/tileserver/style/osm-bright.json',
|
|
23
|
+
center: [7.0851268, 50.73884],
|
|
24
|
+
}}
|
|
25
|
+
mapId="map_1"
|
|
26
|
+
/>
|
|
27
|
+
<MlNavgiationTools
|
|
28
|
+
sx={{ bottom: '25px', right: '5px' }}
|
|
29
|
+
showZoomButtons={false}
|
|
30
|
+
mapId="map_1"
|
|
31
|
+
/>
|
|
32
|
+
</MUIThemeProvider>
|
|
33
|
+
</MapComponentsProvider>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
},
|
|
42
37
|
];
|
|
43
38
|
|
|
44
39
|
export default decorators;
|
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
|
|
3
2
|
import { MapComponentsProvider } from '../index';
|
|
4
|
-
|
|
5
3
|
import MapLibreMap from '../components/MapLibreMap/MapLibreMap';
|
|
6
|
-
|
|
7
4
|
import './style.css';
|
|
8
5
|
import MlNavgiationTools from '../components/MlNavigationTools/MlNavigationTools';
|
|
9
|
-
|
|
10
|
-
import
|
|
6
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
7
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
11
8
|
|
|
12
9
|
const decorators = [
|
|
13
10
|
(Story, context) => {
|
|
14
|
-
const theme = useMemo(
|
|
15
|
-
|
|
16
|
-
createTheme({
|
|
17
|
-
palette: {
|
|
18
|
-
mode: context?.globals?.theme ? context?.globals?.theme : 'light',
|
|
19
|
-
},
|
|
20
|
-
}),
|
|
21
|
-
[context?.globals?.theme]
|
|
22
|
-
);
|
|
11
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
12
|
+
|
|
23
13
|
return (
|
|
24
14
|
<div className="fullscreen_map">
|
|
25
|
-
<
|
|
26
|
-
<
|
|
15
|
+
<MapComponentsProvider>
|
|
16
|
+
<MUIThemeProvider theme={theme}>
|
|
27
17
|
<div
|
|
28
18
|
style={{
|
|
29
19
|
overflow: 'hidden',
|
|
@@ -80,8 +70,8 @@ const decorators = [
|
|
|
80
70
|
/>
|
|
81
71
|
</div>
|
|
82
72
|
</div>
|
|
83
|
-
</
|
|
84
|
-
</
|
|
73
|
+
</MUIThemeProvider>
|
|
74
|
+
</MapComponentsProvider>
|
|
85
75
|
</div>
|
|
86
76
|
);
|
|
87
77
|
},
|
|
@@ -3,24 +3,17 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { MapComponentsProvider } from '../index';
|
|
4
4
|
import MapLibreMap from '../components/MapLibreMap/MapLibreMap';
|
|
5
5
|
import './style.css';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
7
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
8
8
|
|
|
9
9
|
const decorators = [
|
|
10
10
|
(Story, context) => {
|
|
11
|
-
const theme = useMemo(
|
|
12
|
-
|
|
13
|
-
createTheme({
|
|
14
|
-
palette: {
|
|
15
|
-
mode: context?.globals?.theme ? context?.globals?.theme : 'light',
|
|
16
|
-
},
|
|
17
|
-
}),
|
|
18
|
-
[context?.globals?.theme]
|
|
19
|
-
);
|
|
11
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
12
|
+
|
|
20
13
|
return (
|
|
21
14
|
<div className="fullscreen_map">
|
|
22
|
-
<
|
|
23
|
-
<
|
|
15
|
+
<MapComponentsProvider>
|
|
16
|
+
<MUIThemeProvider theme={theme}>
|
|
24
17
|
<Story />
|
|
25
18
|
<MapLibreMap
|
|
26
19
|
options={{
|
|
@@ -30,8 +23,8 @@ const decorators = [
|
|
|
30
23
|
}}
|
|
31
24
|
mapId="map_1"
|
|
32
25
|
/>
|
|
33
|
-
</
|
|
34
|
-
</
|
|
26
|
+
</MUIThemeProvider>
|
|
27
|
+
</MapComponentsProvider>
|
|
35
28
|
</div>
|
|
36
29
|
);
|
|
37
30
|
},
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
import { MapComponentsProvider } from '../index';
|
|
4
|
+
import './style.css';
|
|
5
|
+
import { ThemeProvider as MUIThemeProvider } from '@mui/material/styles';
|
|
6
|
+
import getTheme from '../ui_components/MapcomponentsTheme';
|
|
7
|
+
|
|
8
|
+
const decorators = [
|
|
9
|
+
(Story, context) => {
|
|
10
|
+
const theme = useMemo(() => getTheme(context?.globals?.theme), [context?.globals?.theme]);
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<div className="fullscreen_map">
|
|
14
|
+
<MapComponentsProvider>
|
|
15
|
+
<MUIThemeProvider theme={theme}>
|
|
16
|
+
<Story />
|
|
17
|
+
</MUIThemeProvider>
|
|
18
|
+
</MapComponentsProvider>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export default decorators;
|
package/src/decorators/style.css
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import useCameraFollowPath from './useCameraFollowPath';
|
|
3
3
|
import TopToolbar from '../../ui_components/TopToolbar';
|
|
4
4
|
import mapContextDecorator from '../../decorators/MapContextDecorator';
|
|
5
|
-
import {
|
|
5
|
+
import { MenuItem, Slider, Typography } from '@mui/material';
|
|
6
6
|
import MlGeoJsonLayer from '../../components/MlGeoJsonLayer/MlGeoJsonLayer';
|
|
7
7
|
import { Feature } from '@turf/turf';
|
|
8
8
|
|
|
@@ -78,9 +78,9 @@ const Template = () => {
|
|
|
78
78
|
return (
|
|
79
79
|
<>
|
|
80
80
|
<TopToolbar>
|
|
81
|
-
<
|
|
81
|
+
<MenuItem onClick={() => setShowComponent(!showComponent)}>
|
|
82
82
|
{showComponent ? 'Route ausblenden' : 'Route einblenden'}
|
|
83
|
-
</
|
|
83
|
+
</MenuItem>
|
|
84
84
|
{showComponent ? (
|
|
85
85
|
<MlGeoJsonLayer
|
|
86
86
|
geojson={routeJson}
|
|
@@ -91,7 +91,7 @@ const Template = () => {
|
|
|
91
91
|
}}
|
|
92
92
|
/>
|
|
93
93
|
) : null}
|
|
94
|
-
<
|
|
94
|
+
<MenuItem
|
|
95
95
|
disabled={!state.pause}
|
|
96
96
|
onClick={() =>
|
|
97
97
|
setState((current) => {
|
|
@@ -100,8 +100,8 @@ const Template = () => {
|
|
|
100
100
|
}
|
|
101
101
|
>
|
|
102
102
|
Start
|
|
103
|
-
</
|
|
104
|
-
<
|
|
103
|
+
</MenuItem>
|
|
104
|
+
<MenuItem
|
|
105
105
|
disabled={state.pause}
|
|
106
106
|
onClick={() =>
|
|
107
107
|
setState((current) => {
|
|
@@ -110,8 +110,8 @@ const Template = () => {
|
|
|
110
110
|
}
|
|
111
111
|
>
|
|
112
112
|
Pause
|
|
113
|
-
</
|
|
114
|
-
<
|
|
113
|
+
</MenuItem>
|
|
114
|
+
<MenuItem
|
|
115
115
|
onClick={() => {
|
|
116
116
|
CameraFollowPath.reset();
|
|
117
117
|
setState((current) => {
|
|
@@ -120,11 +120,8 @@ const Template = () => {
|
|
|
120
120
|
}}
|
|
121
121
|
>
|
|
122
122
|
Reset
|
|
123
|
-
</
|
|
124
|
-
<Typography
|
|
125
|
-
id="discrete-slider"
|
|
126
|
-
style={{ color: '#121212', marginLeft: '10px', marginRight: '10px' }}
|
|
127
|
-
>
|
|
123
|
+
</MenuItem>
|
|
124
|
+
<Typography id="discrete-slider" style={{ marginLeft: '10px', marginRight: '10px' }}>
|
|
128
125
|
Zoom:
|
|
129
126
|
</Typography>
|
|
130
127
|
<Slider
|
|
@@ -148,10 +145,7 @@ const Template = () => {
|
|
|
148
145
|
maxWidth: '200px',
|
|
149
146
|
}}
|
|
150
147
|
/>
|
|
151
|
-
<Typography
|
|
152
|
-
id="discrete-slider2"
|
|
153
|
-
style={{ color: '#121212', marginLeft: '10px', marginRight: '10px' }}
|
|
154
|
-
>
|
|
148
|
+
<Typography id="discrete-slider2" style={{ marginLeft: '10px', marginRight: '10px' }}>
|
|
155
149
|
Speed:
|
|
156
150
|
</Typography>
|
|
157
151
|
<Slider
|
|
@@ -173,7 +167,7 @@ const Template = () => {
|
|
|
173
167
|
maxWidth: '200px',
|
|
174
168
|
}}
|
|
175
169
|
/>
|
|
176
|
-
<
|
|
170
|
+
<MenuItem
|
|
177
171
|
onClick={() => {
|
|
178
172
|
if (state.pitch === 0) {
|
|
179
173
|
setState((current) => {
|
|
@@ -187,7 +181,7 @@ const Template = () => {
|
|
|
187
181
|
}}
|
|
188
182
|
>
|
|
189
183
|
{state.pitch === 0 ? '3D' : '2D'}
|
|
190
|
-
</
|
|
184
|
+
</MenuItem>
|
|
191
185
|
</TopToolbar>
|
|
192
186
|
</>
|
|
193
187
|
);
|
|
@@ -5,7 +5,7 @@ import useLayerHoverPopup from "./useLayerHoverPopup";
|
|
|
5
5
|
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
6
6
|
|
|
7
7
|
const storyoptions = {
|
|
8
|
-
title: "
|
|
8
|
+
title: "Hooks/useLayerHoverPopup",
|
|
9
9
|
component: useLayerHoverPopup,
|
|
10
10
|
argTypes: {
|
|
11
11
|
},
|
|
@@ -5,7 +5,7 @@ import useMapState from "./useMapState";
|
|
|
5
5
|
import mapContextDecoratorHooks from "../decorators/MapContextDecoratorHooks";
|
|
6
6
|
|
|
7
7
|
const storyoptions = {
|
|
8
|
-
title: "Hooks/
|
|
8
|
+
title: "Hooks/useMapState",
|
|
9
9
|
component: useMapState,
|
|
10
10
|
argTypes: {},
|
|
11
11
|
decorators: mapContextDecoratorHooks,
|
|
@@ -13,7 +13,7 @@ const vectorUrl =
|
|
|
13
13
|
'https://wms.wheregroup.com/tileserver/tile/tileserver.php?/europe-0-14/index.json?/europe-0-14/{z}/{x}/{y}.pbf';
|
|
14
14
|
|
|
15
15
|
const storyoptions = {
|
|
16
|
-
title: 'Hooks/
|
|
16
|
+
title: 'Hooks/useSource',
|
|
17
17
|
component: useSource,
|
|
18
18
|
argTypes: {},
|
|
19
19
|
decorators: mapContextDecoratorHooks,
|
package/src/index.ts
CHANGED
|
@@ -67,3 +67,12 @@ export { MapComponentsProvider } from "./contexts/MapContext";
|
|
|
67
67
|
export { default as MapContext } from "./contexts/MapContext";
|
|
68
68
|
export { default as SimpleDataProvider } from "./contexts/SimpleDataProvider";
|
|
69
69
|
export { default as SimpleDataContext } from "./contexts/SimpleDataContext";
|
|
70
|
+
|
|
71
|
+
export { default as getTheme } from './ui_components/MapcomponentsTheme';
|
|
72
|
+
|
|
73
|
+
export { default as LayerList } from './ui_components/LayerList/LayerList';
|
|
74
|
+
export { default as LayerListItem } from './ui_components/LayerList/LayerListItem';
|
|
75
|
+
export { default as LayerListFolder } from './ui_components/LayerList/LayerListFolder';
|
|
76
|
+
export { default as LayerPropertyForm } from './ui_components/LayerList/util/LayerPropertyForm';
|
|
77
|
+
export { default as LayerListItemVectorLayer } from './ui_components/LayerList/util/LayerListItemVectorLayer';
|
|
78
|
+
export { default as ColorPicker } from './ui_components/LayerList/util/input/ColorPicker';
|