@mapcomponents/react-maplibre 0.1.48 → 0.1.49
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/README.md +61 -150
- package/coverage/clover.xml +181 -178
- package/coverage/coverage-final.json +6 -6
- package/coverage/lcov-report/index.html +26 -26
- 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 +69 -63
- 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 +1 -1
- 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 +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 +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 +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 +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 +1 -1
- 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 +60 -60
- 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 +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov.info +320 -311
- 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 +75 -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 +69 -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 +68 -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 +24 -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 +29 -22
- 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/src/components/MapLibreMap/MapLibreMap.tsx +1 -1
- package/src/components/MlFeatureEditor/MlFeatureEditor.stories.js +1 -2
- package/src/components/MlFeatureEditor/MlFeatureEditor.test.js +3 -3
- package/src/components/MlFeatureEditor/MlFeatureEditor.tsx +37 -35
- package/src/components/MlFeatureEditor/lib/utils.js +1 -2
- package/src/components/MlWmsLoader/MlWmsLoader.stories.js +1 -1
- package/src/hooks/useLayer.test.js +205 -0
- package/tsconfig.json +35 -7
- package/docs-build/0.20735a16c2ad9677fe7d.manager.bundle.js +0 -1
- package/docs-build/0.968bdc5f.iframe.bundle.js +0 -2
- package/docs-build/0.968bdc5f.iframe.bundle.js.map +0 -1
- package/docs-build/1.3530bc86.iframe.bundle.js +0 -10
- package/docs-build/1.3530bc86.iframe.bundle.js.map +0 -1
- package/docs-build/17.c96fb6bc.iframe.bundle.js +0 -2
- package/docs-build/17.c96fb6bc.iframe.bundle.js.map +0 -1
- package/docs-build/18.0947f810.iframe.bundle.js +0 -17
- package/docs-build/18.0947f810.iframe.bundle.js.map +0 -1
- package/docs-build/19.44204e5a.iframe.bundle.js +0 -14
- package/docs-build/19.44204e5a.iframe.bundle.js.map +0 -1
- package/docs-build/2.c62e9630.iframe.bundle.js +0 -2
- package/docs-build/2.c62e9630.iframe.bundle.js.map +0 -1
- package/docs-build/20.50a2ad76.iframe.bundle.js +0 -2
- package/docs-build/20.50a2ad76.iframe.bundle.js.map +0 -1
- package/docs-build/21.ce55b70e.iframe.bundle.js +0 -4
- package/docs-build/21.ce55b70e.iframe.bundle.js.map +0 -1
- package/docs-build/22.639c6bb4.iframe.bundle.js +0 -22
- package/docs-build/22.639c6bb4.iframe.bundle.js.map +0 -1
- package/docs-build/3.afb0e0a5.iframe.bundle.js +0 -2
- package/docs-build/3.afb0e0a5.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.e956ad2c.iframe.bundle.js +0 -2
- package/docs-build/main~24120820.e956ad2c.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.834c9ace.iframe.bundle.js +0 -8
- package/docs-build/vendors~main~0ad7406a.834c9ace.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~0f485567.7297d057.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~0f485567.7297d057.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~41a6ab2c.19d97527.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~41a6ab2c.19d97527.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.8a8dd47e.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~57c1f6cb.8a8dd47e.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~73914085.2e61c0dc.iframe.bundle.js +0 -293
- package/docs-build/vendors~main~73914085.2e61c0dc.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~9c5b28f6.32356887.iframe.bundle.js +0 -7
- package/docs-build/vendors~main~9c5b28f6.32356887.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b5906859.94dc520a.iframe.bundle.js +0 -21
- package/docs-build/vendors~main~b5906859.94dc520a.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b8f44717.8669cfb8.iframe.bundle.js +0 -89
- package/docs-build/vendors~main~b8f44717.8669cfb8.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~b9cf3951.2a2025c3.iframe.bundle.js +0 -63
- package/docs-build/vendors~main~b9cf3951.2a2025c3.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~d939e436.bb2b0303.iframe.bundle.js +0 -2
- package/docs-build/vendors~main~d939e436.bb2b0303.iframe.bundle.js.map +0 -1
- package/docs-build/vendors~main~f420d588.3481b43e.iframe.bundle.js +0 -107
- package/docs-build/vendors~main~f420d588.3481b43e.iframe.bundle.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare var _default: ({
|
|
2
|
+
id: string;
|
|
3
|
+
type: string;
|
|
4
|
+
filter: (string | string[])[];
|
|
5
|
+
paint: {
|
|
6
|
+
"fill-color": string;
|
|
7
|
+
"fill-outline-color": string;
|
|
8
|
+
"fill-opacity": number;
|
|
9
|
+
"circle-radius"?: undefined;
|
|
10
|
+
"circle-color"?: undefined;
|
|
11
|
+
"line-color"?: undefined;
|
|
12
|
+
"line-width"?: undefined;
|
|
13
|
+
"line-dasharray"?: undefined;
|
|
14
|
+
"circle-opacity"?: undefined;
|
|
15
|
+
};
|
|
16
|
+
layout?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
type: string;
|
|
20
|
+
filter: (string | string[])[];
|
|
21
|
+
paint: {
|
|
22
|
+
"circle-radius": number;
|
|
23
|
+
"circle-color": string;
|
|
24
|
+
"fill-color"?: undefined;
|
|
25
|
+
"fill-outline-color"?: undefined;
|
|
26
|
+
"fill-opacity"?: undefined;
|
|
27
|
+
"line-color"?: undefined;
|
|
28
|
+
"line-width"?: undefined;
|
|
29
|
+
"line-dasharray"?: undefined;
|
|
30
|
+
"circle-opacity"?: undefined;
|
|
31
|
+
};
|
|
32
|
+
layout?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
id: string;
|
|
35
|
+
type: string;
|
|
36
|
+
filter: (string | string[])[];
|
|
37
|
+
layout: {
|
|
38
|
+
"line-cap": string;
|
|
39
|
+
"line-join": string;
|
|
40
|
+
};
|
|
41
|
+
paint: {
|
|
42
|
+
"line-color": string;
|
|
43
|
+
"line-width": number;
|
|
44
|
+
"fill-color"?: undefined;
|
|
45
|
+
"fill-outline-color"?: undefined;
|
|
46
|
+
"fill-opacity"?: undefined;
|
|
47
|
+
"circle-radius"?: undefined;
|
|
48
|
+
"circle-color"?: undefined;
|
|
49
|
+
"line-dasharray"?: undefined;
|
|
50
|
+
"circle-opacity"?: undefined;
|
|
51
|
+
};
|
|
52
|
+
} | {
|
|
53
|
+
id: string;
|
|
54
|
+
type: string;
|
|
55
|
+
filter: (string | string[])[];
|
|
56
|
+
layout: {
|
|
57
|
+
"line-cap": string;
|
|
58
|
+
"line-join": string;
|
|
59
|
+
};
|
|
60
|
+
paint: {
|
|
61
|
+
"line-color": string;
|
|
62
|
+
"line-dasharray": number[];
|
|
63
|
+
"line-width": number;
|
|
64
|
+
"fill-color"?: undefined;
|
|
65
|
+
"fill-outline-color"?: undefined;
|
|
66
|
+
"fill-opacity"?: undefined;
|
|
67
|
+
"circle-radius"?: undefined;
|
|
68
|
+
"circle-color"?: undefined;
|
|
69
|
+
"circle-opacity"?: undefined;
|
|
70
|
+
};
|
|
71
|
+
} | {
|
|
72
|
+
id: string;
|
|
73
|
+
type: string;
|
|
74
|
+
filter: (string | string[])[];
|
|
75
|
+
paint: {
|
|
76
|
+
"circle-radius": number;
|
|
77
|
+
"circle-opacity": number;
|
|
78
|
+
"circle-color": string;
|
|
79
|
+
"fill-color"?: undefined;
|
|
80
|
+
"fill-outline-color"?: undefined;
|
|
81
|
+
"fill-opacity"?: undefined;
|
|
82
|
+
"line-color"?: undefined;
|
|
83
|
+
"line-width"?: undefined;
|
|
84
|
+
"line-dasharray"?: undefined;
|
|
85
|
+
};
|
|
86
|
+
layout?: undefined;
|
|
87
|
+
})[];
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default toDenseArray;
|
|
2
|
+
/**
|
|
3
|
+
* Code from https://github.com/mapbox/mapbox-gl-draw
|
|
4
|
+
* and licensed under ISC
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Derive a dense array (no `undefined`s) from a single value or array.
|
|
8
|
+
*
|
|
9
|
+
* @param {any} x
|
|
10
|
+
* @return {Array<any>}
|
|
11
|
+
*/
|
|
12
|
+
declare function toDenseArray(x: any): Array<any>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default drawUtils;
|
|
2
|
+
declare namespace drawUtils {
|
|
3
|
+
function getMatchingVertices(vertex: any, featureId: any, allFeatures: any, map: any): {
|
|
4
|
+
featureId: any;
|
|
5
|
+
coord_path: string;
|
|
6
|
+
lng: any;
|
|
7
|
+
lat: any;
|
|
8
|
+
}[];
|
|
9
|
+
function getDrawInstance(map: any): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
interface MlFillExtrusionLayerProps {
|
|
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
|
+
* Id of the layer that will be added by this component
|
|
13
|
+
*/
|
|
14
|
+
layerId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Paint properties of the config object that is passed to the MapLibreGl.addLayer call. All
|
|
17
|
+
* available properties are documented in the MapLibreGl documentation
|
|
18
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill-extrusion
|
|
19
|
+
*/
|
|
20
|
+
paint?: object;
|
|
21
|
+
/**
|
|
22
|
+
* Source id of a vector tile source containing the geometries to use for this fill-extrusion
|
|
23
|
+
* layer.
|
|
24
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#source-layer
|
|
25
|
+
*/
|
|
26
|
+
sourceId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Layer id from a vector tile source containing the geometries to use for this fill-extrusion
|
|
29
|
+
* layer.
|
|
30
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#source-layer
|
|
31
|
+
*/
|
|
32
|
+
sourceLayer?: string;
|
|
33
|
+
/**
|
|
34
|
+
* This layer will be hidden for zoom levels lower than defined on this property
|
|
35
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#minzoom
|
|
36
|
+
*/
|
|
37
|
+
minZoom?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Adds a fill extrusion layer to the MapLibre instance reference by props.mapId
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
declare const MlFillExtrusionLayer: {
|
|
44
|
+
(props: MlFillExtrusionLayerProps): JSX.Element;
|
|
45
|
+
defaultProps: {
|
|
46
|
+
mapId: undefined;
|
|
47
|
+
paint: {
|
|
48
|
+
"fill-extrusion-color": string;
|
|
49
|
+
"fill-extrusion-height": {
|
|
50
|
+
property: string;
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
"fill-extrusion-base": {
|
|
54
|
+
property: string;
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
"fill-extrusion-opacity": number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default MlFillExtrusionLayer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlFillExtrusionLayer as component };
|
|
6
|
+
export const argTypes: {};
|
|
7
|
+
export { mapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlFillExtrusionLayer from "./MlFillExtrusionLayer";
|
|
10
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
interface MlFollowGpsProps {
|
|
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
|
+
* By default a dot will be shown on the map at the user's location. Set to false to disable.
|
|
13
|
+
*/
|
|
14
|
+
showUserLocation?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* By default a cone will be shown on the map at the user's location to indicate the device's orientation.
|
|
17
|
+
* Set to false to disable.
|
|
18
|
+
*/
|
|
19
|
+
showOrientation?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* By default, if showUserLocation is true, a transparent circle will be drawn around the user location
|
|
22
|
+
* indicating the accuracy (95% confidence level) of the user's location. Set to false to disable.
|
|
23
|
+
*/
|
|
24
|
+
showAccuracyCircle?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* position circle paint property object, that is passed to the MlGeoJsonLayer responsible for drawing the accuracy circle.
|
|
27
|
+
* Use any available paint prop from layer type "fill".
|
|
28
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
29
|
+
*/
|
|
30
|
+
circlePaint?: any;
|
|
31
|
+
/**
|
|
32
|
+
* Active button font color
|
|
33
|
+
*/
|
|
34
|
+
onColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Inactive button font color
|
|
37
|
+
*/
|
|
38
|
+
offColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Accuracy paint property object, that is passed to the MlGeoJsonLayer responsible for drawing the accuracy circle.
|
|
41
|
+
* Use any available paint prop from layer type "fill".
|
|
42
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
43
|
+
*/
|
|
44
|
+
accuracyPaint?: any;
|
|
45
|
+
/**
|
|
46
|
+
* CSS style object that is applied to the button component
|
|
47
|
+
*/
|
|
48
|
+
style?: any;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Adds a button that makes the map follow the users GPS position using
|
|
52
|
+
* navigator.geolocation.watchPosition if activated
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
declare const MlFollowGps: {
|
|
56
|
+
(props: MlFollowGpsProps): JSX.Element;
|
|
57
|
+
defaultProps: {
|
|
58
|
+
mapId: undefined;
|
|
59
|
+
style: {
|
|
60
|
+
minWidth: string;
|
|
61
|
+
minHeight: string;
|
|
62
|
+
width: string;
|
|
63
|
+
height: string;
|
|
64
|
+
backgroundColor: string;
|
|
65
|
+
borderRadius: string;
|
|
66
|
+
margin: number;
|
|
67
|
+
fontSize: string;
|
|
68
|
+
":hover": {
|
|
69
|
+
backgroundColor: string;
|
|
70
|
+
color: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
onColor: string;
|
|
74
|
+
offColor: string;
|
|
75
|
+
showAccuracyCircle: boolean;
|
|
76
|
+
showUserLocation: boolean;
|
|
77
|
+
showOrientation: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export default MlFollowGps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlFollowGps as component };
|
|
6
|
+
export const argTypes: {};
|
|
7
|
+
export { mapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlFollowGps from "./MlFollowGps";
|
|
10
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface MlGPXViewerProps {
|
|
2
|
+
/**
|
|
3
|
+
* Id of the target MapLibre instance in mapHook
|
|
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
|
+
* Prefix of the component id this component uses when adding elements to the MapLibreGl-instance
|
|
13
|
+
*/
|
|
14
|
+
idPrefix?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the layers layout-property "visibility" to "none" if false or "visible" if true
|
|
17
|
+
*/
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* MlGPXViewer returns a dropzone and a button to load a GPX Track into the map.
|
|
22
|
+
*/
|
|
23
|
+
declare const MlGPXViewer: {
|
|
24
|
+
(props: MlGPXViewerProps): JSX.Element;
|
|
25
|
+
defaultProps: {
|
|
26
|
+
visible: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default MlGPXViewer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlGPXViewer 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 MlGPXViewer from "./MlGPXViewer";
|
|
16
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FeatureCollection } from '@turf/turf';
|
|
3
|
+
declare type ContextProps = {
|
|
4
|
+
data: FeatureCollection;
|
|
5
|
+
setData: Function;
|
|
6
|
+
getEmptyFeatureCollection: Function;
|
|
7
|
+
};
|
|
8
|
+
declare const GeoJsonContext: React.Context<Partial<ContextProps>>;
|
|
9
|
+
export declare const GeoJsonContextProvider: React.Provider<Partial<ContextProps>>;
|
|
10
|
+
export default GeoJsonContext;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Feature, FeatureCollection } from "@turf/turf";
|
|
2
|
+
declare type MlGeoJsonLayerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the target MapLibre instance in mapContext
|
|
5
|
+
*/
|
|
6
|
+
mapId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
9
|
+
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
10
|
+
*/
|
|
11
|
+
insertBeforeLayer?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the new layer and source that are added to the MapLibre instance
|
|
14
|
+
*/
|
|
15
|
+
layerId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* GeoJSON data that is supposed to be rendered by this component.
|
|
18
|
+
*/
|
|
19
|
+
geojson: Feature | FeatureCollection | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Type of the layer that will be added to the MapLibre instance.
|
|
22
|
+
* Possible values: "line", "circle", "fill"
|
|
23
|
+
*/
|
|
24
|
+
type?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Paint 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
|
+
paint?: any;
|
|
33
|
+
/**
|
|
34
|
+
* Layout property object, that is passed to the addLayer call.
|
|
35
|
+
* Possible props depend on the layer type.
|
|
36
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#line
|
|
37
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#circle
|
|
38
|
+
* https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#fill
|
|
39
|
+
*/
|
|
40
|
+
layout?: any;
|
|
41
|
+
/**
|
|
42
|
+
* Javascript object that is spread into the addLayer commands first parameter.
|
|
43
|
+
*/
|
|
44
|
+
options?: any;
|
|
45
|
+
/**
|
|
46
|
+
* Javascript object with optional properties "fill", "line", "circle" to override implicit layer type default paint properties.
|
|
47
|
+
*/
|
|
48
|
+
defaultPaintOverrides?: any;
|
|
49
|
+
/**
|
|
50
|
+
* Hover event handler that is executed whenever a geometry rendered by this component is hovered.
|
|
51
|
+
*/
|
|
52
|
+
onHover?: Function;
|
|
53
|
+
/**
|
|
54
|
+
* Click event handler that is executed whenever a geometry rendered by this component is clicked.
|
|
55
|
+
*/
|
|
56
|
+
onClick?: Function;
|
|
57
|
+
/**
|
|
58
|
+
* Leave event handler that is executed whenever a geometry rendered by this component is
|
|
59
|
+
* left/unhovered.
|
|
60
|
+
*/
|
|
61
|
+
onLeave?: Function;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Adds source and layer of types "line", "fill" or "circle" to display GeoJSON data on the map.
|
|
65
|
+
*
|
|
66
|
+
* @component
|
|
67
|
+
*/
|
|
68
|
+
declare const MlGeoJsonLayer: (props: MlGeoJsonLayerProps) => JSX.Element;
|
|
69
|
+
export default MlGeoJsonLayer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const Linestring: any;
|
|
3
|
+
export const Polygon: any;
|
|
4
|
+
export const DefaultPaintOverrides: any;
|
|
5
|
+
declare namespace storyoptions {
|
|
6
|
+
export const title: string;
|
|
7
|
+
export { MlGeoJsonLayer as component };
|
|
8
|
+
export const argTypes: {};
|
|
9
|
+
export { mapContextDecorator as decorators };
|
|
10
|
+
}
|
|
11
|
+
import MlGeoJsonLayer from "./MlGeoJsonLayer";
|
|
12
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface MlImageMarkerLayerProps {
|
|
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
|
+
* Id of the layer that will be added by this component to the maplibre-gl instance
|
|
13
|
+
*/
|
|
14
|
+
layerId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Id of the image that will be added by this component to the maplibre-gl instance
|
|
17
|
+
*/
|
|
18
|
+
imageId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Path or URL to a supported raster image
|
|
21
|
+
*/
|
|
22
|
+
imgSrc?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Javascript object that is passed the addLayer command as first parameter.
|
|
25
|
+
*/
|
|
26
|
+
options?: any;
|
|
27
|
+
}
|
|
28
|
+
declare const MlImageMarkerLayer: (props: MlImageMarkerLayerProps) => JSX.Element;
|
|
29
|
+
export default MlImageMarkerLayer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlImageMarkerLayer as component };
|
|
6
|
+
export const argTypes: {};
|
|
7
|
+
export { mapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlImageMarkerLayer from "./MlImageMarkerLayer";
|
|
10
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface MlLayerProps {
|
|
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
|
+
* Id of the layer that will be added by this component to the maplibre-gl instance
|
|
13
|
+
*/
|
|
14
|
+
layerId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Javascript object that is passed the addLayer command as first parameter.
|
|
17
|
+
*/
|
|
18
|
+
options?: any;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Basic layer component that create a layer in a MapLibre-gl instance and keeps it updated according to it attribute configuration.
|
|
22
|
+
*
|
|
23
|
+
* @category Map components
|
|
24
|
+
*/
|
|
25
|
+
declare const MlLayer: (props: MlLayerProps) => JSX.Element;
|
|
26
|
+
export default MlLayer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlLayer as component };
|
|
6
|
+
export const argTypes: {};
|
|
7
|
+
export { mapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlLayer from "./MlLayer";
|
|
10
|
+
import mapContextDecorator from "../../decorators/MapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
interface MlLayerMagnifyProps {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the first MapLibre instance
|
|
5
|
+
*/
|
|
6
|
+
map1Id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id of the second MapLibre instance
|
|
9
|
+
*/
|
|
10
|
+
map2Id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the "magnifier"-circle
|
|
13
|
+
*/
|
|
14
|
+
magnifierRadius?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* Hides the MapLibreMap referenced by props.map2Id except for the "magnifier"-circle that reveals
|
|
19
|
+
* the map and can be dragged around on top of the MapLibreMap referenced by props.map1Id
|
|
20
|
+
*/
|
|
21
|
+
declare const MlLayerMagnify: {
|
|
22
|
+
(props: MlLayerMagnifyProps): JSX.Element;
|
|
23
|
+
defaultProps: {
|
|
24
|
+
magnifierRadius: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default MlLayerMagnify;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export { MlLayerMagnify as component };
|
|
6
|
+
export const argTypes: {};
|
|
7
|
+
export { multiMapContextDecorator as decorators };
|
|
8
|
+
}
|
|
9
|
+
import MlLayerMagnify from "./MlLayerMagnify";
|
|
10
|
+
import multiMapContextDecorator from "../../decorators/MultiMapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./style.css";
|
|
2
|
+
interface MlLayerSwipeProps {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the first MapLibre instance.
|
|
5
|
+
*/
|
|
6
|
+
map1Id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id of the second MapLibre instance.
|
|
9
|
+
*/
|
|
10
|
+
map2Id: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* creates a split view of 2 synchronised maplibre instances
|
|
14
|
+
*/
|
|
15
|
+
declare const MlLayerSwipe: (props: MlLayerSwipeProps) => JSX.Element;
|
|
16
|
+
export default MlLayerSwipe;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default storyoptions;
|
|
2
|
+
export const ExampleConfig: any;
|
|
3
|
+
declare namespace storyoptions {
|
|
4
|
+
export const title: string;
|
|
5
|
+
export const name: string;
|
|
6
|
+
export { MlLayerSwipe as component };
|
|
7
|
+
export const argTypes: {};
|
|
8
|
+
export { multiMapContextDecorator as decorators };
|
|
9
|
+
}
|
|
10
|
+
import MlLayerSwipe from "./MlLayerSwipe";
|
|
11
|
+
import multiMapContextDecorator from "../../decorators/MultiMapContextDecorator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default MlLayerSwitcher;
|
|
2
|
+
/**
|
|
3
|
+
* @component
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
declare function MlLayerSwitcher(props: any): JSX.Element;
|
|
8
|
+
declare namespace MlLayerSwitcher {
|
|
9
|
+
namespace propTypes {
|
|
10
|
+
const baseSourceConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
11
|
+
label: PropTypes.Requireable<string>;
|
|
12
|
+
layers: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
13
|
+
layerId: PropTypes.Validator<string>;
|
|
14
|
+
src: PropTypes.Requireable<string>;
|
|
15
|
+
label: PropTypes.Validator<string>;
|
|
16
|
+
}> | null | undefined)[]>;
|
|
17
|
+
}>>;
|
|
18
|
+
const detailLayerConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
19
|
+
label: PropTypes.Requireable<string>;
|
|
20
|
+
layers: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
21
|
+
layerId: PropTypes.Validator<string>;
|
|
22
|
+
src: PropTypes.Requireable<string>;
|
|
23
|
+
label: PropTypes.Validator<string>;
|
|
24
|
+
linkedTo: PropTypes.Requireable<string>;
|
|
25
|
+
}> | null | undefined)[]>;
|
|
26
|
+
}>>;
|
|
27
|
+
const mapId: PropTypes.Requireable<string>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
import PropTypes from "prop-types";
|