@m4l/gclick 0.1.0 → 0.2.0-JAEBeta.0
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/@types/deviceData.d.ts +12 -9
- package/@types/general.d.ts +1 -1
- package/@types/index.d.ts +2 -2
- package/@types/types.d.ts +25 -1
- package/@types/vpts.d.ts +6 -3
- package/components/Device/Device.d.ts +6 -0
- package/components/Device/Device.js +32 -0
- package/components/Device/Device.styles.d.ts +2 -0
- package/components/Device/Device.styles.js +95 -0
- package/components/Device/constants.d.ts +14 -0
- package/components/Device/constants.js +4 -0
- package/components/Device/dictionary.d.ts +14 -0
- package/components/Device/dictionary.js +19 -0
- package/components/{DeviceStatus/hooks/helper.d.ts → Device/helpers/helperDeviceStatus.d.ts} +1 -1
- package/components/{DeviceStatus/hooks/helper.js → Device/helpers/helperDeviceStatus.js} +5 -5
- package/components/Device/helpers.d.ts +18 -0
- package/components/Device/helpers.js +27 -0
- package/components/Device/hooks/constants.d.ts +16 -0
- package/components/{DeviceStatus → Device}/hooks/constants.js +13 -15
- package/components/Device/hooks/useDevice.d.ts +12 -0
- package/components/Device/hooks/useDevice.js +23 -0
- package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.d.ts +2 -2
- package/components/{DeviceStatus → Device}/hooks/useDeviceStatus.js +4 -4
- package/components/Device/icons.d.ts +11 -0
- package/components/{DeviceStatus → Device}/icons.js +2 -2
- package/components/Device/index.d.ts +6 -0
- package/components/Device/slots/DeviceSlots.d.ts +15 -0
- package/components/Device/slots/DeviceSlots.js +32 -0
- package/components/Device/slots/slots.d.ts +7 -0
- package/components/Device/slots/slots.js +11 -0
- package/components/Device/types.d.ts +30 -0
- package/components/DeviceLabel/DeviceLabel.js +1 -1
- package/components/DeviceLabel/slots/DeviceLabelSlots.d.ts +9 -3
- package/components/DeviceLabel/types.d.ts +2 -2
- package/components/DeviceStatus/DeviceStatus.js +3 -15
- package/components/DeviceStatus/DeviceStatus.styles.js +1 -13
- package/components/DeviceStatus/constants.js +1 -4
- package/components/DeviceStatus/dictionary.d.ts +10 -10
- package/components/DeviceStatus/dictionary.js +1 -12
- package/components/DeviceStatus/icons.d.ts +1 -1
- package/components/DeviceStatus/index.d.ts +3 -2
- package/components/DeviceStatus/slots/DeviceStatusSlots.js +1 -11
- package/components/DeviceStatus/slots/slots.js +1 -7
- package/components/index.d.ts +1 -1
- package/components/indicators/IndicatorBattery/IndicatorBattery.styles.js +2 -2
- package/components/indicators/IndicatorBattery/dictionary.js +5 -1
- package/components/indicators/IndicatorBattery/index.d.ts +1 -0
- package/components/indicators/IndicatorCSQ/IndicatorCSQ.js +7 -5
- package/components/indicators/IndicatorCSQ/constants.d.ts +2 -2
- package/components/indicators/IndicatorCSQ/constants.js +4 -3
- package/components/indicators/IndicatorCSQ/dictionary.d.ts +5 -2
- package/components/indicators/IndicatorCSQ/dictionary.js +15 -12
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.d.ts +22 -2
- package/components/indicators/IndicatorCSQ/helpers/getQualityLabel/getQualityLabel.js +15 -29
- package/components/indicators/IndicatorCSQ/index.d.ts +3 -3
- package/components/indicators/IndicatorCSQ/slots/IndicatorCSQSlots.js +6 -6
- package/components/indicators/IndicatorCSQ/types.d.ts +6 -2
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.d.ts +5 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.js +15 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.d.ts +2 -0
- package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.styles.js +41 -0
- package/components/indicators/IndicatorValueAndMagnitude/constants.d.ts +2 -0
- package/components/indicators/IndicatorValueAndMagnitude/constants.js +7 -0
- package/components/indicators/IndicatorValueAndMagnitude/index.d.ts +1 -0
- package/components/indicators/IndicatorValueAndMagnitude/index.js +1 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/slots.d.ts +6 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/slots.js +10 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/styled.d.ts +12 -0
- package/components/indicators/IndicatorValueAndMagnitude/slots/styled.js +27 -0
- package/components/indicators/IndicatorValueAndMagnitude/types.d.ts +14 -0
- package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.js +25 -0
- package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.styles.js +76 -0
- package/components/indicators/IndicatorValueStatus/constants.js +8 -0
- package/components/indicators/IndicatorValueStatus/index.js +1 -0
- package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusEnum.js +11 -0
- package/components/indicators/IndicatorValueStatus/slots/IndicatorValueStatusSlots.js +32 -0
- package/components/indicators/IndicatorValueStatus/types.d.ts +4 -0
- package/components/indicators/index.d.ts +2 -0
- package/components/maps/components/GpsMap/GpsMap.js +26 -9
- package/components/maps/components/GpsMap/GpsMap.styles.js +81 -93
- package/components/maps/components/GpsMap/classes/index.d.ts +1 -1
- package/components/maps/components/GpsMap/classes/index.js +6 -76
- package/components/maps/components/GpsMap/classes/types.d.ts +5 -16
- package/components/maps/components/GpsMap/constants.d.ts +9 -3
- package/components/maps/components/GpsMap/constants.js +25 -13
- package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +4 -26
- package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
- package/components/maps/components/GpsMap/contexts/MapContext/store.js +50 -75
- package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +98 -87
- package/components/maps/components/GpsMap/dictionary.d.ts +19 -8
- package/components/maps/components/GpsMap/dictionary.js +30 -17
- package/components/maps/components/GpsMap/external/{Control → MapControl}/index.d.ts +3 -3
- package/components/maps/components/GpsMap/external/{Control → MapControl}/index.js +9 -7
- package/components/maps/components/GpsMap/external/MapControl/types.d.ts +26 -0
- package/components/maps/components/GpsMap/external/googleMutant/index.d.ts +1 -1
- package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +3 -3
- package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +1 -1
- package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +3 -2
- package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
- package/components/maps/components/GpsMap/hooks/index.d.ts +3 -0
- package/components/maps/components/GpsMap/hooks/index.js +1 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnFlag/index.js +31 -0
- package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +6 -0
- package/components/maps/components/GpsMap/hooks/{useDisableZoomEvents → useDisableMapEventsOnMouseOver}/index.js +10 -2
- package/components/maps/components/GpsMap/icons.d.ts +10 -7
- package/components/maps/components/GpsMap/icons.js +17 -16
- package/components/maps/components/GpsMap/index.d.ts +2 -1
- package/components/maps/components/GpsMap/leaflet.styles.d.ts +6 -0
- package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +9 -1
- package/components/maps/components/GpsMap/popups/index.d.ts +1 -0
- package/components/maps/components/GpsMap/slots/slots.d.ts +27 -4
- package/components/maps/components/GpsMap/slots/slots.js +16 -7
- package/components/maps/components/GpsMap/slots/styled.d.ts +18 -0
- package/components/maps/components/GpsMap/slots/styled.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/index.js +8 -7
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.js +3 -3
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/types.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/hooks/useTool.js +64 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +42 -87
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.js +24 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/types.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.d.ts +4 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.js +30 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js +45 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/types.d.ts +11 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js +10 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.d.ts +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/styled.js +26 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +5 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +71 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/subcomponents/types.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/types.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts → TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.d.ts} +1 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.js +38 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +87 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +22 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js +13 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.d.ts +21 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/styled.js +41 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/bing.js +47 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/google.js +107 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +2 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/sourceTypes/others.js +33 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +88 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/subcomponents/types.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/types.d.ts +9 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.js +31 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.d.ts +7 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js +154 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +25 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +37 -14
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +29 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +14 -6
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +2 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +26 -20
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +1 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.d.ts +8 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/slots.js +12 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.d.ts +18 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/slots/styled.js +37 -0
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +19 -17
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +18 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -1
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +2 -5
- package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.js +2 -1
- package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +2 -1
- package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.d.ts +6 -0
- package/components/maps/components/GpsMap/subcomponents/MapEventController/MapEventController.js +8 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/darkStyles.d.ts +13 -0
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +82 -59
- package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +25 -15
- package/components/maps/components/GpsMap/types.d.ts +24 -5
- package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +1 -0
- package/components/maps/components/GpsMapTools/index.d.ts +1 -0
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +1 -1
- package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +29 -32
- package/components/maps/components/GpsMapTools/types.d.ts +0 -16
- package/components/maps/index.d.ts +1 -0
- package/components/maps/utils/coordsToQuadKey.d.ts +4 -0
- package/components/maps/{components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js → utils/coordsToQuadKey.js} +2 -2
- package/components/maps/utils/index.d.ts +1 -0
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +1 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +67 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +115 -30
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +5 -38
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +9 -36
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +27 -19
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +3 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +9 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +1 -1
- package/formatters/CourseFormatter/CourseFormatter.js +6 -4
- package/formatters/CourseFormatter/helper.d.ts +2 -1
- package/formatters/CourseFormatter/helper.js +2 -4
- package/formatters/CourseFormatter/index.d.ts +1 -0
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +1 -1
- package/formatters/CourseFormatter/slots/CourseFormatterSlots.js +2 -2
- package/formatters/index.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +94 -59
- package/package.json +16 -3
- package/utils/cssToCSSProperties.d.ts +37 -0
- package/utils/getPrecisionFromHdop/constants.d.ts +13 -0
- package/utils/getPrecisionFromHdop/constants.js +73 -0
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +31 -0
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +59 -0
- package/utils/getPrecisionFromHdop/index.d.ts +3 -0
- package/utils/getPrecisionFromHdop/index.js +1 -0
- package/utils/getPrecisionFromHdop/types.d.ts +42 -0
- package/utils/getVptUpdatedAtWithGuard.d.ts +4 -0
- package/utils/getVptUpdatedAtWithGuard.js +13 -0
- package/utils/getVptValueWithGuard.d.ts +9 -0
- package/utils/getVptValueWithGuard.js +18 -0
- package/utils/index.d.ts +3 -0
- package/components/DeviceStatus/hooks/constants.d.ts +0 -11
- package/components/maps/components/GpsMap/external/Control/types.d.ts +0 -7
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.js +0 -4
- package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.js +0 -112
- package/components/maps/components/GpsMap/hooks/useDisableZoomEvents/index.d.ts +0 -6
- package/components/maps/components/GpsMap/slots/GpsMapSlots.d.ts +0 -4
- package/components/maps/components/GpsMap/slots/GpsMapSlots.js +0 -24
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.js +0 -13
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +0 -10
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +0 -58
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +0 -17
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +0 -18
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +0 -139
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -12
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +0 -52
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -8
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +0 -43
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +0 -30
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +0 -26
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +0 -133
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +0 -39
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +0 -73
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +0 -2
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +0 -25
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +0 -4
- package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +0 -40
- /package/components/{maps/components/GpsMap/contexts/MapContext/helper.js → Device/index.js} +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → BottomRigthTools}/subcomponents/ZoomButtons/index.d.ts +0 -0
- /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/{index.d.ts → MeasureTool.d.ts} +0 -0
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { useEffect } from "react";
|
|
2
2
|
import { useMap } from "react-leaflet";
|
|
3
|
-
function
|
|
3
|
+
function useDisableMapEventsOnMouseOver(nodeElement) {
|
|
4
4
|
const map = useMap();
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
if (!map || !nodeElement) {
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
9
|
nodeElement.addEventListener("mouseover", function() {
|
|
10
|
+
map.dragging.disable();
|
|
10
11
|
map.doubleClickZoom.disable();
|
|
11
12
|
map.scrollWheelZoom.disable();
|
|
13
|
+
map.touchZoom.disable();
|
|
14
|
+
map.boxZoom.disable();
|
|
15
|
+
map.keyboard.disable();
|
|
12
16
|
});
|
|
13
17
|
nodeElement.addEventListener("mouseleave", function() {
|
|
18
|
+
map.dragging.enable();
|
|
14
19
|
map.scrollWheelZoom.enable();
|
|
15
20
|
map.doubleClickZoom.enable();
|
|
21
|
+
map.touchZoom.enable();
|
|
22
|
+
map.boxZoom.enable();
|
|
23
|
+
map.keyboard.enable();
|
|
16
24
|
});
|
|
17
25
|
}, [map, nodeElement]);
|
|
18
26
|
}
|
|
19
27
|
export {
|
|
20
|
-
|
|
28
|
+
useDisableMapEventsOnMouseOver as u
|
|
21
29
|
};
|
|
@@ -8,17 +8,20 @@ export declare const MAP_ICONS: {
|
|
|
8
8
|
* Map sources
|
|
9
9
|
*/
|
|
10
10
|
MAP_SOURCES_TOOL: string;
|
|
11
|
-
|
|
12
|
-
MAP_SOURCE_GOOGLE_ROADS: string;
|
|
13
|
-
MAP_SOURCE_GOOGLE_HYBRID: string;
|
|
14
|
-
MAP_SOURCE_GOOGLE_SATELLITE: string;
|
|
11
|
+
MAP_SOURCE_GOOGLE: string;
|
|
15
12
|
MAP_SOURCE_BING: string;
|
|
13
|
+
MAP_SOURCE_OTHERS: string;
|
|
14
|
+
MAP_SOURCE_LAYER_STREETS: string;
|
|
15
|
+
MAP_SOURCE_LAYER_HYBRID: string;
|
|
16
|
+
MAP_SOURCE_LAYER_SATELLITE: string;
|
|
17
|
+
MAP_SOURCE_LAYER_TERRAIN: string;
|
|
18
|
+
MAP_SOURCE_LAYER_OTHERS_OSM: string;
|
|
16
19
|
/**
|
|
17
20
|
* Map sources road options+
|
|
18
21
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_TRAFFIC: string;
|
|
23
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_TRANSIT: string;
|
|
24
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_BICYCLING: string;
|
|
22
25
|
/**
|
|
23
26
|
* Layers
|
|
24
27
|
*/
|
|
@@ -2,31 +2,32 @@ const MAP_ICONS = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Map en general
|
|
4
4
|
*/
|
|
5
|
-
MAP_ZOOM_IN: "
|
|
6
|
-
MAP_ZOOM_OUT: "
|
|
5
|
+
MAP_ZOOM_IN: "zoom_in.svg",
|
|
6
|
+
MAP_ZOOM_OUT: "zoom_out.svg",
|
|
7
7
|
/**
|
|
8
8
|
* Map sources
|
|
9
9
|
*/
|
|
10
|
-
MAP_SOURCES_TOOL: "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
MAP_SOURCES_TOOL: "map.svg",
|
|
11
|
+
MAP_SOURCE_GOOGLE: "google.svg",
|
|
12
|
+
MAP_SOURCE_BING: "bing.svg",
|
|
13
|
+
MAP_SOURCE_OTHERS: "others.svg",
|
|
14
|
+
MAP_SOURCE_LAYER_STREETS: "roads.svg",
|
|
15
|
+
MAP_SOURCE_LAYER_HYBRID: "satellite_hybrid.svg",
|
|
16
|
+
MAP_SOURCE_LAYER_SATELLITE: "satellite.svg",
|
|
17
|
+
MAP_SOURCE_LAYER_TERRAIN: "mount.svg",
|
|
16
18
|
/**
|
|
17
19
|
* Map sources road options+
|
|
18
20
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_TRAFFIC: "traffic.svg",
|
|
22
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_TRANSIT: "transit.svg",
|
|
23
|
+
MAP_SOURCE_LAYER_ROAD_OPTION_BICYCLING: "bicycle.svg",
|
|
22
24
|
/**
|
|
23
25
|
* Layers
|
|
24
26
|
*/
|
|
25
|
-
MAP_LAYERS_TOOL: "
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
MAP_LAYER_DELETE: "cmp_map_layers_delete.svg",
|
|
27
|
+
MAP_LAYERS_TOOL: "layers.svg",
|
|
28
|
+
MAP_LAYER_AUTOFOCUS: "autofocus.svg",
|
|
29
|
+
MAP_LAYER_CLUSTER: "cluster.svg",
|
|
30
|
+
MAP_LAYER_DELETE: "delete.svg",
|
|
30
31
|
/**
|
|
31
32
|
* Measure Tool *
|
|
32
33
|
*
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { GpsMap } from './GpsMap';
|
|
2
2
|
export type { MapProps } from './types';
|
|
3
3
|
export { MapProvider, MapContext } from './contexts/MapContext/MapContext';
|
|
4
|
-
export { useMapStore } from './hooks/useMapStore';
|
|
5
4
|
export * from './contexts/MapContext';
|
|
6
5
|
export * from './featureRenders';
|
|
7
6
|
export * from './popups';
|
|
8
7
|
export { getMapComponentsDictionary } from './dictionary';
|
|
9
8
|
export * from './pluginLayers';
|
|
9
|
+
export { LAT_LON_FIXED_DIGITS } from './constants';
|
|
10
|
+
export * from './hooks';
|
|
@@ -3,17 +3,25 @@ import { P as PopupRootStyled, M as MapPopupDeviceRootStyled } from "./slots/Map
|
|
|
3
3
|
import { AppearanceComponentProvider } from "@m4l/components";
|
|
4
4
|
import { G as GpsDeviceContent } from "./subcomponents/Content/GpsDeviceContent.js";
|
|
5
5
|
import { G as GpsDeviceHeader } from "./subcomponents/Header/GpsDeviceHeader.js";
|
|
6
|
+
import { useRef, useMemo } from "react";
|
|
7
|
+
import { u as useMapStore } from "../../hooks/useMapStore/index.js";
|
|
6
8
|
const MapPopupDevice = (props) => {
|
|
7
9
|
const { isOpen, popupOptions } = props;
|
|
8
10
|
const { keepInView = true, autoPan = true, closeOnEscapeKey = true, ...others } = popupOptions || {};
|
|
11
|
+
const popupRef = useRef(null);
|
|
12
|
+
const isListOpen = useMapStore((state) => state.hasMapData?.isListOpen);
|
|
13
|
+
const autoPanPaddingTopLeft = useMemo(() => {
|
|
14
|
+
return isListOpen ? [400, 40] : [40, 40];
|
|
15
|
+
}, [isListOpen]);
|
|
9
16
|
return /* @__PURE__ */ jsx(
|
|
10
17
|
PopupRootStyled,
|
|
11
18
|
{
|
|
19
|
+
ref: popupRef,
|
|
12
20
|
ownerState: {},
|
|
13
21
|
closeButton: false,
|
|
14
22
|
keepInView,
|
|
15
23
|
autoPan,
|
|
16
|
-
autoPanPaddingTopLeft
|
|
24
|
+
autoPanPaddingTopLeft,
|
|
17
25
|
autoPanPaddingBottomRight: [40, 40],
|
|
18
26
|
closeOnEscapeKey,
|
|
19
27
|
offset: [0, -5],
|
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { MapSlotsLayersTool } from '../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots';
|
|
2
|
+
import { MapSlotsSourcesTool } from '../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots';
|
|
3
|
+
export declare enum MapBaseSlots {
|
|
2
4
|
root = "root",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
mapContainer = "mapContainer",
|
|
6
|
+
popupsViewer = "popupsViewer",
|
|
7
|
+
zoomButton = "zoomButton",
|
|
8
|
+
controlRightToolsRoot = "controlRightToolsRoot",
|
|
9
|
+
controlLeftToolsRoot = "controlLeftToolsRoot"
|
|
6
10
|
}
|
|
11
|
+
export declare const MapSlots: {
|
|
12
|
+
readonly mapLayersToolRoot: MapSlotsLayersTool.mapLayersToolRoot;
|
|
13
|
+
readonly mapLayersToolRowContainer: MapSlotsLayersTool.mapLayersToolRowContainer;
|
|
14
|
+
readonly mapLayersToolRowCheckBoxNameContainer: MapSlotsLayersTool.mapLayersToolRowCheckBoxNameContainer;
|
|
15
|
+
readonly mapLayersToolRowOptionsContainer: MapSlotsLayersTool.mapLayersToolRowOptionsContainer;
|
|
16
|
+
readonly mapSourcesToolRoot: MapSlotsSourcesTool.mapSourcesToolRoot;
|
|
17
|
+
readonly mapSourcesToolHeader: MapSlotsSourcesTool.mapSourcesToolHeader;
|
|
18
|
+
readonly mapSourcesToolGroup: MapSlotsSourcesTool.mapSourcesToolGroup;
|
|
19
|
+
readonly mapSourcesToolGroupHeader: MapSlotsSourcesTool.mapSourcesToolGroupHeader;
|
|
20
|
+
readonly mapSourceToolCardIconTitleContainer: MapSlotsSourcesTool.mapSourceToolCardIconTitleContainer;
|
|
21
|
+
readonly mapSourceToolCardIcon: MapSlotsSourcesTool.mapSourceToolCardIcon;
|
|
22
|
+
readonly mapSourceToolCardRoadOptionsContainer: MapSlotsSourcesTool.mapSourceToolCardRoadOptionsContainer;
|
|
23
|
+
readonly root: MapBaseSlots.root;
|
|
24
|
+
readonly mapContainer: MapBaseSlots.mapContainer;
|
|
25
|
+
readonly popupsViewer: MapBaseSlots.popupsViewer;
|
|
26
|
+
readonly zoomButton: MapBaseSlots.zoomButton;
|
|
27
|
+
readonly controlRightToolsRoot: MapBaseSlots.controlRightToolsRoot;
|
|
28
|
+
readonly controlLeftToolsRoot: MapBaseSlots.controlLeftToolsRoot;
|
|
29
|
+
};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { M as MapSlotsLayersTool } from "../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/slots/slots.js";
|
|
2
|
+
import { M as MapSlotsSourcesTool } from "../subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/slots/slots.js";
|
|
3
|
+
var MapBaseSlots = /* @__PURE__ */ ((MapBaseSlots2) => {
|
|
4
|
+
MapBaseSlots2["root"] = "root";
|
|
5
|
+
MapBaseSlots2["mapContainer"] = "mapContainer";
|
|
6
|
+
MapBaseSlots2["popupsViewer"] = "popupsViewer";
|
|
7
|
+
MapBaseSlots2["zoomButton"] = "zoomButton";
|
|
8
|
+
MapBaseSlots2["controlRightToolsRoot"] = "controlRightToolsRoot";
|
|
9
|
+
MapBaseSlots2["controlLeftToolsRoot"] = "controlLeftToolsRoot";
|
|
10
|
+
return MapBaseSlots2;
|
|
11
|
+
})(MapBaseSlots || {});
|
|
12
|
+
const MapSlots = {
|
|
13
|
+
...MapBaseSlots,
|
|
14
|
+
...MapSlotsSourcesTool,
|
|
15
|
+
...MapSlotsLayersTool
|
|
16
|
+
};
|
|
8
17
|
export {
|
|
9
18
|
MapSlots as M
|
|
10
19
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const GpsMapRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const GpsMapContainerStyled: import('@emotion/styled').StyledComponent<Pick<import('react-leaflet').MapContainerProps & import('react').RefAttributes<import('leaflet').Map>, keyof import('react-leaflet').MapContainerProps | keyof import('react').RefAttributes<import('leaflet').Map>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const RightToolsRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
8
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const LeftToolsRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
12
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const ZoomButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/components/src/components/mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "placement" | "rotationAngle" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
export declare const PopupsViewerStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/popups/components/PopupsViewer/types').PopupsViewerProps, keyof import('@m4l/components/src/components/popups/components/PopupsViewer/types').PopupsViewerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
|
+
ownerState?: (Partial<import('../types').MapOwnerState> & Record<string, unknown>) | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { M as MAP_COMPONET_KEY_COMPONENT } from "../constants.js";
|
|
3
|
+
import { m as mapStyles } from "../GpsMap.styles.js";
|
|
4
|
+
import { M as MapSlots } from "./slots.js";
|
|
5
|
+
import { MapContainer } from "react-leaflet";
|
|
6
|
+
import { PopupsViewer, IconButton } from "@m4l/components";
|
|
7
|
+
const GpsMapRootStyled = styled("div", {
|
|
8
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
9
|
+
slot: MapSlots.root
|
|
10
|
+
})(mapStyles?.root);
|
|
11
|
+
const GpsMapContainerStyled = styled(MapContainer, {
|
|
12
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
13
|
+
slot: MapSlots.mapContainer
|
|
14
|
+
})(mapStyles?.mapContainer);
|
|
15
|
+
const RightToolsRootStyled = styled("div", {
|
|
16
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
17
|
+
slot: MapSlots.controlRightToolsRoot
|
|
18
|
+
})(mapStyles?.controlRightToolsRoot);
|
|
19
|
+
styled("div", {
|
|
20
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
21
|
+
slot: MapSlots.controlLeftToolsRoot
|
|
22
|
+
})(mapStyles?.controlLeftToolsRoot);
|
|
23
|
+
const ZoomButtonStyled = styled(IconButton, {
|
|
24
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
25
|
+
slot: MapSlots.zoomButton
|
|
26
|
+
})(mapStyles?.zoomButton);
|
|
27
|
+
const PopupsViewerStyled = styled(PopupsViewer, {
|
|
28
|
+
name: MAP_COMPONET_KEY_COMPONENT,
|
|
29
|
+
slot: MapSlots.popupsViewer
|
|
30
|
+
})(mapStyles?.popupsViewer);
|
|
31
|
+
export {
|
|
32
|
+
GpsMapRootStyled as G,
|
|
33
|
+
PopupsViewerStyled as P,
|
|
34
|
+
RightToolsRootStyled as R,
|
|
35
|
+
ZoomButtonStyled as Z,
|
|
36
|
+
GpsMapContainerStyled as a
|
|
37
|
+
};
|
|
@@ -3,12 +3,13 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import L__default from "leaflet";
|
|
5
5
|
import { useMap } from "react-leaflet";
|
|
6
|
-
import { PopupsProvider
|
|
6
|
+
import { PopupsProvider } from "@m4l/components";
|
|
7
7
|
import { T as TopRightTools } from "./subcomponents/TopRigthTools/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { c as MAP_ZINDEX_OVER_MAP } from "../../constants.js";
|
|
9
|
+
import { B as BottomRightTools } from "./subcomponents/BottomRigthTools/index.js";
|
|
10
|
+
import { P as PopupsViewerStyled } from "../../slots/styled.js";
|
|
10
11
|
function Controls(props) {
|
|
11
|
-
const {
|
|
12
|
+
const { GpsTools } = props;
|
|
12
13
|
const map = useMap();
|
|
13
14
|
const [controlContainer, setControlContainer] = useState(null);
|
|
14
15
|
const [mapContainer, setMapContainer] = useState(void 0);
|
|
@@ -22,9 +23,9 @@ function Controls(props) {
|
|
|
22
23
|
setMapContainer(map.getContainer());
|
|
23
24
|
}, [map]);
|
|
24
25
|
return /* @__PURE__ */ jsxs(PopupsProvider, { baseZindex: MAP_ZINDEX_OVER_MAP, children: [
|
|
25
|
-
/* @__PURE__ */ jsx(
|
|
26
|
-
/* @__PURE__ */ jsx(
|
|
27
|
-
controlContainer && createPortal(/* @__PURE__ */ jsx(
|
|
26
|
+
/* @__PURE__ */ jsx(TopRightTools, { GpsTools }),
|
|
27
|
+
/* @__PURE__ */ jsx(BottomRightTools, {}),
|
|
28
|
+
controlContainer && createPortal(/* @__PURE__ */ jsx(PopupsViewerStyled, { containerElement: mapContainer }), controlContainer)
|
|
28
29
|
] });
|
|
29
30
|
}
|
|
30
31
|
export {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que contiene los botones de herramientas de la parte superior derecha del mapa
|
|
3
|
+
* - Boton de herramientas de GPS (Opcional)
|
|
4
|
+
* - Boton de herramientas de medición
|
|
5
|
+
* - Botones de zoom In
|
|
6
|
+
* - Botones de zoom Out
|
|
7
|
+
* @param props
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function BottomRightTools(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { M as MapControl } from "../../../../external/MapControl/index.js";
|
|
3
|
+
import { Z as ZoomButtons } from "./subcomponents/ZoomButtons/index.js";
|
|
4
|
+
import { R as RightToolsRootStyled } from "../../../../slots/styled.js";
|
|
5
|
+
function BottomRightTools() {
|
|
6
|
+
return /* @__PURE__ */ jsx(MapControl, { position: "bottomright", prepend: true, ControlContainer: RightToolsRootStyled, children: /* @__PURE__ */ jsx(ZoomButtons, {}) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
BottomRightTools as B
|
|
10
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useMap } from "react-leaflet";
|
|
4
|
-
import { IconButton } from "@m4l/components";
|
|
5
4
|
import { M as MAP_ICONS } from "../../../../../../icons.js";
|
|
6
5
|
import { useEnvironment } from "@m4l/core";
|
|
7
6
|
import { m as mapClasses } from "../../../../../../classes/index.js";
|
|
7
|
+
import { Z as ZoomButtonStyled } from "../../../../../../slots/styled.js";
|
|
8
8
|
function ZoomButtons() {
|
|
9
9
|
const map = useMap();
|
|
10
10
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -32,14 +32,14 @@ function ZoomButtons() {
|
|
|
32
32
|
};
|
|
33
33
|
return /* @__PURE__ */ jsxs("div", { className: mapClasses.zoomButtons, children: [
|
|
34
34
|
/* @__PURE__ */ jsx(
|
|
35
|
-
|
|
35
|
+
ZoomButtonStyled,
|
|
36
36
|
{
|
|
37
37
|
onClick: handleZoomIn,
|
|
38
38
|
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_IN}`
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
41
|
/* @__PURE__ */ jsx(
|
|
42
|
-
|
|
42
|
+
ZoomButtonStyled,
|
|
43
43
|
{
|
|
44
44
|
onClick: handleZoomOut,
|
|
45
45
|
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_OUT}`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useToolProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* hook que contiene las funciones y estado de los botones de herramientas de la parte superior derecha del mapa
|
|
4
|
+
* - Boton de herramientas de GPS (Opcional)
|
|
5
|
+
* - Boton de herramientas de medición
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function useTool(props: useToolProps): {
|
|
10
|
+
onToolClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
isToggled: boolean;
|
|
12
|
+
isDisabled: boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
2
|
+
import { useMap } from "react-leaflet";
|
|
3
|
+
import { usePopupsStore, deepShallow } from "@m4l/components";
|
|
4
|
+
import { useCallback } from "react";
|
|
5
|
+
function useTool(props) {
|
|
6
|
+
const { ToolComponent, popupId, iconId, dictionaryId, defaultPosition } = props;
|
|
7
|
+
const { addPopup } = usePopupsStore((state) => state.popupsActions);
|
|
8
|
+
const { close } = usePopupsStore((state) => state.popupActions);
|
|
9
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
+
const { getLabel } = useModuleDictionary();
|
|
11
|
+
const { isToggled, isDisabled } = usePopupsStore(
|
|
12
|
+
(state) => {
|
|
13
|
+
const openPopupsIds = state.popupsIds.filter((pId) => {
|
|
14
|
+
return state.hashPopups[pId].status === "init";
|
|
15
|
+
});
|
|
16
|
+
return {
|
|
17
|
+
isToggled: openPopupsIds.indexOf(popupId) > -1,
|
|
18
|
+
isDisabled: state.popupsIds.indexOf(popupId) > -1 && openPopupsIds.indexOf(popupId) === -1
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
deepShallow
|
|
22
|
+
);
|
|
23
|
+
const map = useMap();
|
|
24
|
+
const onMouseUp = useCallback((e) => {
|
|
25
|
+
map.dragging.enable();
|
|
26
|
+
e.stopPropagation();
|
|
27
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
28
|
+
}, [map]);
|
|
29
|
+
const onMouseDown = useCallback((e) => {
|
|
30
|
+
map.dragging.disable();
|
|
31
|
+
e.stopPropagation();
|
|
32
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
33
|
+
}, [map.dragging, onMouseUp]);
|
|
34
|
+
const onToolClick = useCallback((e) => {
|
|
35
|
+
if (!ToolComponent) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (!isToggled) {
|
|
39
|
+
addPopup(
|
|
40
|
+
{
|
|
41
|
+
winType: "component",
|
|
42
|
+
popupId,
|
|
43
|
+
title: getLabel(dictionaryId),
|
|
44
|
+
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${iconId}`,
|
|
45
|
+
component: ToolComponent,
|
|
46
|
+
onMouseDown,
|
|
47
|
+
defaultPosition
|
|
48
|
+
},
|
|
49
|
+
{ closeOthers: true }
|
|
50
|
+
);
|
|
51
|
+
} else {
|
|
52
|
+
close(popupId);
|
|
53
|
+
}
|
|
54
|
+
e.stopPropagation();
|
|
55
|
+
}, [ToolComponent, isToggled, addPopup, popupId, getLabel, dictionaryId, host_static_assets, environment_assets, iconId, onMouseDown, defaultPosition, close]);
|
|
56
|
+
return {
|
|
57
|
+
onToolClick,
|
|
58
|
+
isToggled,
|
|
59
|
+
isDisabled
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
useTool as u
|
|
64
|
+
};
|
|
@@ -3,8 +3,6 @@ import { TopRigthToolsProps } from './types';
|
|
|
3
3
|
* Componente que contiene los botones de herramientas de la parte superior derecha del mapa
|
|
4
4
|
* - Boton de herramientas de GPS (Opcional)
|
|
5
5
|
* - Boton de herramientas de medición
|
|
6
|
-
* - Botones de zoom In
|
|
7
|
-
* - Botones de zoom Out
|
|
8
6
|
* @param props
|
|
9
7
|
* @returns
|
|
10
8
|
*/
|
|
@@ -1,101 +1,56 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useMap } from "react-leaflet";
|
|
4
|
-
import { shallow } from "zustand/shallow";
|
|
5
|
-
import { C as Control } from "../../../../external/Control/index.js";
|
|
6
|
-
import { usePopupsStore, ToggleIconButton } from "@m4l/components";
|
|
7
|
-
import { M as MeasureTool } from "./subcomponents/MeasureTool/index.js";
|
|
8
|
-
import { Z as ZoomButtons } from "./subcomponents/ZoomButtons/index.js";
|
|
2
|
+
import { M as MapControl } from "../../../../external/MapControl/index.js";
|
|
9
3
|
import { M as MAP_ICONS } from "../../../../icons.js";
|
|
4
|
+
import { B as ButtonTool } from "./subcomponents/ButtonTool/index.js";
|
|
10
5
|
import { M as MAP_DICCTIONARY } from "../../../../dictionary.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { d as MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION, e as MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION, G as GPS_TOOLS_POPUP_DEFAULT_POSITION, f as MESURE_TOOL_POPUP_DEFAULT_POSITION } from "../../../../constants.js";
|
|
7
|
+
import { M as MapLayersTool } from "./subcomponents/MapLayersTool/MapLayersTool.js";
|
|
8
|
+
import { M as MeasureTool } from "./subcomponents/MeasureTool/MeasureTool.js";
|
|
9
|
+
import { M as MapSourcesTool } from "./subcomponents/MapSourcesTool/MapSourcesTool.js";
|
|
10
|
+
import { R as RightToolsRootStyled } from "../../../../slots/styled.js";
|
|
13
11
|
function TopRightTools(props) {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const isDisabledGpsTools = popupsIds.indexOf("gpsTools") > -1 && openPopupsIds.indexOf("gpsTools") === -1;
|
|
29
|
-
const isToggledMeasureTool = openPopupsIds.indexOf("measureTool") > -1;
|
|
30
|
-
const isDisabledMeasureTool = popupsIds.indexOf("measureTool") > -1 && openPopupsIds.indexOf("measureTool") === -1;
|
|
31
|
-
const onMouseDown = (e) => {
|
|
32
|
-
map.dragging.disable();
|
|
33
|
-
e.stopPropagation();
|
|
34
|
-
document.addEventListener("mouseup", onMouseUp);
|
|
35
|
-
};
|
|
36
|
-
const onMouseUp = (e) => {
|
|
37
|
-
map.dragging.enable();
|
|
38
|
-
e.stopPropagation();
|
|
39
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
40
|
-
};
|
|
41
|
-
const onGpsToolsClick = (e) => {
|
|
42
|
-
if (tools && !isToggledGpsTools) {
|
|
43
|
-
addPopup(
|
|
44
|
-
{
|
|
45
|
-
winType: "component",
|
|
46
|
-
popupId: GPS_TOOLS_POPUP_ID,
|
|
47
|
-
title: getLabel(MAP_DICCTIONARY.LABEL_GPSTOOLS_NAME),
|
|
48
|
-
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_ICONS.MAP_GPS_TOOLS_TOOL}`,
|
|
49
|
-
component: tools,
|
|
50
|
-
onMouseDown,
|
|
51
|
-
defaultPosition: GPS_TOOLS_POPUP_DEFAULT_POSITION
|
|
52
|
-
},
|
|
53
|
-
{ closeOthers: true }
|
|
54
|
-
);
|
|
55
|
-
} else {
|
|
56
|
-
close(GPS_TOOLS_POPUP_ID);
|
|
57
|
-
}
|
|
58
|
-
e.stopPropagation();
|
|
59
|
-
};
|
|
60
|
-
const onMeasureToolClick = (e) => {
|
|
61
|
-
if (!isToggledMeasureTool) {
|
|
62
|
-
addPopup(
|
|
63
|
-
{
|
|
64
|
-
winType: "component",
|
|
65
|
-
popupId: "measureTool",
|
|
66
|
-
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_MEASURE_TOOL}`,
|
|
67
|
-
title: getLabel(MAP_DICCTIONARY.LABEL_POPUP_MEASURE),
|
|
68
|
-
component: MeasureTool,
|
|
69
|
-
onMouseDown,
|
|
70
|
-
defaultPosition: MESURE_POPUP_DEFAULT_POSITION
|
|
71
|
-
},
|
|
72
|
-
{ closeOthers: true }
|
|
73
|
-
);
|
|
74
|
-
} else {
|
|
75
|
-
close("measureTool");
|
|
76
|
-
}
|
|
77
|
-
e.stopPropagation();
|
|
78
|
-
};
|
|
79
|
-
return /* @__PURE__ */ jsxs(Control, { position: "topright", prepend: true, className: mapClasses.topRigthToolsRoot, children: [
|
|
80
|
-
tools && /* @__PURE__ */ jsx(
|
|
81
|
-
ToggleIconButton,
|
|
12
|
+
const { GpsTools } = props;
|
|
13
|
+
return /* @__PURE__ */ jsxs(MapControl, { position: "topright", prepend: true, ControlContainer: RightToolsRootStyled, children: [
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
ButtonTool,
|
|
16
|
+
{
|
|
17
|
+
ToolComponent: MapSourcesTool,
|
|
18
|
+
iconId: MAP_ICONS.MAP_SOURCES_TOOL,
|
|
19
|
+
popupId: "sourcesTools",
|
|
20
|
+
dictionaryId: MAP_DICCTIONARY.LABEL_MAP_SOURCES,
|
|
21
|
+
defaultPosition: MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
ButtonTool,
|
|
82
26
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
27
|
+
ToolComponent: MapLayersTool,
|
|
28
|
+
iconId: MAP_ICONS.MAP_LAYERS_TOOL,
|
|
29
|
+
popupId: "layersTools",
|
|
30
|
+
dictionaryId: MAP_DICCTIONARY.LABEL_LAYERS,
|
|
31
|
+
defaultPosition: MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION
|
|
87
32
|
}
|
|
88
33
|
),
|
|
89
34
|
/* @__PURE__ */ jsx(
|
|
90
|
-
|
|
35
|
+
ButtonTool,
|
|
91
36
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
37
|
+
ToolComponent: GpsTools,
|
|
38
|
+
iconId: MAP_ICONS.MAP_GPS_TOOLS_TOOL,
|
|
39
|
+
popupId: "gpsTools",
|
|
40
|
+
dictionaryId: MAP_DICCTIONARY.LABEL_GPSTOOLS_NAME,
|
|
41
|
+
defaultPosition: GPS_TOOLS_POPUP_DEFAULT_POSITION
|
|
96
42
|
}
|
|
97
43
|
),
|
|
98
|
-
/* @__PURE__ */ jsx(
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
ButtonTool,
|
|
46
|
+
{
|
|
47
|
+
ToolComponent: MeasureTool,
|
|
48
|
+
iconId: MAP_ICONS.MAP_MEASURE_TOOL,
|
|
49
|
+
popupId: "measureTools",
|
|
50
|
+
dictionaryId: MAP_DICCTIONARY.LABEL_MEASURE,
|
|
51
|
+
defaultPosition: MESURE_TOOL_POPUP_DEFAULT_POSITION
|
|
52
|
+
}
|
|
53
|
+
)
|
|
99
54
|
] });
|
|
100
55
|
}
|
|
101
56
|
export {
|