@mapcomponents/react-maplibre 0.1.46 → 0.1.51
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 +2 -1
- package/CHANGELOG.md +35 -0
- package/README.md +61 -150
- package/coverage/clover.xml +233 -226
- package/coverage/coverage-final.json +9 -9
- package/coverage/lcov-report/index.html +34 -34
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +25 -25
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- 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/MlFeatureEditor/MlFeatureEditor.tsx.html +72 -66
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +18 -18
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +26 -11
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/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 +103 -22
- package/coverage/lcov-report/src/components/MlMeasureTool/index.html +15 -15
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.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/index.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +22 -19
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
- 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 +2 -2
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +23 -23
- 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 +15 -15
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +78 -69
- package/coverage/lcov-report/src/hooks/useMap.ts.html +25 -25
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +28 -28
- package/coverage/lcov-report/src/hooks/useWms.js.html +2 -2
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +5 -2
- package/coverage/lcov.info +464 -443
- package/dist/components/MapLibreMap/MapLibreMap.d.ts +31 -0
- package/dist/components/MapLibreMap/MapLibreMap.stories.d.ts +15 -0
- package/dist/components/MapLibreMap/MapLibreMap.test.d.ts +1 -0
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +76 -0
- package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.test.d.ts +1 -0
- package/dist/components/MlBasicComponent.d.ts +5 -0
- package/dist/components/MlComponentTemplate/MlComponentTemplate.d.ts +22 -0
- package/dist/components/MlComponentTemplate/MlComponentTemplate.stories.d.ts +10 -0
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +21 -0
- package/dist/components/MlCreatePdfButton/MlCreatePdfButton.stories.d.ts +10 -0
- package/dist/components/MlCreatePdfButton/lib/createPdf.d.ts +2 -0
- package/dist/components/MlCreatePdfButton/lib/nominatimMap.d.ts +2 -0
- package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +35 -0
- package/dist/components/MlFeatureEditor/MlFeatureEditor.stories.d.ts +15 -0
- package/dist/components/MlFeatureEditor/MlFeatureEditor.test.d.ts +1 -0
- package/dist/components/MlFeatureEditor/custom-direct-select-mode.d.ts +37 -0
- package/dist/components/MlFeatureEditor/custom-polygon-mode.d.ts +16 -0
- package/dist/components/MlFeatureEditor/custom-select-mode.d.ts +37 -0
- package/dist/components/MlFeatureEditor/lib/common_selectors.d.ts +11 -0
- package/dist/components/MlFeatureEditor/lib/constants.d.ts +85 -0
- package/dist/components/MlFeatureEditor/lib/constrain_feature_movement.d.ts +2 -0
- package/dist/components/MlFeatureEditor/lib/create_midpoint.d.ts +15 -0
- package/dist/components/MlFeatureEditor/lib/create_supplementary_points.d.ts +2 -0
- package/dist/components/MlFeatureEditor/lib/create_vertex.d.ts +13 -0
- package/dist/components/MlFeatureEditor/lib/double_click_zoom.d.ts +7 -0
- package/dist/components/MlFeatureEditor/lib/euclidean_distance.d.ts +5 -0
- package/dist/components/MlFeatureEditor/lib/features_at.d.ts +7 -0
- package/dist/components/MlFeatureEditor/lib/get_features_and_set_cursor.d.ts +1 -0
- package/dist/components/MlFeatureEditor/lib/is_click.d.ts +1 -0
- package/dist/components/MlFeatureEditor/lib/is_event_at_coordinates.d.ts +6 -0
- package/dist/components/MlFeatureEditor/lib/is_tap.d.ts +3 -0
- package/dist/components/MlFeatureEditor/lib/map_event_to_bounding_box.d.ts +12 -0
- package/dist/components/MlFeatureEditor/lib/mode_handler.d.ts +24 -0
- package/dist/components/MlFeatureEditor/lib/mouse_event_point.d.ts +11 -0
- package/dist/components/MlFeatureEditor/lib/move_features.d.ts +2 -0
- package/dist/components/MlFeatureEditor/lib/sort_features.d.ts +2 -0
- package/dist/components/MlFeatureEditor/lib/string_set.d.ts +21 -0
- package/dist/components/MlFeatureEditor/lib/string_sets_are_equal.d.ts +5 -0
- package/dist/components/MlFeatureEditor/lib/theme.d.ts +88 -0
- package/dist/components/MlFeatureEditor/lib/to_dense_array.d.ts +12 -0
- package/dist/components/MlFeatureEditor/lib/utils.d.ts +10 -0
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +61 -0
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.stories.d.ts +10 -0
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.test.d.ts +1 -0
- package/dist/components/MlFollowGps/MlFollowGps.d.ts +80 -0
- package/dist/components/MlFollowGps/MlFollowGps.stories.d.ts +10 -0
- package/dist/components/MlFollowGps/MlFollowGps.test.d.ts +1 -0
- package/dist/components/MlGPXViewer/MlGPXViewer.d.ts +29 -0
- package/dist/components/MlGPXViewer/MlGPXViewer.stories.d.ts +16 -0
- package/dist/components/MlGPXViewer/MlGPXViewer.test.d.ts +1 -0
- package/dist/components/MlGPXViewer/gpxConverter.d.ts +11 -0
- package/dist/components/MlGPXViewer/util/GeoJsonContext.d.ts +10 -0
- package/dist/components/MlGPXViewer/util/GeoJsonProvider.d.ts +4 -0
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +76 -0
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +12 -0
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.test.d.ts +1 -0
- package/dist/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +2 -0
- package/dist/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +2 -0
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +29 -0
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.stories.d.ts +10 -0
- package/dist/components/MlImageMarkerLayer/MlImageMarkerLayer.test.d.ts +1 -0
- package/dist/components/MlLayer/MlLayer.d.ts +26 -0
- package/dist/components/MlLayer/MlLayer.stories.d.ts +10 -0
- package/dist/components/MlLayer/MlLayer.test.d.ts +1 -0
- package/dist/components/MlLayerMagnify/MlLayerMagnify.d.ts +27 -0
- package/dist/components/MlLayerMagnify/MlLayerMagnify.stories.d.ts +10 -0
- package/dist/components/MlLayerMagnify/MlLayerMagnify.test.d.ts +1 -0
- package/dist/components/MlLayerSwipe/MlLayerSwipe.d.ts +16 -0
- package/dist/components/MlLayerSwipe/MlLayerSwipe.stories.d.ts +11 -0
- package/dist/components/MlLayerSwipe/MlLayerSwipe.test.d.ts +1 -0
- package/dist/components/MlLayerSwitcher/MlLayerSwitcher.d.ts +30 -0
- package/dist/components/MlLayerSwitcher/MlLayerSwitcher.stories.d.ts +13 -0
- package/dist/components/MlLayerSwitcher/components/LayerBox.d.ts +6 -0
- package/dist/components/MlMarker/MlMarker.d.ts +33 -0
- package/dist/components/MlMarker/MlMarker.stories.d.ts +9 -0
- package/dist/components/MlMeasureTool/MlMeasureTool.d.ts +20 -0
- package/dist/components/MlMeasureTool/MlMeasureTool.stories.d.ts +11 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.d.ts +47 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.stories.d.ts +10 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.test.d.ts +1 -0
- package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +9 -0
- package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +13 -0
- package/dist/components/MlOsmLayer/MlOsmLayer.d.ts +18 -0
- package/dist/components/MlOsmLayer/MlOsmLayer.stories_.d.ts +16 -0
- package/dist/components/MlOsmLayer/MlOsmLayer.test.d.ts +1 -0
- package/dist/components/MlScaleReference/MlScaleReference.d.ts +2 -0
- package/dist/components/MlScaleReference/MlScaleReference.stories.d.ts +14 -0
- package/dist/components/MlShareMapState/MlShareMapState.d.ts +22 -0
- package/dist/components/MlShareMapState/MlShareMapState.stories.d.ts +10 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +20 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.d.ts +16 -0
- package/dist/components/MlSpatialElevationProfile/MlSpatialElevationProfile.test.d.ts +1 -0
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +15 -0
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.stories.d.ts +16 -0
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.test.d.ts +1 -0
- package/dist/components/MlThreeJsLayer/lib/GLTFLoader.d.ts +17 -0
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +73 -0
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.d.ts +13 -0
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.test.d.ts +1 -0
- package/dist/components/MlTransitionGeoJsonLayer/util/transitionFunctions.d.ts +2 -0
- package/dist/components/MlUseMapDebugger/MlUseMapDebugger.d.ts +22 -0
- package/dist/components/MlUseMapDebugger/MlUseMapDebugger.stories.d.ts +13 -0
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +37 -0
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.stories.d.ts +13 -0
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.test.d.ts +1 -0
- package/dist/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +22 -0
- package/dist/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.stories.d.ts +13 -0
- package/dist/components/MlWmsLayer/MlWmsLayer.d.ts +100 -0
- package/dist/components/MlWmsLayer/MlWmsLayer.stories.d.ts +13 -0
- package/dist/components/MlWmsLayer/MlWmsLayer.test.d.ts +1 -0
- package/dist/components/MlWmsLoader/MlWmsLoader.d.ts +48 -0
- package/dist/components/MlWmsLoader/MlWmsLoader.stories.d.ts +13 -0
- package/dist/contexts/MapComponentsProvider.test.d.ts +1 -0
- package/dist/contexts/MapContext.d.ts +13 -0
- package/dist/contexts/SimpleDataContext.d.ts +4 -0
- package/dist/contexts/SimpleDataProvider.d.ts +8 -0
- package/dist/contexts/SimpleDataProvider.test.d.ts +1 -0
- package/dist/custom.d.d.ts +22 -0
- package/dist/decorators/MapContextDecorator.d.ts +2 -0
- package/dist/decorators/MultiMapContextDecorator.d.ts +2 -0
- package/dist/hooks/useLayer.d.ts +26 -0
- package/dist/hooks/useLayer.test.d.ts +1 -0
- package/dist/hooks/useMap.d.ts +14 -0
- package/dist/hooks/useMapState.d.ts +62 -0
- package/dist/hooks/useMapState.stories.d.ts +14 -0
- package/dist/hooks/useWms.d.ts +18 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.esm.js +66 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/setupTests.d.ts +12 -0
- package/dist/stories/components/Readme.d.ts +2 -0
- package/dist/ui_components/ImageLoader.d.ts +2 -0
- package/dist/ui_components/Legend.d.ts +1 -0
- package/dist/ui_components/LoadingOverlay.d.ts +2 -0
- package/dist/ui_components/LoadingOverlayContext.d.ts +11 -0
- package/dist/ui_components/Sidebar.d.ts +1 -0
- package/dist/ui_components/Tooltip.d.ts +1 -0
- package/dist/ui_components/TopToolbar.d.ts +1 -0
- package/dist/util/index.d.ts +3 -0
- package/dist/util/layerRemovalTest.d.ts +2 -0
- package/dist/util/sourceRemovalTest.d.ts +2 -0
- package/package.json +2 -1
- package/public/catalogue/mc_meta.json +1 -0
- package/src/components/MapLibreMap/MapLibreMap.tsx +1 -1
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +4 -3
- package/src/components/MlFeatureEditor/MlFeatureEditor.stories.js +1 -2
- package/src/components/MlFeatureEditor/MlFeatureEditor.test.js +3 -3
- package/src/components/MlFeatureEditor/MlFeatureEditor.tsx +40 -38
- package/src/components/MlFeatureEditor/lib/utils.js +1 -2
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx +14 -9
- package/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.ts +2 -1
- package/src/components/MlMeasureTool/MlMeasureTool.stories.js +68 -39
- package/src/components/MlMeasureTool/MlMeasureTool.tsx +38 -11
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx +18 -17
- package/src/components/MlWmsLoader/MlWmsLoader.stories.js +1 -1
- package/src/components/MlWmsLoader/MlWmsLoader.tsx +1 -1
- package/src/hooks/useLayer.test.js +205 -0
- package/src/hooks/useLayer.ts +11 -8
- package/src/hooks/useWms.js +1 -1
- package/src/index.ts +1 -0
- package/tsconfig.json +35 -7
- package/docs-build/0.0ee4f98c.iframe.bundle.js +0 -2
- package/docs-build/0.0ee4f98c.iframe.bundle.js.map +0 -1
- package/docs-build/0.20735a16c2ad9677fe7d.manager.bundle.js +0 -1
- package/docs-build/1.bb3cf738.iframe.bundle.js +0 -10
- package/docs-build/1.bb3cf738.iframe.bundle.js.map +0 -1
- package/docs-build/17.97db5b3f.iframe.bundle.js +0 -2
- package/docs-build/17.97db5b3f.iframe.bundle.js.map +0 -1
- package/docs-build/18.f8d843df.iframe.bundle.js +0 -17
- package/docs-build/18.f8d843df.iframe.bundle.js.map +0 -1
- package/docs-build/19.c45e6b08.iframe.bundle.js +0 -14
- package/docs-build/19.c45e6b08.iframe.bundle.js.map +0 -1
- package/docs-build/2.42c790e4.iframe.bundle.js +0 -2
- package/docs-build/2.42c790e4.iframe.bundle.js.map +0 -1
- package/docs-build/20.120bbcfb.iframe.bundle.js +0 -2
- package/docs-build/20.120bbcfb.iframe.bundle.js.map +0 -1
- package/docs-build/21.37c885f1.iframe.bundle.js +0 -4
- package/docs-build/21.37c885f1.iframe.bundle.js.map +0 -1
- package/docs-build/22.7fbc99f4.iframe.bundle.js +0 -22
- package/docs-build/22.7fbc99f4.iframe.bundle.js.map +0 -1
- package/docs-build/3.1a37a83e.iframe.bundle.js +0 -2
- package/docs-build/3.1a37a83e.iframe.bundle.js.map +0 -1
- package/docs-build/4.8ac31bba1926f4f011b0.manager.bundle.js +0 -2
- package/docs-build/4.8ac31bba1926f4f011b0.manager.bundle.js.LICENSE.txt +0 -8
- package/docs-build/5.daf044a6c0f55d839078.manager.bundle.js +0 -1
- package/docs-build/6.99fba2cf6af0473f8209.manager.bundle.js +0 -2
- package/docs-build/6.99fba2cf6af0473f8209.manager.bundle.js.LICENSE.txt +0 -12
- package/docs-build/7.b6a48b90f61cb575c2e4.manager.bundle.js +0 -1
- package/docs-build/8.50518a5391398d9d5812.manager.bundle.js +0 -1
- package/docs-build/assets/3D/godzilla_simple.glb +0 -0
- package/docs-build/assets/dop.png +0 -0
- package/docs-build/assets/historic.png +0 -0
- package/docs-build/assets/marker.png +0 -0
- package/docs-build/assets/osm.png +0 -0
- package/docs-build/assets/sample.gpx +0 -716
- package/docs-build/catalogue/.gitkeep +0 -0
- package/docs-build/catalogue/mc_meta.json +0 -1
- package/docs-build/favicon.ico +0 -0
- package/docs-build/iframe.html +0 -348
- package/docs-build/index.html +0 -59
- package/docs-build/logo.png +0 -0
- package/docs-build/main.ef9704b1252e8efa56a0.manager.bundle.js +0 -1
- package/docs-build/main~24120820.905c51c8.iframe.bundle.js +0 -2
- package/docs-build/main~24120820.905c51c8.iframe.bundle.js.map +0 -1
- package/docs-build/manifest.json +0 -25
- package/docs-build/robots.txt +0 -3
- package/docs-build/runtime~main.6e6ed7dc9ea4785ef286.manager.bundle.js +0 -1
- package/docs-build/static/media/mapcomponents_logo.98b01a05.png +0 -0
- package/docs-build/static/media/wg-marker.bf3eeb2d.png +0 -0
- package/docs-build/thumbnails/MapLibreMap.png +0 -0
- package/docs-build/thumbnails/MlCameraFollowPath.png +0 -0
- package/docs-build/thumbnails/MlCreatePdfButton.png +0 -0
- package/docs-build/thumbnails/MlDeckGlLayer.png +0 -0
- package/docs-build/thumbnails/MlDeckGlTerrainLayer.png +0 -0
- package/docs-build/thumbnails/MlDemoDashboard.png +0 -0
- package/docs-build/thumbnails/MlFeatureEditor.png +0 -0
- package/docs-build/thumbnails/MlFillExtrusionLayer.png +0 -0
- package/docs-build/thumbnails/MlFollowGps.png +0 -0
- package/docs-build/thumbnails/MlGPXViewer.png +0 -0
- package/docs-build/thumbnails/MlGeoJsonLayer.png +0 -0
- package/docs-build/thumbnails/MlHillshadeLayer.png +0 -0
- package/docs-build/thumbnails/MlIconLayer.png +0 -0
- package/docs-build/thumbnails/MlLaermkarte.png +0 -0
- package/docs-build/thumbnails/MlLayerMagnify.png +0 -0
- package/docs-build/thumbnails/MlLayerSwipe.png +0 -0
- package/docs-build/thumbnails/MlMapDrawTools.png +0 -0
- package/docs-build/thumbnails/MlMeasureTool.png +0 -0
- package/docs-build/thumbnails/MlMobilerImker.png +0 -0
- package/docs-build/thumbnails/MlNavigationCompass.png +0 -0
- package/docs-build/thumbnails/MlNavigationTools.png +0 -0
- package/docs-build/thumbnails/MlOsmLayer.png +0 -0
- package/docs-build/thumbnails/MlScaleReference.png +0 -0
- package/docs-build/thumbnails/MlSpatialElevationProfile.png +0 -0
- package/docs-build/thumbnails/MlThreeJsLayer.png +0 -0
- package/docs-build/thumbnails/MlTransitionGeoJsonLayer.png +0 -0
- package/docs-build/thumbnails/MlVectorTileLayer.png +0 -0
- package/docs-build/thumbnails/MlWanderApp.png +0 -0
- package/docs-build/thumbnails/MlWmsLayer.png +0 -0
- package/docs-build/thumbnails/MlWmsLoader.png +0 -0
- package/docs-build/vendors~main.4b570b3072ba06ee44b5.manager.bundle.js +0 -2
- package/docs-build/vendors~main.4b570b3072ba06ee44b5.manager.bundle.js.LICENSE.txt +0 -104
- package/docs-build/vendors~main~0ad7406a.93aea1be.iframe.bundle.js +0 -8
- package/docs-build/vendors~main~0ad7406a.93aea1be.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~0f485567.6e7163ef.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~0f485567.6e7163ef.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~41a6ab2c.da377733.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~41a6ab2c.da377733.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~52589227.cebbe724.iframe.bundle.js +0 -8
- package/docs-build/vendors~main~52589227.cebbe724.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~57c1f6cb.86178471.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~57c1f6cb.86178471.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~73914085.e2f34f8e.iframe.bundle.js +0 -293
- package/docs-build/vendors~main~73914085.e2f34f8e.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~9c5b28f6.eefa7445.iframe.bundle.js +0 -7
- package/docs-build/vendors~main~9c5b28f6.eefa7445.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b5906859.210afc21.iframe.bundle.js +0 -21
- package/docs-build/vendors~main~b5906859.210afc21.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b8f44717.7b869975.iframe.bundle.js +0 -89
- package/docs-build/vendors~main~b8f44717.7b869975.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b9cf3951.62d39717.iframe.bundle.js +0 -63
- package/docs-build/vendors~main~b9cf3951.62d39717.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~d939e436.394e3bc7.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~d939e436.394e3bc7.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~f420d588.88814a6a.iframe.bundle.js +0 -107
- package/docs-build/vendors~main~f420d588.88814a6a.iframe.bundle.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlLayerSwitcher as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlLayerSwitcher from "./MlLayerSwitcher";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface MlMarkerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Id of the target MapLibre instance in mapContext
|
|
4
|
+
*/
|
|
5
|
+
mapId?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The layerId of an existing layer this layer should be rendered visually beneath
|
|
8
|
+
* https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addlayer - see "beforeId" property
|
|
9
|
+
*/
|
|
10
|
+
insertBeforeLayer?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Longitude of the marker position
|
|
13
|
+
*/
|
|
14
|
+
lng: number;
|
|
15
|
+
/**
|
|
16
|
+
* Latitude of the marker position
|
|
17
|
+
*/
|
|
18
|
+
lat: number;
|
|
19
|
+
/**
|
|
20
|
+
* Content of the description popup
|
|
21
|
+
*/
|
|
22
|
+
content?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Adds a marker to the map and displays the contents of the "content" property in an iframe next to it
|
|
26
|
+
*/
|
|
27
|
+
declare const MlMarker: {
|
|
28
|
+
(props: MlMarkerProps): JSX.Element;
|
|
29
|
+
defaultProps: {
|
|
30
|
+
mapId: undefined;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default MlMarker;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlMarker as component };
|
|
6
|
+
export { mapContextDecorator as decorators };
|
|
7
|
+
}
|
|
8
|
+
import MlMarker from "./MlMarker";
|
|
9
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as turf from "@turf/turf";
|
|
2
|
+
interface MlMeasureToolProps {
|
|
3
|
+
/**
|
|
4
|
+
* String that specify if the Tool measures an area ("polygon") or length ("line")
|
|
5
|
+
*/
|
|
6
|
+
measureType?: string;
|
|
7
|
+
/**
|
|
8
|
+
* String that dictates which unit of measurement is used
|
|
9
|
+
*/
|
|
10
|
+
unit?: turf.Units;
|
|
11
|
+
}
|
|
12
|
+
declare const MlMeasureTool: {
|
|
13
|
+
(props: MlMeasureToolProps): JSX.Element;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
mapId: undefined;
|
|
16
|
+
measureType: string;
|
|
17
|
+
unit: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default MlMeasureTool;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const MeasureLine: any;
|
|
3
|
+
export const MeasurePolygon: any;
|
|
4
|
+
declare namespace storyoptions {
|
|
5
|
+
export const title: string;
|
|
6
|
+
export { MlMeasureTool as component };
|
|
7
|
+
export const argTypes: {};
|
|
8
|
+
export { mapContextDecorator as decorators };
|
|
9
|
+
}
|
|
10
|
+
import MlMeasureTool from "./MlMeasureTool";
|
|
11
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
interface MlNavigationCompassProps {
|
|
3
|
+
mapId?: string;
|
|
4
|
+
insertBeforeLayer?: string;
|
|
5
|
+
style?: any;
|
|
6
|
+
backgroundStyle?: any;
|
|
7
|
+
needleStyle?: any;
|
|
8
|
+
rotateRightStyle?: any;
|
|
9
|
+
rotateLeftStyle?: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Navigation component that displays a compass component which indicates the current oriantation of the map it is registered for and offers controls to turn the bearing 90° left/right or reset north to point up.
|
|
13
|
+
*
|
|
14
|
+
* All style props are applied using @emotion/css to allow more complex css selectors.
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
*/
|
|
18
|
+
declare const MlNavigationCompass: {
|
|
19
|
+
(props: MlNavigationCompassProps): JSX.Element;
|
|
20
|
+
propTypes: {
|
|
21
|
+
/**
|
|
22
|
+
* Component id prefix
|
|
23
|
+
*/
|
|
24
|
+
idPrefix: PropTypes.Requireable<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Style object to adjust css definitions of the component.
|
|
27
|
+
*/
|
|
28
|
+
style: PropTypes.Requireable<object>;
|
|
29
|
+
/**
|
|
30
|
+
* Style object to adjust css definitions of the background.
|
|
31
|
+
*/
|
|
32
|
+
backgroundStyle: PropTypes.Requireable<object>;
|
|
33
|
+
/**
|
|
34
|
+
* Style object to adjust css definitions of the compass needle.
|
|
35
|
+
*/
|
|
36
|
+
needleStyle: PropTypes.Requireable<object>;
|
|
37
|
+
/**
|
|
38
|
+
* Style object to adjust css definitions of the rotate right button.
|
|
39
|
+
*/
|
|
40
|
+
rotateRightStyle: PropTypes.Requireable<object>;
|
|
41
|
+
/**
|
|
42
|
+
* Style object to adjust css definitions of the rotate left button.
|
|
43
|
+
*/
|
|
44
|
+
rotateLeftStyle: PropTypes.Requireable<object>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default MlNavigationCompass;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const Standard: any;
|
|
3
|
+
export const StyleExample: any;
|
|
4
|
+
declare namespace storyoptions {
|
|
5
|
+
export const title: string;
|
|
6
|
+
export { MlNavigationCompass as component };
|
|
7
|
+
export { mapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlNavigationCompass from "./MlNavigationCompass";
|
|
10
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlNavigationTools as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlNavigationTools from "./MlNavigationTools";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default MlOsmLayer;
|
|
2
|
+
/**
|
|
3
|
+
* Adds a standard OSM tile layer to the maplibre-gl instancereference by
|
|
4
|
+
* props.mapId
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
*/
|
|
8
|
+
declare function MlOsmLayer(props: any): JSX.Element;
|
|
9
|
+
declare namespace MlOsmLayer {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
const mapId: PropTypes.Requireable<string>;
|
|
12
|
+
const idPrefix: PropTypes.Requireable<string>;
|
|
13
|
+
const sourceOptions: PropTypes.Requireable<object>;
|
|
14
|
+
const layerOptions: PropTypes.Requireable<object>;
|
|
15
|
+
const insertBeforeLayer: PropTypes.Requireable<string>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlOsmLayer as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
namespace options {
|
|
8
|
+
namespace control {
|
|
9
|
+
const type: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { mapContextDecorator as decorators };
|
|
14
|
+
}
|
|
15
|
+
import MlOsmLayer from "./MlOsmLayer";
|
|
16
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const Toolbar: any;
|
|
3
|
+
export const Overlay: any;
|
|
4
|
+
declare namespace storyoptions {
|
|
5
|
+
export const title: string;
|
|
6
|
+
export { MlScaleReference as component };
|
|
7
|
+
export namespace argTypes {
|
|
8
|
+
const url: {};
|
|
9
|
+
const layer: {};
|
|
10
|
+
}
|
|
11
|
+
export { mapContextDecorator as decorators };
|
|
12
|
+
}
|
|
13
|
+
import MlScaleReference from "./MlScaleReference";
|
|
14
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default MlShareMapState;
|
|
2
|
+
/**
|
|
3
|
+
* TODO: Add short & useful description
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
*/
|
|
10
|
+
declare function MlShareMapState(props: {
|
|
11
|
+
mapId: string;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace MlShareMapState {
|
|
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
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
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";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default MlSpatialElevationProfile;
|
|
2
|
+
/**
|
|
3
|
+
* MlSpatialElevationProfile returns a Button that will add a standard OSM tile layer to the maplibre-gl instance.
|
|
4
|
+
*
|
|
5
|
+
* @component
|
|
6
|
+
*/
|
|
7
|
+
declare function MlSpatialElevationProfile(props: any): JSX.Element;
|
|
8
|
+
declare namespace MlSpatialElevationProfile {
|
|
9
|
+
namespace defaultProps {
|
|
10
|
+
const elevationFactor: number;
|
|
11
|
+
}
|
|
12
|
+
namespace propTypes {
|
|
13
|
+
export const mapId: PropTypes.Requireable<string>;
|
|
14
|
+
export const idPrefix: PropTypes.Requireable<string>;
|
|
15
|
+
const elevationFactor_1: PropTypes.Requireable<number>;
|
|
16
|
+
export { elevationFactor_1 as elevationFactor };
|
|
17
|
+
export const insertBeforeLayer: PropTypes.Requireable<string>;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlSpatialElevationProfile as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
namespace options {
|
|
8
|
+
namespace control {
|
|
9
|
+
const type: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { mapContextDecorator as decorators };
|
|
14
|
+
}
|
|
15
|
+
import MlSpatialElevationProfile from "./MlSpatialElevationProfile";
|
|
16
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default MlThreeJsLayer;
|
|
2
|
+
/**
|
|
3
|
+
* Renders obj or gltf 3D Models on the MapLibreMap referenced by props.mapId
|
|
4
|
+
*
|
|
5
|
+
* @component
|
|
6
|
+
*/
|
|
7
|
+
declare function MlThreeJsLayer(props: any): JSX.Element;
|
|
8
|
+
declare namespace MlThreeJsLayer {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const mapId: PropTypes.Requireable<string>;
|
|
11
|
+
const init: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
const onDone: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlThreeJsLayer as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
namespace options {
|
|
8
|
+
namespace control {
|
|
9
|
+
const type: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { mapContextDecorator as decorators };
|
|
14
|
+
}
|
|
15
|
+
import MlThreeJsLayer from "./MlThreeJsLayer";
|
|
16
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default GLTFLoader;
|
|
2
|
+
declare class GLTFLoader {
|
|
3
|
+
constructor(manager: any);
|
|
4
|
+
dracoLoader: any;
|
|
5
|
+
ktx2Loader: any;
|
|
6
|
+
meshoptDecoder: any;
|
|
7
|
+
pluginCallbacks: any[];
|
|
8
|
+
load(url: any, onLoad: any, onProgress: any, onError: any): void;
|
|
9
|
+
setDRACOLoader(dracoLoader: any): GLTFLoader;
|
|
10
|
+
setDDSLoader(): void;
|
|
11
|
+
setKTX2Loader(ktx2Loader: any): GLTFLoader;
|
|
12
|
+
setMeshoptDecoder(meshoptDecoder: any): GLTFLoader;
|
|
13
|
+
register(callback: any): GLTFLoader;
|
|
14
|
+
unregister(callback: any): GLTFLoader;
|
|
15
|
+
parse(data: any, path: any, onLoad: any, onError: any): void;
|
|
16
|
+
parseAsync(data: any, path: any): Promise<any>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Feature, FeatureCollection } from "@turf/turf";
|
|
2
|
+
import { CircleLayerSpecification, FillLayerSpecification, LineLayerSpecification, MapLayerMouseEvent } from "maplibre-gl";
|
|
3
|
+
interface MlTransitionGeoJsonLayerProps {
|
|
4
|
+
/**
|
|
5
|
+
* Id of the target MapLibre instance in mapContext
|
|
6
|
+
*/
|
|
7
|
+
mapId: string;
|
|
8
|
+
/**
|
|
9
|
+
* GeoJSON data that is supposed to be rendered by this component.
|
|
10
|
+
*/
|
|
11
|
+
geojson: Feature | FeatureCollection | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Type of the layer that will be added to the MapLibre instance.
|
|
14
|
+
* Possible values: "line", "circle", "fill"
|
|
15
|
+
*/
|
|
16
|
+
type?: "fill" | "line" | "circle";
|
|
17
|
+
/**
|
|
18
|
+
* Paint property object, that is passed to the addLayer call.
|
|
19
|
+
* Possible props depend on the layer type.
|
|
20
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#line
|
|
21
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#circle
|
|
22
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
23
|
+
*/
|
|
24
|
+
paint?: CircleLayerSpecification['paint'] | FillLayerSpecification['paint'] | LineLayerSpecification['layout'];
|
|
25
|
+
/**
|
|
26
|
+
* Layout property object, that is passed to the addLayer call.
|
|
27
|
+
* Possible props depend on the layer type.
|
|
28
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#line
|
|
29
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#circle
|
|
30
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
31
|
+
*/
|
|
32
|
+
layout?: CircleLayerSpecification['layout'] | FillLayerSpecification['layout'] | LineLayerSpecification['layout'];
|
|
33
|
+
/**
|
|
34
|
+
* Javascript object that is spread into the addLayer commands first parameter.
|
|
35
|
+
*/
|
|
36
|
+
options?: CircleLayerSpecification | FillLayerSpecification | LineLayerSpecification;
|
|
37
|
+
/**
|
|
38
|
+
* Javascript object with optional properties "fill", "line", "circle" to override implicit layer type default paint properties.
|
|
39
|
+
*/
|
|
40
|
+
defaultPaintOverrides?: {
|
|
41
|
+
circle?: CircleLayerSpecification['paint'];
|
|
42
|
+
fill?: FillLayerSpecification['paint'];
|
|
43
|
+
line?: LineLayerSpecification['paint'];
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
47
|
+
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
48
|
+
*/
|
|
49
|
+
insertBeforeLayer: string;
|
|
50
|
+
/**
|
|
51
|
+
* Hover event handler that is executed whenever a geometry rendered by this component is hovered.
|
|
52
|
+
*/
|
|
53
|
+
onHover?: MapLayerMouseEvent;
|
|
54
|
+
/**
|
|
55
|
+
* Click event handler that is executed whenever a geometry rendered by this component is clicked.
|
|
56
|
+
*/
|
|
57
|
+
onClick?: MapLayerMouseEvent;
|
|
58
|
+
/**
|
|
59
|
+
* Leave event handler that is executed whenever a geometry rendered by this component is
|
|
60
|
+
* left/unhovered.
|
|
61
|
+
*/
|
|
62
|
+
onLeave?: MapLayerMouseEvent;
|
|
63
|
+
/**
|
|
64
|
+
* Creates transition animation whenever the geojson prop changes.
|
|
65
|
+
* Only works with layer type "line" and LineString GeoJSON data.
|
|
66
|
+
*/
|
|
67
|
+
transitionTime: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Adds source and layer of types "line", "fill" or "circle" to display GeoJSON data on the map.
|
|
71
|
+
*/
|
|
72
|
+
declare const MlTransitionGeoJsonLayer: (props: MlTransitionGeoJsonLayerProps) => JSX.Element;
|
|
73
|
+
export default MlTransitionGeoJsonLayer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const Linestring: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlTransitionGeoJsonLayer as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlTransitionGeoJsonLayer from "./MlTransitionGeoJsonLayer";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export function _showNextTransitionSegment(props: any, map: any, transitionInProgressRef: any, transitionGeojsonDataRef: any, transitionGeojsonCommonDataRef: any, currentTransitionStepRef: any, msPerStep: any, transitionTimeoutRef: any, setDisplayGeojson: any): void;
|
|
2
|
+
export function _transitionToGeojson(props: any, transitionGeojsonCommonDataRef: any, transitionGeojsonDataRef: any, transitionInProgressRef: any, oldGeojsonRef: any, msPerStep: any, currentTransitionStepRef: any, map: any, transitionTimeoutRef: any, setDisplayGeojson: any): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default MlUseMapDebugger;
|
|
2
|
+
/**
|
|
3
|
+
* Renders a collapsable top-drawer containing live map debug information
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
*/
|
|
10
|
+
declare function MlUseMapDebugger(props: {
|
|
11
|
+
mapId: string;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace MlUseMapDebugger {
|
|
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
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlUseMapDebugger as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlUseMapDebugger from "./MlUseMapDebugger";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
interface MlVectorTileLayerProps {
|
|
3
|
+
mapId?: string;
|
|
4
|
+
insertBeforeLayer?: string;
|
|
5
|
+
layerId?: string;
|
|
6
|
+
sourceOptions?: any;
|
|
7
|
+
url?: string;
|
|
8
|
+
layers?: any;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Adds a vector-tile source and 0...n vector-tile-layers to the MapLibre instance referenced by
|
|
12
|
+
* props.mapId
|
|
13
|
+
*
|
|
14
|
+
* @component
|
|
15
|
+
*/
|
|
16
|
+
declare const MlVectorTileLayer: {
|
|
17
|
+
(props: MlVectorTileLayerProps): JSX.Element;
|
|
18
|
+
propTypes: {
|
|
19
|
+
/**
|
|
20
|
+
* Id of the target MapLibre instance in mapContext
|
|
21
|
+
*/
|
|
22
|
+
mapId: PropTypes.Requireable<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Options object that will be used as first parameter on the MapLibreGl.addSource call see MapLibre source options documentation.
|
|
25
|
+
*/
|
|
26
|
+
sourceOptions: PropTypes.Requireable<object>;
|
|
27
|
+
/**
|
|
28
|
+
* Object that hold layers
|
|
29
|
+
*/
|
|
30
|
+
layers: PropTypes.Requireable<object>;
|
|
31
|
+
/**
|
|
32
|
+
* String of the URL of a wms layer
|
|
33
|
+
*/
|
|
34
|
+
url: PropTypes.Requireable<string>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default MlVectorTileLayer;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlVectorTileLayer as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlVectorTileLayer from "./MlVectorTileLayer";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default MlWmsFeatureInfoPopup;
|
|
2
|
+
/**
|
|
3
|
+
* TODO: Add short & useful description
|
|
4
|
+
*
|
|
5
|
+
* @param {object} props
|
|
6
|
+
* @param {string} props.mapId Id of the target MapLibre instance in mapContext
|
|
7
|
+
*
|
|
8
|
+
* @component
|
|
9
|
+
*/
|
|
10
|
+
declare function MlWmsFeatureInfoPopup(props: {
|
|
11
|
+
mapId: string;
|
|
12
|
+
}): JSX.Element;
|
|
13
|
+
declare namespace MlWmsFeatureInfoPopup {
|
|
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
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlWmsFeatureInfoPopup as component };
|
|
6
|
+
export namespace argTypes {
|
|
7
|
+
const url: {};
|
|
8
|
+
const layer: {};
|
|
9
|
+
}
|
|
10
|
+
export { mapContextDecorator as decorators };
|
|
11
|
+
}
|
|
12
|
+
import MlWmsFeatureInfoPopup from "./MlWmsFeatureInfoPopup";
|
|
13
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|