@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as L, useRef as b, useCallback as c, useEffect as M } from "react";
|
|
3
|
+
import { useMapStore as h } from "../../hooks/useMapStore/index.js";
|
|
4
|
+
import { MarkerIconLabel as q } from "../MarkerIconLabel/index.js";
|
|
5
|
+
function S(i) {
|
|
6
|
+
const {
|
|
7
|
+
layerId: f,
|
|
8
|
+
featureId: d,
|
|
9
|
+
properties: e,
|
|
10
|
+
popupRender: P,
|
|
11
|
+
popupOptions: m,
|
|
12
|
+
eventHandlers: I,
|
|
13
|
+
position: t,
|
|
14
|
+
...O
|
|
15
|
+
} = i, [v, u] = L(!1), s = b(null), p = P, { onOpenPopup: n, onClosePopup: r } = e || {
|
|
16
|
+
onOpenPopup: void 0,
|
|
17
|
+
onClosePopup: void 0
|
|
18
|
+
}, l = h((C) => {
|
|
19
|
+
const o = C.selectedFeature;
|
|
20
|
+
return !o || !o.openPopup ? null : o.layerId === f && o.featureId === d ? o.requestId : null;
|
|
21
|
+
}), R = c(() => {
|
|
22
|
+
n && e && n(e), u(!0);
|
|
23
|
+
}, [n, e]), k = c(() => {
|
|
24
|
+
r && e && r(e), u(!1);
|
|
25
|
+
}, [r, e]);
|
|
26
|
+
return M(() => {
|
|
27
|
+
l === null || !p || s.current?.openPopup();
|
|
28
|
+
}, [p, l]), /* @__PURE__ */ a(
|
|
29
|
+
q,
|
|
30
|
+
{
|
|
31
|
+
ref: s,
|
|
32
|
+
position: t,
|
|
33
|
+
eventHandlers: {
|
|
34
|
+
...I,
|
|
35
|
+
popupopen: R,
|
|
36
|
+
popupclose: k
|
|
37
|
+
},
|
|
38
|
+
...O,
|
|
39
|
+
children: p && e && /* @__PURE__ */ a(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
isOpen: v,
|
|
43
|
+
properties: e,
|
|
44
|
+
position: t,
|
|
45
|
+
popupOptions: m
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
S as MarkerIconLabelWithPopup
|
|
53
|
+
};
|
package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -3,7 +3,7 @@ interface GridDebugVisualizationProps {
|
|
|
3
3
|
cells: GridCell[];
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Temporary overlay that renders the debug sampling grid on top of the map.
|
|
7
7
|
*/
|
|
8
8
|
export declare function GridDebugVisualization({ cells }: GridDebugVisualizationProps): null;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridDebugVisualization.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,2BAA2B;IACnC,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,2BAA2B,QA+C5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,qBAAqB,CAa1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for zoom and viewport-based marker filtering.
|
|
3
|
+
*/
|
|
4
|
+
export interface ZoomBasedFilterConfig {
|
|
5
|
+
/**
|
|
6
|
+
* Minimum zoom level at which every marker inside the viewport is shown.
|
|
7
|
+
* Below this zoom, filtering applies.
|
|
8
|
+
*/
|
|
9
|
+
minZoomForAllMarkers?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of markers to show while zoomed out.
|
|
12
|
+
*/
|
|
13
|
+
maxMarkersAtMinZoom?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Enables grid-based spatial sampling when the visible marker count exceeds
|
|
16
|
+
* the configured limit.
|
|
17
|
+
*/
|
|
18
|
+
useSpatialSampling?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns grid metadata for debug visualization only.
|
|
21
|
+
*/
|
|
22
|
+
showGridDebug?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Viewport expansion factor for the debug bounding box.
|
|
25
|
+
* `1` means only the visible area; `1.2` expands by 20% on each side.
|
|
26
|
+
*/
|
|
27
|
+
viewportOffsetFactor?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Debounce time in milliseconds for `moveend` and `zoomend`.
|
|
30
|
+
*/
|
|
31
|
+
debounceMs?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Enables distance-based decimation when zoomed out.
|
|
34
|
+
*/
|
|
35
|
+
useDistanceDecimation?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Minimum marker distance, in meters, at low zoom levels.
|
|
38
|
+
*/
|
|
39
|
+
minDistanceMetersAtLowZoom?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Minimum marker distance, in meters, at high zoom levels.
|
|
42
|
+
*/
|
|
43
|
+
minDistanceMetersAtHighZoom?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Zoom level considered "low" for `minDistanceMetersAtLowZoom`.
|
|
46
|
+
*/
|
|
47
|
+
lowZoomLevel?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Zoom level considered "high" for `minDistanceMetersAtHighZoom`.
|
|
50
|
+
*/
|
|
51
|
+
highZoomLevel?: number;
|
|
52
|
+
/**
|
|
53
|
+
* When enabled, decimation distributes selected points across the full route
|
|
54
|
+
* distance instead of biasing toward the first points in `featureIds`.
|
|
55
|
+
*/
|
|
56
|
+
distributeByPathDistance?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Grid cell metadata returned by the debug visualization hook.
|
|
60
|
+
*/
|
|
61
|
+
export interface GridCell {
|
|
62
|
+
bounds: {
|
|
63
|
+
north: number;
|
|
64
|
+
south: number;
|
|
65
|
+
east: number;
|
|
66
|
+
west: number;
|
|
67
|
+
};
|
|
68
|
+
featureCount: number;
|
|
69
|
+
selected: boolean;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GridCell, ZoomBasedFilterConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns grid metadata that can be rendered as an overlay while debugging
|
|
4
|
+
* viewport sampling behavior.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useGridDebug(featureIds: (string | number)[], layerId: string, config?: ZoomBasedFilterConfig): GridCell[];
|
|
7
|
+
//# sourceMappingURL=useGridDebug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGridDebug.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,qBAAqB,GAC7B,QAAQ,EAAE,CAsDZ"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export * from './useDisableMapEventsOnMouseOver';
|
|
2
2
|
export * from './useDisableMapEventsOnFlag';
|
|
3
3
|
export * from './useMapStore';
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
6
|
-
export
|
|
7
|
-
export type {
|
|
4
|
+
export * from './useRegisterMapToolController';
|
|
5
|
+
export { useFilterDecimation } from './useFilterDecimation';
|
|
6
|
+
export { createPixelPathDecimationFilter } from './useFilterDecimation/decimationMethods';
|
|
7
|
+
export type { UseFilterDecimationConfig } from './useFilterDecimation';
|
|
8
|
+
export type { PixelPathFilterConfig } from './useFilterDecimation/decimationMethods';
|
|
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/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { default as L } from 'leaflet';
|
|
1
2
|
/**
|
|
2
3
|
* "useDisableMapEventsOnMouseOver" se encarga de desactivar el zoom por doble click y por scroll
|
|
3
4
|
* cuando se está sobre el div que recibe como parámetro.
|
|
4
5
|
* @param nodeElement
|
|
5
6
|
*/
|
|
6
|
-
export declare function useDisableMapEventsOnMouseOver(nodeElement: HTMLDivElement | null): void;
|
|
7
|
+
export declare function useDisableMapEventsOnMouseOver(map: L.Map, nodeElement: HTMLDivElement | null): void;
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.tsx"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,SAAS,CAAC;AASxB;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,GAAG,IAAI,QAwC5F"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { useCallback as r, useEffect as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const e = i(), a = r(() => {
|
|
1
|
+
import { useCallback as r, useEffect as b } from "react";
|
|
2
|
+
import i from "leaflet";
|
|
3
|
+
function n(e, o) {
|
|
4
|
+
const s = r(() => {
|
|
6
5
|
e.dragging.disable(), e.doubleClickZoom.disable(), e.scrollWheelZoom.disable(), e.touchZoom.disable(), e.boxZoom.disable(), e.keyboard.disable();
|
|
7
|
-
}, [e]),
|
|
6
|
+
}, [e]), l = r(() => {
|
|
8
7
|
e.dragging.enable(), e.doubleClickZoom.enable(), e.scrollWheelZoom.enable(), e.touchZoom.enable(), e.boxZoom.enable(), e.keyboard.enable();
|
|
9
8
|
}, [e]);
|
|
10
|
-
|
|
9
|
+
b(() => {
|
|
11
10
|
if (!(!e || !o))
|
|
12
|
-
return
|
|
13
|
-
o.removeEventListener("mouseover",
|
|
11
|
+
return i.DomEvent.disableClickPropagation(o), o.addEventListener("mouseover", s), o.addEventListener("mouseleave", l), () => {
|
|
12
|
+
o.removeEventListener("mouseover", s), o.removeEventListener("mouseleave", l);
|
|
14
13
|
};
|
|
15
|
-
}, [
|
|
14
|
+
}, [s, l, e, o]);
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
n as useDisableMapEventsOnMouseOver
|
|
19
18
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yCAAyC,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,qBAAqB,CAOrE,CAAC"}
|
|
@@ -61,4 +61,4 @@ import { DecimationFilter, PixelPathFilterConfig } from './types';
|
|
|
61
61
|
* related map data, then returns the featureIds that should be rendered.
|
|
62
62
|
*/
|
|
63
63
|
export declare function createPixelPathDecimationFilter(config?: PixelPathFilterConfig): DecimationFilter;
|
|
64
|
-
//# sourceMappingURL=
|
|
64
|
+
//# sourceMappingURL=createPixelPathDecimationFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPixelPathDecimationFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAGhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,CAAC,EAAE,qBAAqB,GAC7B,gBAAgB,CA2KlB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import X from "kdbush";
|
|
2
|
-
import { PIXEL_PATH_DEFAULT_CONFIG as Z } from "
|
|
2
|
+
import { PIXEL_PATH_DEFAULT_CONFIG as Z } from "./constants.js";
|
|
3
3
|
import { decimateByPixelDistanceAlongPath as $ } from "./helpers/decimateByPixelDistanceAlongPath.js";
|
|
4
4
|
import { decimateByConcentrationGrid as j } from "./helpers/decimateByConcentrationGrid.js";
|
|
5
5
|
function tt(C) {
|
|
@@ -45,7 +45,9 @@ function tt(C) {
|
|
|
45
45
|
), G = new Set(
|
|
46
46
|
H.map((t) => A.points[t].id)
|
|
47
47
|
);
|
|
48
|
-
let m = z.filter(
|
|
48
|
+
let m = z.filter(
|
|
49
|
+
(t) => G.has(t)
|
|
50
|
+
);
|
|
49
51
|
const P = [], F = /* @__PURE__ */ new Set(), w = (t) => {
|
|
50
52
|
if (t === void 0 || F.has(t))
|
|
51
53
|
return;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimateByConcentrationGrid.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,SAAS,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,EAClD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CA+DrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimateByPixelDistanceAlongPath.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,UAAU,EACf,mBAAmB,EAAE,MAAM,EAAE,EAC7B,MAAM,EAAE,iBAAiB,EAAE,EAC3B,gBAAgB,EAAE,MAAM,EACxB,sBAAsB,EAAE,OAAO,EAC/B,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,GAC1C,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAkDrB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function p(c, l, x, e, r, y) {
|
|
2
|
+
const d = [], i = /* @__PURE__ */ new Set();
|
|
3
|
+
let s = null;
|
|
4
|
+
const f = e * e;
|
|
5
|
+
for (const u of l) {
|
|
6
|
+
const t = x[u], n = c.latLngToLayerPoint([t.lat, t.lng]), h = y?.has(t.id) ?? !1;
|
|
7
|
+
if (s === null) {
|
|
8
|
+
d.push(t.id), i.add(t.id), s = { x: n.x, y: n.y };
|
|
9
|
+
continue;
|
|
10
|
+
}
|
|
11
|
+
if (h) {
|
|
12
|
+
i.has(t.id) || (d.push(t.id), i.add(t.id)), s = { x: n.x, y: n.y };
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
const o = n.x - s.x, a = n.y - s.y;
|
|
16
|
+
o * o + a * a >= f && (i.has(t.id) || (d.push(t.id), i.add(t.id)), s = { x: n.x, y: n.y });
|
|
17
|
+
}
|
|
18
|
+
return d;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
p as decimateByPixelDistanceAlongPath
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { DecimationFilter, DecimationFilterParams, FeatureWithCoords, } from '
|
|
1
|
+
export type { DecimationFilter, DecimationFilterParams, FeatureWithCoords, } from '../../../../contexts/MapContext/types';
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for the path decimation filter based on pixel distance.
|
|
4
4
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAClC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC"}
|
package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FeatureId, FeatureWithCoords, GeoJsonImplementedObject } from '../../contexts/MapContext/types';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts point features requested by id and converts GeoJSON coordinates from
|
|
4
|
+
* RFC 7946 `[lng, lat]` order into the `{ lat, lng }` shape used by map helpers.
|
|
5
|
+
*
|
|
6
|
+
* Non-point features are ignored because decimation only operates on point data.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPointFeaturesWithCoords(geoJsonObject: GeoJsonImplementedObject | undefined, featureIds: FeatureId[]): FeatureWithCoords[];
|
|
9
|
+
//# sourceMappingURL=getPointFeaturesWithCoords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPointFeaturesWithCoords.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,SAAS,EACT,iBAAiB,EACjB,wBAAwB,EAEzB,MAAM,iCAAiC,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,wBAAwB,GAAG,SAAS,EACnD,UAAU,EAAE,SAAS,EAAE,GACtB,iBAAiB,EAAE,CAsBrB"}
|
package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function u(t, n) {
|
|
2
|
+
if (!t || t.object.type !== "FeatureCollection")
|
|
3
|
+
return [];
|
|
4
|
+
if (n.length === 0)
|
|
5
|
+
return [];
|
|
6
|
+
const r = new Set(n);
|
|
7
|
+
return t.object.features.flatMap((e) => {
|
|
8
|
+
if (!r.has(e.id) || e.geometry.type !== "Point")
|
|
9
|
+
return [];
|
|
10
|
+
const o = e, [i, l] = o.geometry.coordinates;
|
|
11
|
+
return [{ id: o.id, lat: l, lng: i }];
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
u as getPointFeaturesWithCoords
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-cutting configuration for `useFilterDecimation`.
|
|
3
|
+
*
|
|
4
|
+
* It affects how recomputation is scheduled after zoom/pan changes, not the
|
|
5
|
+
* decimation algorithm itself.
|
|
6
|
+
*/
|
|
7
|
+
export interface UseFilterDecimationConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Debounce time in milliseconds before recalculating after `zoomend` or
|
|
10
|
+
* `moveend`.
|
|
11
|
+
*
|
|
12
|
+
* `0` disables debouncing and recomputes immediately.
|
|
13
|
+
*/
|
|
14
|
+
debounceMs?: number;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFilterDecimation.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,OAAO,EAC5B,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,MAAM,CAAC,EAAE,yBAAyB,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAiIrB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useState as T, useTransition as _, useRef as g, useEffect as E } from "react";
|
|
2
|
+
import z from "lodash-es/debounce";
|
|
3
|
+
import { useMap as B } from "react-leaflet";
|
|
4
|
+
import { useMapStore as L } from "../useMapStore/index.js";
|
|
5
|
+
import { deepShallow as O } from "@m4l/components";
|
|
6
|
+
import { USE_FILTER_DECIMATION_DEFAULT_DEBOUNCE_MS as v } from "./constants.js";
|
|
7
|
+
import { getPointFeaturesWithCoords as w } from "./getPointFeaturesWithCoords.js";
|
|
8
|
+
function P(r, i, c, n, l) {
|
|
9
|
+
const e = B(), p = l?.debounceMs ?? v, [R, s] = T(() => r), [, o] = _(), f = g(!0), M = g(r);
|
|
10
|
+
M.current = r;
|
|
11
|
+
const C = c && !!n, b = L(
|
|
12
|
+
(d) => C ? w(
|
|
13
|
+
d.hashLayers[i]?.geoJsonObject,
|
|
14
|
+
r
|
|
15
|
+
) : [],
|
|
16
|
+
O
|
|
17
|
+
);
|
|
18
|
+
E(() => (f.current = !0, () => {
|
|
19
|
+
f.current = !1;
|
|
20
|
+
}), []);
|
|
21
|
+
const m = g(/* @__PURE__ */ new Map());
|
|
22
|
+
return E(() => {
|
|
23
|
+
if (m.current.clear(), !c || !n) {
|
|
24
|
+
o(() => s([...r]));
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (r.length === 0) {
|
|
28
|
+
o(() => s([]));
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (!e)
|
|
32
|
+
return;
|
|
33
|
+
const d = {
|
|
34
|
+
/**
|
|
35
|
+
* Returns a cached value or computes it with factory and stores it.
|
|
36
|
+
*/
|
|
37
|
+
get(t, h) {
|
|
38
|
+
return m.current.has(t) || m.current.set(t, h()), m.current.get(t);
|
|
39
|
+
}
|
|
40
|
+
}, a = () => {
|
|
41
|
+
if (!f.current)
|
|
42
|
+
return;
|
|
43
|
+
const t = M.current;
|
|
44
|
+
if (t.length === 0) {
|
|
45
|
+
o(() => s([]));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const h = e.getBounds(), F = e.getZoom(), S = n({
|
|
49
|
+
featureIds: t,
|
|
50
|
+
layerId: i,
|
|
51
|
+
bounds: h,
|
|
52
|
+
zoom: F,
|
|
53
|
+
map: e,
|
|
54
|
+
featuresWithCoords: b,
|
|
55
|
+
cache: d
|
|
56
|
+
});
|
|
57
|
+
f.current && o(() => s(S));
|
|
58
|
+
}, u = p <= 0 ? a : z(a, p);
|
|
59
|
+
return a(), e.on("zoomend", u), e.on("moveend", u), () => {
|
|
60
|
+
u.cancel?.(), e.off("zoomend", u), e.off("moveend", u);
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
c,
|
|
64
|
+
n,
|
|
65
|
+
p,
|
|
66
|
+
r,
|
|
67
|
+
b,
|
|
68
|
+
i,
|
|
69
|
+
e,
|
|
70
|
+
o
|
|
71
|
+
]), !c || !n ? r : R;
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
P as useFilterDecimation
|
|
75
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MapToolController, MapToolControllerScope } from '../types';
|
|
2
|
+
type UseRegisterMapToolControllerOptions = {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
scope?: MapToolControllerScope;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Registers a map-tool controller for as long as the calling component is mounted.
|
|
8
|
+
* Tool UIs can use this to override the default popup-tool behavior when their
|
|
9
|
+
* current business mode requires bespoke external handling.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useRegisterMapToolController(toolId: string, controller: MapToolController | undefined, options?: UseRegisterMapToolControllerOptions): void;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=useRegisterMapToolController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRegisterMapToolController.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useRegisterMapToolController.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAGlB,KAAK,mCAAmC,GAAG;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,iBAAiB,GAAG,SAAS,EACzC,OAAO,GAAE,mCAAwC,QAwBlD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect as p } from "react";
|
|
2
|
+
import { useMapStore as l } from "./useMapStore/index.js";
|
|
3
|
+
function f(r, e, u = {}) {
|
|
4
|
+
const { enabled: n = !0, scope: o = "runtime" } = u, s = l((t) => t.mapActions.registerToolController), i = l((t) => t.mapActions.unregisterToolController);
|
|
5
|
+
p(() => {
|
|
6
|
+
if (!(!n || !e))
|
|
7
|
+
return s(r, e, o), () => {
|
|
8
|
+
i(r, o);
|
|
9
|
+
};
|
|
10
|
+
}, [
|
|
11
|
+
e,
|
|
12
|
+
n,
|
|
13
|
+
s,
|
|
14
|
+
o,
|
|
15
|
+
r,
|
|
16
|
+
i
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
f as useRegisterMapToolController
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -8,4 +8,8 @@ export type MapPopupProps = {
|
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
};
|
|
10
10
|
export type MapPopupComponent = (props: MapPopupProps) => JSX.Element | null;
|
|
11
|
+
export type MapPopupRenderConfig = {
|
|
12
|
+
popupRender?: MapPopupComponent;
|
|
13
|
+
popupOptions?: Omit<PopupOptions, 'content'>;
|
|
14
|
+
};
|
|
11
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAE7E,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;CAC9C,CAAC"}
|