@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,7 +1,6 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { default as L, Layer, LeafletEvent, PopupOptions } from 'leaflet';
|
|
3
|
+
import { default as L, Layer, LeafletEvent, Map as LeafletMap, PopupOptions } from 'leaflet';
|
|
5
4
|
import { MapPopupComponent } from '../../popups/types';
|
|
6
5
|
export type FeatureId = string | number;
|
|
7
6
|
/**
|
|
@@ -182,8 +181,7 @@ export interface Feature<G extends Geometry | null = Geometry, P = GeoJsonProper
|
|
|
182
181
|
/**
|
|
183
182
|
* "featureLabel" Etiqueta de la geometria, undenfined si no se quiere mostrar
|
|
184
183
|
*/
|
|
185
|
-
|
|
186
|
-
juan?: string;
|
|
184
|
+
label?: FeatureIconLabel;
|
|
187
185
|
}
|
|
188
186
|
/**
|
|
189
187
|
* A collection of feature objects.
|
|
@@ -256,7 +254,7 @@ export interface GeoJsonImplementedObject {
|
|
|
256
254
|
*/
|
|
257
255
|
bbox?: BBox | undefined;
|
|
258
256
|
}
|
|
259
|
-
export type
|
|
257
|
+
export type CheckedNameProp = 'visible' | 'autoFocus' | 'cluster';
|
|
260
258
|
export type LayerStore = {
|
|
261
259
|
/**
|
|
262
260
|
* "layerId" Indetificador unico entre todas las capas
|
|
@@ -270,6 +268,11 @@ export type LayerStore = {
|
|
|
270
268
|
* "visible" si es visible o no
|
|
271
269
|
*/
|
|
272
270
|
visible?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* "cluster" Cuando la capa es ta enmodo cluster, indica que si las marcas se intersectan
|
|
273
|
+
* debe se grupadas en un icono en indicar cuantas maras hay en el cluster
|
|
274
|
+
*/
|
|
275
|
+
cluster?: boolean;
|
|
273
276
|
/**
|
|
274
277
|
* "autoFocus" Cuando cambia el contedido de las capas, tener esta capa para incluir en el foco global
|
|
275
278
|
* del mapa. Por defecto es false
|
|
@@ -280,14 +283,13 @@ export type LayerStore = {
|
|
|
280
283
|
*/
|
|
281
284
|
clusterAble?: boolean;
|
|
282
285
|
/**
|
|
283
|
-
* "
|
|
286
|
+
* "autoFocusAble" indica si la capa es focusable por el usuario
|
|
284
287
|
*/
|
|
285
|
-
|
|
288
|
+
autoFocusAble?: boolean;
|
|
286
289
|
/**
|
|
287
|
-
* "
|
|
288
|
-
* debe se grupadas en un icono en indicar cuantas maras hay en el cluster
|
|
290
|
+
* "deleteAble" indica si la capa es borrable por el usuario
|
|
289
291
|
*/
|
|
290
|
-
|
|
292
|
+
deleteAble?: boolean;
|
|
291
293
|
/**
|
|
292
294
|
* "geoJsonObject" inidica cual es objeto as rederizas (Un sola capa Feature o FeatureCollection)
|
|
293
295
|
* y los bounds del objeto TODO: depront bounds debe ir directamene en el feature.
|
|
@@ -324,14 +326,6 @@ export interface ForSetSingleFeatureData extends Feature {
|
|
|
324
326
|
export type MapStatus = 'init' | 'ready';
|
|
325
327
|
export type OwnerState = {
|
|
326
328
|
status: MapStatus;
|
|
327
|
-
/**
|
|
328
|
-
* "isMobile" cuando el navegador está en modo celular
|
|
329
|
-
*/
|
|
330
|
-
isMobile: boolean;
|
|
331
|
-
/**
|
|
332
|
-
* "isSkeleton" indica si el componente está en skeleton.
|
|
333
|
-
*/
|
|
334
|
-
isSkeleton: boolean;
|
|
335
329
|
/**
|
|
336
330
|
* focus: Estado de selección asignado por el usuario.
|
|
337
331
|
*
|
|
@@ -341,7 +335,6 @@ export type OwnerState = {
|
|
|
341
335
|
/**
|
|
342
336
|
* Estados que se actulizan por fuera del store, a través de hooks
|
|
343
337
|
*/
|
|
344
|
-
export type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
345
338
|
export type AreaMapType = {
|
|
346
339
|
leftLowerLatitudeOffset: number;
|
|
347
340
|
leftLowerLengthOffset: number;
|
|
@@ -351,44 +344,59 @@ export type AreaMapType = {
|
|
|
351
344
|
leftLowerLength: number;
|
|
352
345
|
mapLatBottomDegree: number;
|
|
353
346
|
};
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
export type
|
|
347
|
+
/**
|
|
348
|
+
* Tipo de fuente de capas
|
|
349
|
+
*/
|
|
350
|
+
export type MapTileSourceId = 'google' | 'bing' | 'others';
|
|
351
|
+
/**
|
|
352
|
+
* Tipo de capa de fuente de mapas
|
|
353
|
+
*/
|
|
354
|
+
export type MapTileSourceLayerId = 'streets' | 'satellite' | 'terrain' | 'hybrid' | 'other_osm' | string;
|
|
355
|
+
export type MapSourceLayerRoadOptionsType = {
|
|
358
356
|
bicyclingLayer: boolean;
|
|
359
357
|
trafficLayer: boolean;
|
|
360
358
|
transitLayer: boolean;
|
|
361
359
|
};
|
|
362
|
-
export
|
|
360
|
+
export interface MapTileSourceBaseLayer {
|
|
363
361
|
/**
|
|
364
|
-
* "
|
|
362
|
+
* "urlTemplate" url de la fuente de capas, de donde se salen los tiles,
|
|
363
|
+
* los subdominios se deben indicar con {s}
|
|
365
364
|
*/
|
|
366
|
-
|
|
365
|
+
urlTemplate: string;
|
|
367
366
|
/**
|
|
368
|
-
* "
|
|
367
|
+
* "options" opciones de la fuente de capas, para definir limitaciones de zoom, subdominios, atribuciones, etc.
|
|
369
368
|
*/
|
|
370
|
-
|
|
369
|
+
options: L.TileLayerOptions;
|
|
371
370
|
/**
|
|
372
|
-
* "
|
|
371
|
+
* "getTileUrl" función que retorna la url de un tile, se usa cuando se necesita hacer un "tile server" que no
|
|
372
|
+
* usa el estand x,y,x por ejemplo bing que usa QuadKey
|
|
373
|
+
* @param coords
|
|
374
|
+
* @returns
|
|
373
375
|
*/
|
|
374
|
-
|
|
376
|
+
getTileUrl?: (coords: L.Coords) => string;
|
|
377
|
+
}
|
|
378
|
+
export interface MapTileSourceLayer extends MapTileSourceBaseLayer {
|
|
375
379
|
/**
|
|
376
|
-
* "
|
|
380
|
+
* "id" identificador unico de la capa
|
|
377
381
|
*/
|
|
378
|
-
|
|
382
|
+
id: MapTileSourceLayerId;
|
|
379
383
|
/**
|
|
380
|
-
* "
|
|
384
|
+
* "type" tipo de capa, puede ser 'roads', 'satellite', 'terrain', 'hybrid'
|
|
385
|
+
* Utilizado para identificar el tipo de capa cuando se usa google maps o algun proveedor que permita diferenciar.
|
|
381
386
|
*/
|
|
382
|
-
|
|
387
|
+
type?: string;
|
|
383
388
|
/**
|
|
384
|
-
* "
|
|
385
|
-
* los subdominios se deben indicar con {s}
|
|
389
|
+
* "dictionaryId" identificador de diccionario para la capa
|
|
386
390
|
*/
|
|
387
|
-
|
|
391
|
+
dictionaryId: string;
|
|
388
392
|
/**
|
|
389
|
-
* "
|
|
393
|
+
* "label" etiqueta de la capa, para cuando no haya diccionario
|
|
390
394
|
*/
|
|
391
|
-
|
|
395
|
+
label?: string;
|
|
396
|
+
/**
|
|
397
|
+
* "iconId" id del icono de la fuente de capas
|
|
398
|
+
*/
|
|
399
|
+
iconId: string;
|
|
392
400
|
/**
|
|
393
401
|
* "hasTrafficLayer" si la fuente de capas tiene capa de tráfico
|
|
394
402
|
*/
|
|
@@ -402,16 +410,27 @@ export type TileLayerSource = {
|
|
|
402
410
|
*/
|
|
403
411
|
hasBicyclingLayer?: boolean;
|
|
404
412
|
/**
|
|
405
|
-
* "roadSelectedOptions"
|
|
413
|
+
* "roadSelectedOptions" opciones de via seleccionadas (bicyclingLayer, trafficLayer, transitLayer) de cada una de las fuentes de capas
|
|
406
414
|
*/
|
|
407
|
-
roadSelectedOptions
|
|
415
|
+
roadSelectedOptions?: MapSourceLayerRoadOptionsType;
|
|
416
|
+
}
|
|
417
|
+
export type MapTileSource = {
|
|
408
418
|
/**
|
|
409
|
-
* "
|
|
410
|
-
* usa el estand x,y,x por ejemplo bing que usa QuadKey
|
|
411
|
-
* @param coords
|
|
412
|
-
* @returns
|
|
419
|
+
* "id" identificador unico de la fuente de capas
|
|
413
420
|
*/
|
|
414
|
-
|
|
421
|
+
id: MapTileSourceId;
|
|
422
|
+
/**
|
|
423
|
+
* "dictionaryId" identificador del diccionario
|
|
424
|
+
*/
|
|
425
|
+
dictionaryId: string;
|
|
426
|
+
/**
|
|
427
|
+
* "iconUrl" url del icono de la fuente de capas
|
|
428
|
+
*/
|
|
429
|
+
imageId: string;
|
|
430
|
+
/**
|
|
431
|
+
* "tileSourceLayers" capas para fuente de mapas (roadmap, satellite, terrain, hybrid, other)
|
|
432
|
+
*/
|
|
433
|
+
layers: MapTileSourceLayer[];
|
|
415
434
|
};
|
|
416
435
|
/**
|
|
417
436
|
* Interface que define las propidades necesarias para utilizar las capas de google.
|
|
@@ -438,22 +457,17 @@ export interface MapState extends GoogleMapState {
|
|
|
438
457
|
* "ownerState" estado del componente, "status" puede ser "init" o "ready
|
|
439
458
|
*/
|
|
440
459
|
ownerState: OwnerState;
|
|
441
|
-
/**
|
|
442
|
-
* "classes" enfocado al funcionamiento de las clases a nivel de map
|
|
443
|
-
*/
|
|
444
|
-
classes: MapClasses;
|
|
445
460
|
/**
|
|
446
461
|
* "currentMapSourceId" ud fuente de mapas actual, por defecto "OSM"
|
|
447
462
|
*/
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
mapSourcesIds: MapSourceId[];
|
|
463
|
+
currentMapSourceLayer: {
|
|
464
|
+
mapSourceId: MapTileSourceId;
|
|
465
|
+
mapSourceLayerId: MapTileSourceLayerId;
|
|
466
|
+
};
|
|
453
467
|
/**
|
|
454
468
|
* "hashMapSources" Layers de trabajo
|
|
455
469
|
*/
|
|
456
|
-
|
|
470
|
+
mapSources: MapTileSource[];
|
|
457
471
|
/**
|
|
458
472
|
* "LayersIds" Layers de trabajo para saber en que orden se muestran en el LayersAdmin
|
|
459
473
|
*/
|
|
@@ -462,22 +476,15 @@ export interface MapState extends GoogleMapState {
|
|
|
462
476
|
* "hashLayers" Layers de trabajo
|
|
463
477
|
*/
|
|
464
478
|
hashLayers: Record<string, LayerStore>;
|
|
465
|
-
/**
|
|
466
|
-
* "visibleCheckedLayers" set de capas checkead que coresponden a la capas visibles, usado en el componente de mapa Viewer, para el grid
|
|
467
|
-
*/
|
|
468
|
-
visibleCheckedLayers: ReadonlySet<string>;
|
|
469
|
-
/**
|
|
470
|
-
* "checkedAutoFocusLayers" Si la capa participa del autofocus global
|
|
471
|
-
*/
|
|
472
|
-
autoFocusCheckedLayers: ReadonlySet<string>;
|
|
473
|
-
/**
|
|
474
|
-
* "checkedClusterLayers" Si la capa es clusterizable
|
|
475
|
-
*/
|
|
476
|
-
clusterCheckedLayers: ReadonlySet<string>;
|
|
477
479
|
/**
|
|
478
480
|
* "getLabel" funcion que usará para traducir las etiquetas de diccionario
|
|
479
481
|
*/
|
|
480
482
|
getLabel: GetLabelType;
|
|
483
|
+
/**
|
|
484
|
+
* hasMapData: se usa para colocar informacion transversal a todas las capas.
|
|
485
|
+
* Esta data no está relacionada con el funcionamiento del mapa, sirve de apoyo para tener accceso a información desde los featureRender o popupComponent
|
|
486
|
+
*/
|
|
487
|
+
hasMapData: Record<any, any>;
|
|
481
488
|
}
|
|
482
489
|
export interface MapStateWithActions extends MapState {
|
|
483
490
|
mapActions: {
|
|
@@ -489,6 +496,19 @@ export interface MapStateWithActions extends MapState {
|
|
|
489
496
|
* Cambia el estado del map
|
|
490
497
|
*/
|
|
491
498
|
setMapState: (state: MapStatus) => void;
|
|
499
|
+
/**
|
|
500
|
+
* Actualiza el ref del mapa, para cuando los elementos no necesariamente estan como children del MapContainer
|
|
501
|
+
* Esta referencia se actualiza cuando se instancia el GPSMap
|
|
502
|
+
*/
|
|
503
|
+
setMapRef: (mapRef: LeafletMap) => void;
|
|
504
|
+
/**
|
|
505
|
+
* Retorna el ref del mapa, para cuando los elementos no necesariamente estan como children del MapContainer
|
|
506
|
+
*/
|
|
507
|
+
getMap: () => LeafletMap | null;
|
|
508
|
+
/**
|
|
509
|
+
* Actualiza la información transversal a todas las capas.
|
|
510
|
+
*/
|
|
511
|
+
setMapData: (data: Record<any, any>) => void;
|
|
492
512
|
/**
|
|
493
513
|
* Modifica toda la capa, reemplanzando todo el geoJson
|
|
494
514
|
*/
|
|
@@ -526,44 +546,35 @@ export interface MapStateWithActions extends MapState {
|
|
|
526
546
|
*/
|
|
527
547
|
featureOpenPoup: (layerId: string, featureId: FeatureId) => void;
|
|
528
548
|
/**
|
|
529
|
-
* Cambia
|
|
549
|
+
* Cambia la propiedad (visible,autoFous,cluser) en la capa especificada
|
|
530
550
|
*/
|
|
531
|
-
setCheckedLayers: (
|
|
551
|
+
setCheckedLayers: (layerId: string, checkedNameProp: CheckedNameProp, newValue: boolean) => void;
|
|
532
552
|
/**
|
|
533
553
|
* Actualiza el map source que se visualiza en el mapa.
|
|
534
554
|
* Solo puede haber uno al tiempo.
|
|
535
555
|
* @param newTileLayerSource
|
|
536
556
|
* @returns
|
|
537
557
|
*/
|
|
538
|
-
|
|
558
|
+
setCurrentMapSourceLayer: (mapSourceType: MapTileSourceId, newId: MapTileSourceLayerId) => void;
|
|
539
559
|
/**
|
|
540
|
-
* Actualiza las opciones de la
|
|
560
|
+
* Actualiza las opciones de la capa perteniente a una fuente especifica
|
|
541
561
|
* @param partialRoadOptions
|
|
542
562
|
* @returns
|
|
543
563
|
*/
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Actualiza la variable de estado "getLabel"
|
|
547
|
-
* @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
|
|
548
|
-
* cambia por el useCallback, cuando el diccionario se carga.
|
|
549
|
-
* @returns void
|
|
550
|
-
*/
|
|
551
|
-
setHandlerGetLabel: (newHandler: GetLabelType) => void;
|
|
552
|
-
/**
|
|
553
|
-
* Modifica los estados que se actualizan externamente al Store
|
|
554
|
-
* @param newIsMobile
|
|
555
|
-
* @returns
|
|
556
|
-
*/
|
|
557
|
-
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
564
|
+
setMapSourceLayerRoadOptions: (mapSourceType: MapTileSourceId, mapSourceLayerId: MapTileSourceLayerId, partialRoadOptions: Partial<MapSourceLayerRoadOptionsType>) => void;
|
|
558
565
|
};
|
|
559
566
|
}
|
|
560
567
|
export type DefaultMapStoreProps = Omit<MapState, 'currentLayer'>;
|
|
561
|
-
export type InitialMapStoreProps = Pick<MapState, 'getLabel' | 'ownerState' | 'googleMapsApiKey' | 'googleMapVersion' | 'storeId'> & Partial<DefaultMapStoreProps>;
|
|
568
|
+
export type InitialMapStoreProps = Pick<MapState, 'getLabel' | 'ownerState' | 'googleMapsApiKey' | 'googleMapVersion' | 'storeId' | 'hasMapData'> & Partial<DefaultMapStoreProps>;
|
|
562
569
|
export interface MapProviderProps extends Pick<MapState, 'storeId' | 'googleMapsApiKey' | 'googleMapVersion'> {
|
|
563
570
|
storeDevtoolsEnabled?: boolean;
|
|
564
571
|
/**
|
|
565
572
|
* Capas iniciales del mapa
|
|
566
573
|
*/
|
|
567
574
|
initialLayers?: InitialLayer[];
|
|
575
|
+
/**
|
|
576
|
+
* Datos iniciales del mapa, estos datos no está relacionados con el funcionamiento del mapa, sirve de apoyo para tener accceso a información desde los featureRender o popupComponent
|
|
577
|
+
*/
|
|
578
|
+
initialMapData?: Record<any, any>;
|
|
568
579
|
children: ReactNode;
|
|
569
580
|
}
|
|
@@ -5,28 +5,39 @@ export declare const MAP_DICCTIONARY: {
|
|
|
5
5
|
* Generales
|
|
6
6
|
*/
|
|
7
7
|
readonly LABEL_GPSTOOLS_NAME: "map.label_gpstools_name";
|
|
8
|
-
readonly
|
|
8
|
+
readonly LABEL_MEASURE: "map.label_measure";
|
|
9
9
|
readonly LABEL_MEASURE_START: "map.label_measure_start";
|
|
10
10
|
readonly LABEL_MEASURE_CANCEL: "map.label_measure_cancel";
|
|
11
11
|
readonly LABEL_MEASURE_DISTANCE: "map.label_measure_distance";
|
|
12
12
|
readonly LABEL_MEASURE_AREA: "map.label_measure_area";
|
|
13
13
|
readonly LABEL_MEASURE_UNIT: "map.label_measure_unit";
|
|
14
|
-
readonly LABEL_MEASURE_UNIT_BASE_KILOMETERS: "map.label_measure_unit_base_kilometers";
|
|
15
14
|
readonly LABEL_MEASURE_REMOVE_POINT: "map.label_measure_remove_point";
|
|
15
|
+
readonly LABEL_MEASURE_UNIT_KILOMETERS: "map.label_measure_unit_kilometers";
|
|
16
|
+
readonly LABEL_MEASURE_UNIT_METERS: "map.label_measure_unit_meters";
|
|
17
|
+
readonly LABEL_MEASURE_UNIT_MILES: "map.label_measure_unit_miles";
|
|
18
|
+
readonly LABEL_MEASURE_UNIT_KILOMETERS_SYMBOL: "map.label_measure_unit_kilometers_symbol";
|
|
19
|
+
readonly LABEL_MEASURE_UNIT_METERS_SYMBOL: "map.label_measure_unit_meters_symbol";
|
|
20
|
+
readonly LABEL_MEASURE_UNIT_MILES_SYMBOL: "map.label_measure_unit_miles_symbol";
|
|
16
21
|
/** Layers */
|
|
17
|
-
readonly LABEL_LAYERS: "map.
|
|
22
|
+
readonly LABEL_LAYERS: "map.label_layers";
|
|
18
23
|
readonly LABEL_LAYER_NAME: "map.label_layer_name";
|
|
19
24
|
readonly LABEL_LAYER_VISIBLE: "map.label_layer_visible";
|
|
20
25
|
readonly LABEL_LAYER_AUTOFOCUS: "map.label_layer_autofocus";
|
|
21
26
|
readonly LABEL_LAYER_CLUSTER: "map.label_layer_cluster";
|
|
22
|
-
readonly
|
|
27
|
+
readonly LABEL_LAYER_DELETE: "map.label_layer_delete";
|
|
23
28
|
/** Map Sources */
|
|
24
29
|
readonly LABEL_MAP_SOURCES: "map.label_map_sources";
|
|
25
30
|
readonly LABEL_TILE_OSM: "map.label_tile_osm";
|
|
26
|
-
readonly
|
|
27
|
-
readonly LABEL_TILE_GOOGLE_SATELLITE: "map.label_tile_google_satellite";
|
|
28
|
-
readonly LABEL_TILE_GOOGLE_HYBRID: "map.label_tile_google_hybrid";
|
|
31
|
+
readonly LABEL_TILE_GOOGLE: "map.label_tile_google";
|
|
29
32
|
readonly LABEL_TILE_BING: "map.label_tile_bing";
|
|
33
|
+
readonly LABEL_TILE_OTHERS: "map.label_tile_others";
|
|
34
|
+
readonly LABEL_TILE_CUSTOM: "map.label_tile_custom";
|
|
35
|
+
readonly LABEL_TILE_STREETS: "map.label_tile_streets";
|
|
36
|
+
readonly LABEL_TILE_SATELLITE: "map.label_tile_satellite";
|
|
37
|
+
readonly LABEL_TILE_HYBRID: "map.label_tile_hybrid";
|
|
38
|
+
readonly LABEL_TILE_TERRAIN: "map.label_tile_terrain";
|
|
39
|
+
readonly LABEL_MAP_SOURCE_ROAD_TRAFFIC: "map.label_map_source_road_traffic";
|
|
40
|
+
readonly LABEL_MAP_SOURCE_ROAD_TRANSIT: "map.label_map_source_road_transit";
|
|
41
|
+
readonly LABEL_MAP_SOURCE_ROAD_BICYCLING: "map.label_map_source_road_bicycling";
|
|
30
42
|
};
|
|
31
43
|
export type TypeDictionary = typeof MAP_DICCTIONARY;
|
|
32
|
-
export declare const getMapToolsDictionary: (key: keyof TypeDictionary) => string;
|
|
@@ -7,23 +7,36 @@ const MAP_DICCTIONARY = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Generales
|
|
9
9
|
*/
|
|
10
|
-
LABEL_GPSTOOLS_NAME:
|
|
11
|
-
|
|
12
|
-
LABEL_MEASURE_START:
|
|
13
|
-
LABEL_MEASURE_CANCEL:
|
|
14
|
-
LABEL_MEASURE_UNIT:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
LABEL_GPSTOOLS_NAME: `${MAP_DICTIONARY_ID}.label_gpstools_name`,
|
|
11
|
+
LABEL_MEASURE: `${MAP_DICTIONARY_ID}.label_measure`,
|
|
12
|
+
LABEL_MEASURE_START: `${MAP_DICTIONARY_ID}.label_measure_start`,
|
|
13
|
+
LABEL_MEASURE_CANCEL: `${MAP_DICTIONARY_ID}.label_measure_cancel`,
|
|
14
|
+
LABEL_MEASURE_UNIT: `${MAP_DICTIONARY_ID}.label_measure_unit`,
|
|
15
|
+
LABEL_MEASURE_REMOVE_POINT: `${MAP_DICTIONARY_ID}.label_measure_remove_point`,
|
|
16
|
+
LABEL_MEASURE_UNIT_KILOMETERS: `${MAP_DICTIONARY_ID}.label_measure_unit_kilometers`,
|
|
17
|
+
LABEL_MEASURE_UNIT_METERS: `${MAP_DICTIONARY_ID}.label_measure_unit_meters`,
|
|
18
|
+
LABEL_MEASURE_UNIT_MILES: `${MAP_DICTIONARY_ID}.label_measure_unit_miles`,
|
|
19
|
+
LABEL_MEASURE_UNIT_KILOMETERS_SYMBOL: `${MAP_DICTIONARY_ID}.label_measure_unit_kilometers_symbol`,
|
|
20
|
+
LABEL_MEASURE_UNIT_METERS_SYMBOL: `${MAP_DICTIONARY_ID}.label_measure_unit_meters_symbol`,
|
|
21
|
+
LABEL_MEASURE_UNIT_MILES_SYMBOL: `${MAP_DICTIONARY_ID}.label_measure_unit_miles_symbol`,
|
|
22
|
+
/** Layers */
|
|
23
|
+
LABEL_LAYERS: `${MAP_DICTIONARY_ID}.label_layers`,
|
|
24
|
+
LABEL_LAYER_AUTOFOCUS: `${MAP_DICTIONARY_ID}.label_layer_autofocus`,
|
|
25
|
+
LABEL_LAYER_CLUSTER: `${MAP_DICTIONARY_ID}.label_layer_cluster`,
|
|
26
|
+
LABEL_LAYER_DELETE: `${MAP_DICTIONARY_ID}.label_layer_delete`,
|
|
27
|
+
/** Map Sources */
|
|
28
|
+
LABEL_MAP_SOURCES: `${MAP_DICTIONARY_ID}.label_map_sources`,
|
|
29
|
+
LABEL_TILE_OSM: `${MAP_DICTIONARY_ID}.label_tile_osm`,
|
|
30
|
+
LABEL_TILE_GOOGLE: `${MAP_DICTIONARY_ID}.label_tile_google`,
|
|
31
|
+
LABEL_TILE_BING: `${MAP_DICTIONARY_ID}.label_tile_bing`,
|
|
32
|
+
LABEL_TILE_OTHERS: `${MAP_DICTIONARY_ID}.label_tile_others`,
|
|
33
|
+
LABEL_TILE_STREETS: `${MAP_DICTIONARY_ID}.label_tile_streets`,
|
|
34
|
+
LABEL_TILE_SATELLITE: `${MAP_DICTIONARY_ID}.label_tile_satellite`,
|
|
35
|
+
LABEL_TILE_HYBRID: `${MAP_DICTIONARY_ID}.label_tile_hybrid`,
|
|
36
|
+
LABEL_TILE_TERRAIN: `${MAP_DICTIONARY_ID}.label_tile_terrain`,
|
|
37
|
+
LABEL_MAP_SOURCE_ROAD_TRAFFIC: `${MAP_DICTIONARY_ID}.label_map_source_road_traffic`,
|
|
38
|
+
LABEL_MAP_SOURCE_ROAD_TRANSIT: `${MAP_DICTIONARY_ID}.label_map_source_road_transit`,
|
|
39
|
+
LABEL_MAP_SOURCE_ROAD_BICYCLING: `${MAP_DICTIONARY_ID}.label_map_source_road_bicycling`
|
|
27
40
|
/** Popups */
|
|
28
41
|
};
|
|
29
42
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ControlProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
* crea un componente react dentro de un control de leaflet, utilizando una tecnica
|
|
3
|
+
* crea un componente react dentro de un control de leaflet, utilizando una tecnica de portal diferente a createPortal
|
|
4
4
|
* Dependiendo de la posicion del control, este se agrega en la parte correspondiente del mapa, por defecto es topright
|
|
5
5
|
* @param props
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
export default
|
|
8
|
+
export declare const MapControl: (props: ControlProps) => JSX.Element;
|
|
9
|
+
export default MapControl;
|
|
@@ -9,9 +9,10 @@ const POSITION_CLASSES = {
|
|
|
9
9
|
topleft: "leaflet-top leaflet-left",
|
|
10
10
|
topright: "leaflet-top leaflet-right"
|
|
11
11
|
};
|
|
12
|
-
const
|
|
12
|
+
const MapControl = (props) => {
|
|
13
|
+
const { position, children, prepend, ControlContainer } = props;
|
|
13
14
|
const [portalRoot, setPortalRoot] = React.useState(document.createElement("div"));
|
|
14
|
-
const positionClass =
|
|
15
|
+
const positionClass = position && POSITION_CLASSES[position] || POSITION_CLASSES.topright;
|
|
15
16
|
const controlContainerRef = React.createRef();
|
|
16
17
|
const map = useMap();
|
|
17
18
|
React.useEffect(() => {
|
|
@@ -27,16 +28,17 @@ const Control = (props) => {
|
|
|
27
28
|
}, [positionClass]);
|
|
28
29
|
React.useEffect(() => {
|
|
29
30
|
if (portalRoot !== null) {
|
|
30
|
-
if (
|
|
31
|
+
if (prepend !== void 0 && prepend === true) {
|
|
31
32
|
portalRoot.prepend(controlContainerRef.current);
|
|
32
33
|
} else {
|
|
33
34
|
portalRoot.append(controlContainerRef.current);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
}, [portalRoot,
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
}, [portalRoot, prepend, controlContainerRef]);
|
|
38
|
+
const finalClassName = clsx("leaflet-control");
|
|
39
|
+
const Container = ControlContainer || "div";
|
|
40
|
+
return /* @__PURE__ */ jsx(Container, { ref: controlContainerRef, className: finalClassName, children });
|
|
39
41
|
};
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
MapControl as M
|
|
42
44
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type StyledComponentType = React.ComponentType<{
|
|
3
|
+
ref?: React.LegacyRef<HTMLDivElement>;
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
ownerState?: any;
|
|
7
|
+
}>;
|
|
8
|
+
export interface ControlProps {
|
|
9
|
+
/**
|
|
10
|
+
* Posicion del control o barra de herramientas
|
|
11
|
+
*/
|
|
12
|
+
position: L.ControlPosition;
|
|
13
|
+
/**
|
|
14
|
+
* Hijos del control o barra de herramientas
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Prepend del control, si es true, el control se agrega al inicio de la barra de herramientas
|
|
19
|
+
*/
|
|
20
|
+
prepend?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* controlContainer - Componente styled que actúa como contenedor
|
|
23
|
+
*/
|
|
24
|
+
ControlContainer?: StyledComponentType;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -20,7 +20,7 @@ declare module 'leaflet' {
|
|
|
20
20
|
*/
|
|
21
21
|
removeGoogleLayer(googleLayerName: string): void;
|
|
22
22
|
}
|
|
23
|
-
type GoogleMutantType = '
|
|
23
|
+
type GoogleMutantType = 'roads' | 'satellite' | 'terrain' | 'hybrid';
|
|
24
24
|
interface GoogleMutantStyler {
|
|
25
25
|
hue?: string | undefined;
|
|
26
26
|
lightness?: number | undefined;
|
|
@@ -3,7 +3,7 @@ import { Circle, Polyline, Polygon } from "react-leaflet";
|
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import { u as useMapStore } from "../../hooks/useMapStore/index.js";
|
|
5
5
|
import React, { useState, useEffect, useCallback } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { a as MARKER_COLOR_DEFAULT, L as LABEL_BK_COLOR_DEFAULT, b as LABEL_COLOR_DEFAULT, S as SVG_ICON_DEFAULT } from "../../constants.js";
|
|
7
7
|
import { M as MarkerIconLabel } from "../MarkerIconLabel/index.js";
|
|
8
8
|
import { F as FALLBACK_SVG } from "./constants.js";
|
|
9
9
|
import { P as PolylineWithArrows } from "../../pluginLayers/PolylineWithArrows/index.js";
|
|
@@ -19,7 +19,7 @@ const CommonFeatureRender = (props) => {
|
|
|
19
19
|
id: gObject.object.id,
|
|
20
20
|
geometry: gObject.object.geometry,
|
|
21
21
|
properties: gObject.object.properties,
|
|
22
|
-
featureLabel: gObject.object.
|
|
22
|
+
featureLabel: gObject.object.label,
|
|
23
23
|
popupRender: state.hashLayers[layerId].popupComponent,
|
|
24
24
|
popupOptions: state.hashLayers[layerId].popupOptions
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ const CommonFeatureRender = (props) => {
|
|
|
30
30
|
id: feat.id,
|
|
31
31
|
geometry: feat.geometry,
|
|
32
32
|
properties: feat.properties,
|
|
33
|
-
featureLabel: feat.
|
|
33
|
+
featureLabel: feat.label,
|
|
34
34
|
popupRender: state.hashLayers[layerId].popupComponent,
|
|
35
35
|
popupOptions: state.hashLayers[layerId].popupOptions
|
|
36
36
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import L__default from "leaflet";
|
|
2
|
-
import { L as LABEL_BK_COLOR_DEFAULT,
|
|
2
|
+
import { L as LABEL_BK_COLOR_DEFAULT, b as LABEL_COLOR_DEFAULT } from "../../constants.js";
|
|
3
3
|
import { m as mapClasses } from "../../classes/index.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
const FeatureDivIconLabel = (props) => {
|
|
@@ -6,10 +6,11 @@ import { PopupOptions } from 'leaflet';
|
|
|
6
6
|
export interface MyPopupProps extends PopupOptions {
|
|
7
7
|
onOpen?: (properties: GeoJsonProperties) => void;
|
|
8
8
|
}
|
|
9
|
+
export type FeaturePopupOptions = Omit<MyPopupProps, 'content'>;
|
|
9
10
|
export interface FeatureDescriptionProps extends DivIconFeatureDescriptionProps, Omit<MarkerProps, 'children'> {
|
|
10
11
|
withPoint?: boolean;
|
|
11
|
-
popupRender?: MapPopupComponent | undefined;
|
|
12
12
|
properties?: GeoJsonProperties;
|
|
13
|
-
|
|
13
|
+
popupRender?: MapPopupComponent;
|
|
14
|
+
popupOptions?: FeaturePopupOptions;
|
|
14
15
|
[name: string]: any;
|
|
15
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "useDisableMapEventsOnFlag" se encarga de desactivar el zoom por doble click y por scroll
|
|
3
|
+
* cuando se activa el flag y los restaura cuando se desactiva el flag.
|
|
4
|
+
* @param nodeElement
|
|
5
|
+
*/
|
|
6
|
+
export declare function useDisableMapEventsOnFlag(flag: boolean): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useRef, useEffect } from "react";
|
|
2
|
+
import { useMap } from "react-leaflet";
|
|
3
|
+
function useDisableMapEventsOnFlag(flag) {
|
|
4
|
+
const map = useMap();
|
|
5
|
+
const refPreviousFlag = useRef(false);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (!map || refPreviousFlag.current === flag) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (flag) {
|
|
11
|
+
refPreviousFlag.current = true;
|
|
12
|
+
map.dragging.disable();
|
|
13
|
+
map.doubleClickZoom.disable();
|
|
14
|
+
map.scrollWheelZoom.disable();
|
|
15
|
+
map.touchZoom.disable();
|
|
16
|
+
map.boxZoom.disable();
|
|
17
|
+
map.keyboard.disable();
|
|
18
|
+
} else {
|
|
19
|
+
map.dragging.enable();
|
|
20
|
+
map.scrollWheelZoom.enable();
|
|
21
|
+
map.doubleClickZoom.enable();
|
|
22
|
+
map.touchZoom.enable();
|
|
23
|
+
map.boxZoom.enable();
|
|
24
|
+
map.keyboard.enable();
|
|
25
|
+
}
|
|
26
|
+
refPreviousFlag.current = flag;
|
|
27
|
+
}, [map, flag]);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
useDisableMapEventsOnFlag as u
|
|
31
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* "useDisableMapEventsOnMouseOver" se encarga de desactivar el zoom por doble click y por scroll
|
|
3
|
+
* cuando se está sobre el div que recibe como parámetro.
|
|
4
|
+
* @param nodeElement
|
|
5
|
+
*/
|
|
6
|
+
export declare function useDisableMapEventsOnMouseOver(nodeElement: HTMLDivElement | null): void;
|