@m4l/gclick 0.3.6 → 0.3.7
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/components/ReportsViewer/hooks/useSheetContent/useSheetContent.d.ts +1 -1
- package/components/formatters/CourseFormatter/CourseFormatter.d.ts.map +1 -0
- package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.js +2 -2
- package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/constants.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/dictionary.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/helper.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/index.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +4 -0
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +1 -0
- package/components/formatters/CourseFormatter/types.d.ts.map +1 -0
- package/components/formatters/index.d.ts +2 -0
- package/components/formatters/index.d.ts.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts.map +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.js +51 -53
- package/components/maps/components/GpsMap/GpsMap.js +16 -16
- package/components/maps/components/GpsMap/GpsMap.styles.d.ts.map +1 -1
- package/components/maps/components/GpsMap/GpsMap.styles.js +2 -0
- package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts +38 -0
- package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/constants.d.ts +36 -0
- package/components/maps/components/GpsMap/__testing__/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/fixtures.d.ts +54 -0
- package/components/maps/components/GpsMap/__testing__/fixtures.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/index.d.ts +5 -0
- package/components/maps/components/GpsMap/__testing__/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts +51 -0
- package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts.map +1 -0
- package/components/maps/components/GpsMap/classes/index.d.ts +1 -2
- package/components/maps/components/GpsMap/classes/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +6 -10
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts +21 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts.map +1 -0
- package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js +27 -0
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +113 -139
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +73 -52
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +4 -4
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +192 -209
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -4
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +46 -66
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +2 -10
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts +17 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts.map +1 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js +53 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts +3 -0
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/index.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/debug/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → debug/markerDecimation}/GridDebugVisualization.d.ts +1 -1
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts +4 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts +71 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts +7 -0
- package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/index.d.ts +5 -4
- package/components/maps/components/GpsMap/hooks/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +2 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js +10 -11
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.js +4 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter}/constants.js +2 -3
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts} +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.js → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.js} +4 -2
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.js +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +22 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts +2 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/types.d.ts +1 -1
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts +9 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js +16 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts +16 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.js +75 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts +13 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts.map +1 -0
- package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.js +21 -0
- package/components/maps/components/GpsMap/popups/index.d.ts +0 -1
- package/components/maps/components/GpsMap/popups/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/popups/types.d.ts +4 -0
- package/components/maps/components/GpsMap/popups/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/{index.js → Controls.js} +5 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/{index.js → ButtonsToolsList.js} +9 -8
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +31 -20
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts +15 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.js +90 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts +3 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.js +35 -38
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +2 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +31 -25
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +1 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.js +22 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.js +10 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.js +7 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/{Layers/index.d.ts → LayersContainer/LayersContainer.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.js +23 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.d.ts → LayersContainer/subcomponents/Layer/Layer.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.js → LayersContainer/subcomponents/Layer/Layer.js} +8 -8
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts +3 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.js +51 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/types.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.js +30 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +1 -6
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts +10 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -9
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts.map +1 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +1 -6
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts.map +1 -1
- package/components/maps/components/GpsMap/types.d.ts +18 -0
- package/components/maps/components/GpsMap/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +1 -1
- package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +11 -10
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +5 -5
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.js +6 -6
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts +14 -6
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +32 -40
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +8 -7
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.js +23 -24
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +37 -37
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +36 -35
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts.map +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts.map +1 -1
- package/formatters/index.d.ts +1 -1
- package/formatters/index.d.ts.map +1 -1
- package/index.js +124 -126
- package/internal/storybookRuntime.d.ts +27 -0
- package/internal/storybookRuntime.d.ts.map +1 -0
- package/internal/storybookRuntime.js +19 -0
- package/package.json +3 -3
- package/components/DeviceStatus/dictionary.js +0 -8
- package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +0 -9
- package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts.map +0 -1
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +0 -2
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +0 -9
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +0 -7
- package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/GridDebugVisualization.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts +0 -6
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +0 -22
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts +0 -84
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.d.ts.map +0 -1
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.js +0 -83
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts +0 -6
- package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +0 -8
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +0 -32
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +0 -3
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +0 -146
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +0 -17
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +0 -20
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +0 -3
- package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +0 -34
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +0 -55
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +0 -14
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +0 -4
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +0 -7
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +0 -111
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +0 -18
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +0 -6
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +0 -7
- package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +0 -11
- package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.js +0 -18
- package/components/maps/components/GpsMap/subcomponents/Layers/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/index.js +0 -21
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +0 -14
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +0 -11
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.js +0 -29
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/types.d.ts.map +0 -1
- package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +0 -30
- package/formatters/CourseFormatter/CourseFormatter.d.ts.map +0 -1
- package/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +0 -1
- package/formatters/CourseFormatter/constants.d.ts.map +0 -1
- package/formatters/CourseFormatter/dictionary.d.ts.map +0 -1
- package/formatters/CourseFormatter/helper.d.ts.map +0 -1
- package/formatters/CourseFormatter/index.d.ts.map +0 -1
- package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +0 -1
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -4
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +0 -1
- package/formatters/CourseFormatter/types.d.ts.map +0 -1
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/constants.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/constants.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/dictionary.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/dictionary.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/helper.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/helper.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/index.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterSlots.js +0 -0
- /package/{formatters → components/formatters}/CourseFormatter/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation}/useFilterDecimation.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/{index.js → MeasureData.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/{index.js → MyActions.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.js → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/types.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/{index.js → TileLayerGoogle.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/{index.js → TileLayerOthers.js} +0 -0
|
@@ -1,238 +1,221 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { FALLBACK_SVG as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
properties: p.properties,
|
|
29
|
-
popupRender: t.hashLayers[s].popupComponent,
|
|
30
|
-
popupOptions: t.hashLayers[s].popupOptions
|
|
1
|
+
import { jsx as a, jsxs as g, Fragment as v } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import W, { useState as w, useEffect as H, useCallback as y } from "react";
|
|
3
|
+
import { Circle as I, Polyline as B, Polygon as N, GeoJSON as U } from "react-leaflet";
|
|
4
|
+
import { shallow as f } from "zustand/shallow";
|
|
5
|
+
import { useMapStore as h } from "../../hooks/useMapStore/index.js";
|
|
6
|
+
import { MarkerIconLabel as b } from "../MarkerIconLabel/index.js";
|
|
7
|
+
import { MARKER_COLOR_DEFAULT as L, LABEL_FILLCOLOR_DEFAULT as x, LABEL_COLOR_DEFAULT as G, SVG_ICON_DEFAULT as J } from "../../constants.js";
|
|
8
|
+
import { FALLBACK_SVG as K } from "./constants.js";
|
|
9
|
+
import { MarkerIconLabelWithPopup as V } from "../MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js";
|
|
10
|
+
import { PolylineWithArrows as q } from "../../pluginLayers/PolylineWithArrows/index.js";
|
|
11
|
+
function z(C = {}) {
|
|
12
|
+
const { popupRender: u, popupOptions: P } = C, m = (A) => {
|
|
13
|
+
const { id: F, layerId: s } = A, e = h((r) => {
|
|
14
|
+
const t = r.hashLayers[s].geoJsonObject;
|
|
15
|
+
if (!t)
|
|
16
|
+
return null;
|
|
17
|
+
if (t.object.type === "Feature")
|
|
18
|
+
return {
|
|
19
|
+
id: t.object.id,
|
|
20
|
+
geometry: t.object.geometry,
|
|
21
|
+
properties: t.object.properties
|
|
22
|
+
};
|
|
23
|
+
const i = t.object.features.find((o) => o.id === F);
|
|
24
|
+
return i ? {
|
|
25
|
+
id: i.id,
|
|
26
|
+
geometry: i.geometry,
|
|
27
|
+
properties: i.properties
|
|
31
28
|
} : null;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const { iconUrl:
|
|
29
|
+
}, f), { addLayerDataToFeature: c } = h((r) => r.mapActions, f), [p, T] = w(null);
|
|
30
|
+
H(() => {
|
|
31
|
+
if (!e || e.geometry?.type !== "Point" || e.properties?.subType !== "Marker" && e.properties?.subType !== void 0)
|
|
32
|
+
return;
|
|
33
|
+
const { iconUrl: r, markerColor: t = L } = e.properties ?? {};
|
|
37
34
|
(async () => {
|
|
38
|
-
if (
|
|
35
|
+
if (p && p.path === r && p.color === t)
|
|
39
36
|
return;
|
|
40
37
|
let o;
|
|
41
|
-
if (
|
|
38
|
+
if (r)
|
|
42
39
|
try {
|
|
43
|
-
o = await fetch(
|
|
40
|
+
o = await fetch(r).then((n) => n.text());
|
|
44
41
|
} catch {
|
|
45
|
-
o =
|
|
42
|
+
o = K;
|
|
46
43
|
}
|
|
47
|
-
o || (o =
|
|
48
|
-
color:
|
|
49
|
-
path:
|
|
44
|
+
o || (o = J), o = "data:image/svg+xml;base64," + btoa((o || "").replace(/#1E96DC/g, t)), T({
|
|
45
|
+
color: t,
|
|
46
|
+
path: r,
|
|
50
47
|
data: o
|
|
51
48
|
});
|
|
52
49
|
})();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
50
|
+
}, [e, p]);
|
|
51
|
+
const R = y((r) => {
|
|
52
|
+
if (!e)
|
|
53
|
+
return;
|
|
54
|
+
const t = {
|
|
55
|
+
boundsNW: r.target?._latlng,
|
|
56
|
+
boundsSE: r.target?._latlng,
|
|
57
|
+
getTarget: () => r.target
|
|
58
|
+
};
|
|
59
|
+
c(s, e.id, t);
|
|
60
|
+
}, [c, e, s]), d = y((r) => {
|
|
61
|
+
if (!e)
|
|
62
|
+
return;
|
|
63
|
+
const t = {
|
|
64
|
+
boundsNW: r.target.getBounds().getNorthWest(),
|
|
65
|
+
boundsSE: r.target.getBounds().getSouthEast(),
|
|
66
|
+
getTarget: () => r.target
|
|
67
|
+
};
|
|
68
|
+
c(s, e.id, t);
|
|
69
|
+
}, [c, e, s]);
|
|
71
70
|
if (!e)
|
|
72
|
-
return;
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// target: e.target,
|
|
71
|
+
return null;
|
|
72
|
+
const l = {
|
|
73
|
+
featureId: e.id
|
|
74
|
+
}, E = {
|
|
75
|
+
layerId: s,
|
|
76
|
+
...l
|
|
79
77
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
78
|
+
if (e.geometry?.type === "Point") {
|
|
79
|
+
const [r, t] = e.geometry.coordinates;
|
|
80
|
+
if (e.properties?.subType === "Marker" || e.properties?.subType === void 0) {
|
|
81
|
+
const {
|
|
82
|
+
iconUrl: i,
|
|
83
|
+
iconRotate: o = 0,
|
|
84
|
+
scaleIcon: n = 1,
|
|
85
|
+
iconHeight: S,
|
|
86
|
+
iconWidth: k,
|
|
87
|
+
label: M,
|
|
88
|
+
markerColor: Q = L,
|
|
89
|
+
labelBkColor: O = x,
|
|
90
|
+
labelColor: _ = G,
|
|
91
|
+
offsetLeftTop: D = [42, 0],
|
|
92
|
+
...j
|
|
93
|
+
} = e.properties;
|
|
94
|
+
return i && !p ? null : /* @__PURE__ */ a(
|
|
95
|
+
V,
|
|
96
|
+
{
|
|
97
|
+
position: { lat: t, lng: r },
|
|
98
|
+
label: M,
|
|
99
|
+
iconSrc: p?.data,
|
|
100
|
+
iconScale: n,
|
|
101
|
+
iconRotate: o,
|
|
102
|
+
width: k,
|
|
103
|
+
height: S,
|
|
104
|
+
fillColor: O,
|
|
105
|
+
color: _,
|
|
106
|
+
offsetLeftTop: D,
|
|
107
|
+
draggable: !1,
|
|
108
|
+
eventHandlers: {
|
|
109
|
+
add: R
|
|
110
|
+
},
|
|
111
|
+
popupRender: u,
|
|
112
|
+
popupOptions: P,
|
|
113
|
+
properties: e.properties,
|
|
114
|
+
...j,
|
|
115
|
+
...E
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
if (e.properties?.subType === "Circle" && e.properties?.radius) {
|
|
120
|
+
const { subType: i, radius: o, ...n } = e.properties;
|
|
121
|
+
return /* @__PURE__ */ g(v, { children: [
|
|
122
|
+
/* @__PURE__ */ a(
|
|
123
|
+
I,
|
|
124
|
+
{
|
|
125
|
+
center: { lat: t, lng: r },
|
|
126
|
+
radius: e.properties.radius,
|
|
127
|
+
eventHandlers: {
|
|
128
|
+
add: d
|
|
129
|
+
},
|
|
130
|
+
...n,
|
|
131
|
+
...l
|
|
132
|
+
},
|
|
133
|
+
Math.random()
|
|
134
|
+
),
|
|
135
|
+
e.properties.label && /* @__PURE__ */ a(
|
|
136
|
+
b,
|
|
137
|
+
{
|
|
138
|
+
position: [t + e.properties.radius / 111319, r],
|
|
139
|
+
...e.properties.label
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (e.geometry?.type === "LineString") {
|
|
146
|
+
const r = e.geometry.coordinates.map(
|
|
147
|
+
(t) => [t[1], t[0]]
|
|
148
|
+
);
|
|
149
|
+
return e.properties?.subType === "PolylineWithArrows" ? /* @__PURE__ */ a(
|
|
150
|
+
q,
|
|
151
|
+
{
|
|
152
|
+
positions: r,
|
|
153
|
+
stroke: !0,
|
|
154
|
+
weight: 10,
|
|
155
|
+
eventHandlers: {
|
|
156
|
+
add: d
|
|
157
|
+
},
|
|
158
|
+
dashArray: "20 30",
|
|
159
|
+
...e.properties,
|
|
160
|
+
...l
|
|
161
|
+
},
|
|
162
|
+
Math.random()
|
|
163
|
+
) : /* @__PURE__ */ a(
|
|
164
|
+
B,
|
|
107
165
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
iconScale: i,
|
|
112
|
-
iconRotate: o,
|
|
113
|
-
width: T,
|
|
114
|
-
height: O,
|
|
115
|
-
fillColor: E,
|
|
116
|
-
color: R,
|
|
117
|
-
offsetLeftTop: F,
|
|
118
|
-
draggable: !1,
|
|
166
|
+
positions: r,
|
|
167
|
+
stroke: !0,
|
|
168
|
+
weight: 10,
|
|
119
169
|
eventHandlers: {
|
|
120
|
-
add:
|
|
170
|
+
add: d
|
|
121
171
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
172
|
+
dashArray: "20 30",
|
|
173
|
+
...e.properties,
|
|
174
|
+
...l
|
|
175
|
+
},
|
|
176
|
+
Math.random()
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
if (e.geometry?.type === "Polygon") {
|
|
180
|
+
const r = e.geometry.coordinates.map(
|
|
181
|
+
(i) => i.map(([o, n]) => [n, o])
|
|
128
182
|
);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
183
|
+
let t = null;
|
|
184
|
+
return r[0].forEach((i) => {
|
|
185
|
+
const [o, n] = i;
|
|
186
|
+
(!t || o >= t[0] && n >= t[1]) && (t = i);
|
|
187
|
+
}), t = t || r[0][0], /* @__PURE__ */ g(W.Fragment, { children: [
|
|
188
|
+
/* @__PURE__ */ a(
|
|
189
|
+
N,
|
|
134
190
|
{
|
|
135
|
-
|
|
136
|
-
|
|
191
|
+
positions: r,
|
|
192
|
+
opacity: 1,
|
|
137
193
|
eventHandlers: {
|
|
138
|
-
add:
|
|
139
|
-
// remove: () => {
|
|
140
|
-
// removeLefletLayerToFeature(layerId, feature.id)
|
|
141
|
-
// },
|
|
194
|
+
add: d
|
|
142
195
|
},
|
|
143
|
-
...
|
|
144
|
-
...
|
|
145
|
-
},
|
|
146
|
-
Math.random()
|
|
147
|
-
),
|
|
148
|
-
e.properties?.label && /* @__PURE__ */ n(
|
|
149
|
-
c,
|
|
150
|
-
{
|
|
151
|
-
position: [r + e.properties.radius / 111319, t],
|
|
152
|
-
...e.properties.label
|
|
196
|
+
...e.properties,
|
|
197
|
+
...l
|
|
153
198
|
}
|
|
154
|
-
)
|
|
199
|
+
),
|
|
200
|
+
e.properties.label && /* @__PURE__ */ a(b, { position: t, ...e.properties.label })
|
|
155
201
|
] });
|
|
156
202
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(r) => [r[1], r[0]]
|
|
160
|
-
);
|
|
161
|
-
return e.properties?.subType === "PolylineWithArrows" ? /* @__PURE__ */ n(
|
|
162
|
-
W,
|
|
163
|
-
{
|
|
164
|
-
positions: t,
|
|
165
|
-
stroke: !0,
|
|
166
|
-
weight: 10,
|
|
167
|
-
eventHandlers: {
|
|
168
|
-
add: u
|
|
169
|
-
// remove: () => {;
|
|
170
|
-
// removeLefletLayerToFeature(layerId, feature.id)
|
|
171
|
-
// },
|
|
172
|
-
},
|
|
173
|
-
dashArray: "20 30",
|
|
174
|
-
...e.properties,
|
|
175
|
-
...a
|
|
176
|
-
},
|
|
177
|
-
Math.random()
|
|
178
|
-
) : /* @__PURE__ */ n(
|
|
179
|
-
D,
|
|
203
|
+
return e.geometry?.type === "MultiPolygon" ? /* @__PURE__ */ a(
|
|
204
|
+
U,
|
|
180
205
|
{
|
|
181
|
-
|
|
182
|
-
stroke: !0,
|
|
183
|
-
weight: 10,
|
|
206
|
+
data: e.geometry,
|
|
184
207
|
eventHandlers: {
|
|
185
|
-
add:
|
|
186
|
-
// remove: () => {
|
|
187
|
-
// removeLefletLayerToFeature(layerId, feature.id)
|
|
188
|
-
// },
|
|
208
|
+
add: d
|
|
189
209
|
},
|
|
190
|
-
dashArray: "20 30",
|
|
191
210
|
...e.properties,
|
|
192
|
-
...
|
|
193
|
-
},
|
|
194
|
-
Math.random()
|
|
195
|
-
);
|
|
196
|
-
} else if (e.geometry?.type === "Polygon") {
|
|
197
|
-
const t = e.geometry.coordinates.map(
|
|
198
|
-
(p) => p.map(([o, i]) => [i, o])
|
|
199
|
-
);
|
|
200
|
-
let r = null;
|
|
201
|
-
return t[0].forEach((p) => {
|
|
202
|
-
const [o, i] = p;
|
|
203
|
-
(!r || o >= r[0] && i >= r[1]) && (r = p);
|
|
204
|
-
}), r = r || t[0][0], /* @__PURE__ */ g(k.Fragment, { children: [
|
|
205
|
-
/* @__PURE__ */ n(
|
|
206
|
-
M,
|
|
207
|
-
{
|
|
208
|
-
positions: t,
|
|
209
|
-
opacity: 1,
|
|
210
|
-
eventHandlers: {
|
|
211
|
-
add: u
|
|
212
|
-
// remove: () => {
|
|
213
|
-
// removeLefletLayerToFeature(layerId, feature.id)
|
|
214
|
-
// },
|
|
215
|
-
},
|
|
216
|
-
...e.properties,
|
|
217
|
-
...a
|
|
218
|
-
}
|
|
219
|
-
),
|
|
220
|
-
e?.properties.label && /* @__PURE__ */ n(c, { position: r, ...e?.properties.label })
|
|
221
|
-
] });
|
|
222
|
-
} else if (e.geometry?.type === "MultiPolygon")
|
|
223
|
-
return /* @__PURE__ */ n(
|
|
224
|
-
j,
|
|
225
|
-
{
|
|
226
|
-
data: e.geometry,
|
|
227
|
-
...e.properties,
|
|
228
|
-
...a,
|
|
229
|
-
eventHandlers: {
|
|
230
|
-
add: u
|
|
231
|
-
}
|
|
211
|
+
...l
|
|
232
212
|
}
|
|
233
|
-
);
|
|
234
|
-
|
|
235
|
-
|
|
213
|
+
) : null;
|
|
214
|
+
};
|
|
215
|
+
return m.displayName = u ? "CommonFeatureRenderWithPopup" : "CommonFeatureRender", m;
|
|
216
|
+
}
|
|
217
|
+
const ae = z();
|
|
236
218
|
export {
|
|
237
|
-
|
|
219
|
+
ae as CommonFeatureRender,
|
|
220
|
+
z as createCommonFeatureRender
|
|
238
221
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FeatureDescriptionProps } from './types';
|
|
2
|
+
import { default as L } from 'leaflet';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Renders a generic marker with an icon and an optional text label.
|
|
5
|
+
* This component is intentionally visual-only so higher-level renderers can
|
|
6
|
+
* decide whether they need popup behavior, selection behavior, or both.
|
|
6
7
|
*/
|
|
7
|
-
export declare const MarkerIconLabel: (
|
|
8
|
+
export declare const MarkerIconLabel: import('react').ForwardRefExoticComponent<FeatureDescriptionProps & import('react').RefAttributes<L.Marker<any>>>;
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,eAAe,mHA2C3B,CAAC"}
|
|
@@ -1,68 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
eventHandlers: {
|
|
47
|
-
...L,
|
|
48
|
-
click: (s) => {
|
|
49
|
-
},
|
|
50
|
-
popupopen: S,
|
|
51
|
-
popupclose: _
|
|
52
|
-
},
|
|
53
|
-
...R,
|
|
54
|
-
children: t && o && /* @__PURE__ */ l(
|
|
55
|
-
t,
|
|
56
|
-
{
|
|
57
|
-
isOpen: I,
|
|
58
|
-
properties: o,
|
|
59
|
-
position: n,
|
|
60
|
-
popupOptions: C
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
};
|
|
1
|
+
import { jsx as L } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { Marker as k } from "react-leaflet";
|
|
4
|
+
import { FeatureDivIconLabel as I } from "./subcomponents/FeatureDivIconLabel/index.js";
|
|
5
|
+
const D = d(
|
|
6
|
+
function(o, r) {
|
|
7
|
+
const {
|
|
8
|
+
position: e,
|
|
9
|
+
draggable: t = !0,
|
|
10
|
+
iconSrc: i,
|
|
11
|
+
iconRotate: n,
|
|
12
|
+
iconScale: c,
|
|
13
|
+
label: a,
|
|
14
|
+
fillColor: l,
|
|
15
|
+
color: f,
|
|
16
|
+
width: m,
|
|
17
|
+
height: s,
|
|
18
|
+
offsetLeftTop: p,
|
|
19
|
+
children: b,
|
|
20
|
+
...h
|
|
21
|
+
} = o, u = I({
|
|
22
|
+
iconSrc: i,
|
|
23
|
+
iconRotate: n,
|
|
24
|
+
iconScale: c,
|
|
25
|
+
label: a,
|
|
26
|
+
width: m,
|
|
27
|
+
height: s,
|
|
28
|
+
fillColor: l,
|
|
29
|
+
color: f,
|
|
30
|
+
offsetLeftTop: p
|
|
31
|
+
});
|
|
32
|
+
return /* @__PURE__ */ L(
|
|
33
|
+
k,
|
|
34
|
+
{
|
|
35
|
+
ref: r,
|
|
36
|
+
position: e,
|
|
37
|
+
draggable: t,
|
|
38
|
+
riseOnHover: !0,
|
|
39
|
+
icon: u,
|
|
40
|
+
...h,
|
|
41
|
+
children: b
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
);
|
|
66
46
|
export {
|
|
67
|
-
|
|
47
|
+
D as MarkerIconLabel
|
|
68
48
|
};
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { MarkerProps } from 'react-leaflet';
|
|
2
3
|
import { DivIconFeatureDescriptionProps } from './subcomponents/FeatureDivIconLabel/types';
|
|
3
|
-
import { MapPopupComponent } from '../../popups/types';
|
|
4
|
-
import { GeoJsonProperties } from '../../contexts/MapContext/types';
|
|
5
|
-
import { PopupOptions } from 'leaflet';
|
|
6
|
-
export interface MyPopupProps extends PopupOptions {
|
|
7
|
-
onOpen?: (properties: GeoJsonProperties) => void;
|
|
8
|
-
}
|
|
9
|
-
export type FeaturePopupOptions = Omit<MyPopupProps, 'content'>;
|
|
10
4
|
export interface FeatureDescriptionProps extends DivIconFeatureDescriptionProps, Omit<MarkerProps, 'children'> {
|
|
11
5
|
withPoint?: boolean;
|
|
12
|
-
|
|
13
|
-
popupRender?: MapPopupComponent;
|
|
14
|
-
popupOptions?: FeaturePopupOptions;
|
|
6
|
+
children?: ReactNode;
|
|
15
7
|
}
|
|
16
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,MAAM,WAAW,uBACf,SAAQ,8BAA8B,EACpC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FeatureId, GeoJsonProperties } from '../../contexts/MapContext/types';
|
|
2
|
+
import { MapPopupRenderConfig } from '../../popups/types';
|
|
3
|
+
import { FeatureDescriptionProps } from '../MarkerIconLabel/types';
|
|
4
|
+
export type MarkerIconLabelWithPopupProps = FeatureDescriptionProps & MapPopupRenderConfig & {
|
|
5
|
+
layerId: string;
|
|
6
|
+
featureId: FeatureId;
|
|
7
|
+
properties?: GeoJsonProperties;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Wraps the generic `MarkerIconLabel` visual primitive with popup lifecycle
|
|
11
|
+
* behavior and store-driven popup opening.
|
|
12
|
+
*
|
|
13
|
+
* Popup persistence remains a popup-level concern through `popupOptions`
|
|
14
|
+
* such as `autoClose` and `closeOnClick`, not part of the selection action.
|
|
15
|
+
*/
|
|
16
|
+
export declare function MarkerIconLabelWithPopup(props: MarkerIconLabelWithPopupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=MarkerIconLabelWithPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkerIconLabelWithPopup.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAIxE,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,GAAG,oBAAoB,GAAG;IAC3F,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,oDA+E5E"}
|