@m4l/gclick 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/components/ReportsViewer/hooks/useSheetContent/useSheetContent.d.ts +1 -1
  2. package/components/formatters/CourseFormatter/CourseFormatter.d.ts.map +1 -0
  3. package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.js +2 -2
  4. package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +1 -0
  5. package/components/formatters/CourseFormatter/constants.d.ts.map +1 -0
  6. package/components/formatters/CourseFormatter/dictionary.d.ts.map +1 -0
  7. package/components/formatters/CourseFormatter/helper.d.ts.map +1 -0
  8. package/components/formatters/CourseFormatter/index.d.ts.map +1 -0
  9. package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +1 -0
  10. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +4 -0
  11. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +1 -0
  12. package/components/formatters/CourseFormatter/types.d.ts.map +1 -0
  13. package/components/formatters/index.d.ts +2 -0
  14. package/components/formatters/index.d.ts.map +1 -0
  15. package/components/index.d.ts +1 -0
  16. package/components/index.d.ts.map +1 -1
  17. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +1 -1
  18. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts.map +1 -1
  19. package/components/indicators/IndicatorBattery/IndicatorBattery.js +51 -53
  20. package/components/maps/components/GpsMap/GpsMap.js +16 -16
  21. package/components/maps/components/GpsMap/GpsMap.styles.d.ts.map +1 -1
  22. package/components/maps/components/GpsMap/GpsMap.styles.js +2 -0
  23. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts +38 -0
  24. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts.map +1 -0
  25. package/components/maps/components/GpsMap/__testing__/constants.d.ts +36 -0
  26. package/components/maps/components/GpsMap/__testing__/constants.d.ts.map +1 -0
  27. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts +54 -0
  28. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts.map +1 -0
  29. package/components/maps/components/GpsMap/__testing__/index.d.ts +5 -0
  30. package/components/maps/components/GpsMap/__testing__/index.d.ts.map +1 -0
  31. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts +51 -0
  32. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts.map +1 -0
  33. package/components/maps/components/GpsMap/classes/index.d.ts +1 -2
  34. package/components/maps/components/GpsMap/classes/index.d.ts.map +1 -1
  35. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts.map +1 -1
  36. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +6 -10
  37. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts +21 -0
  38. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts.map +1 -0
  39. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js +27 -0
  40. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
  41. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
  42. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +1 -1
  43. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
  44. package/components/maps/components/GpsMap/contexts/MapContext/store.js +113 -139
  45. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +73 -52
  46. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
  47. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +4 -4
  48. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
  49. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +192 -209
  50. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -4
  51. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts.map +1 -1
  52. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +46 -66
  53. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +2 -10
  54. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts.map +1 -1
  55. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts +17 -0
  56. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts.map +1 -0
  57. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js +53 -0
  58. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts +3 -0
  59. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map +1 -0
  60. package/components/maps/components/GpsMap/hooks/debug/index.d.ts +2 -0
  61. package/components/maps/components/GpsMap/hooks/debug/index.d.ts.map +1 -0
  62. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → debug/markerDecimation}/GridDebugVisualization.d.ts +1 -1
  63. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.d.ts.map +1 -0
  64. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts +3 -0
  65. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts.map +1 -0
  66. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts +4 -0
  67. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts.map +1 -0
  68. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts +71 -0
  69. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts.map +1 -0
  70. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts +7 -0
  71. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts.map +1 -0
  72. package/components/maps/components/GpsMap/hooks/index.d.ts +5 -4
  73. package/components/maps/components/GpsMap/hooks/index.d.ts.map +1 -1
  74. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +2 -1
  75. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map +1 -1
  76. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js +10 -11
  77. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts +2 -0
  78. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts.map +1 -0
  79. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.js +4 -0
  80. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts +3 -0
  81. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts.map +1 -0
  82. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter}/constants.js +2 -3
  83. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts} +1 -1
  84. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts.map +1 -0
  85. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.js → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.js} +4 -2
  86. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +1 -0
  87. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.js +1 -1
  88. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +1 -0
  89. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +22 -0
  90. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.d.ts.map +1 -0
  91. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts +2 -0
  92. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts.map +1 -0
  93. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/types.d.ts +1 -1
  94. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.d.ts.map +1 -0
  95. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts +3 -0
  96. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map +1 -0
  97. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts +9 -0
  98. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts.map +1 -0
  99. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js +16 -0
  100. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts +3 -0
  101. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts.map +1 -0
  102. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts +16 -0
  103. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts.map +1 -0
  104. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map +1 -0
  105. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.js +75 -0
  106. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts +13 -0
  107. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts.map +1 -0
  108. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.js +21 -0
  109. package/components/maps/components/GpsMap/popups/index.d.ts +0 -1
  110. package/components/maps/components/GpsMap/popups/index.d.ts.map +1 -1
  111. package/components/maps/components/GpsMap/popups/types.d.ts +4 -0
  112. package/components/maps/components/GpsMap/popups/types.d.ts.map +1 -1
  113. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts +6 -0
  114. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts.map +1 -0
  115. package/components/maps/components/GpsMap/subcomponents/Controls/{index.js → Controls.js} +5 -5
  116. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +1 -5
  117. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts.map +1 -1
  118. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts +8 -0
  119. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts.map +1 -0
  120. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/{index.js → ButtonsToolsList.js} +9 -8
  121. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts.map +1 -1
  122. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +31 -20
  123. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts +2 -0
  124. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts.map +1 -1
  125. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts +15 -0
  126. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts.map +1 -0
  127. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.js +90 -0
  128. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts +3 -5
  129. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts.map +1 -1
  130. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.js +35 -38
  131. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +2 -1
  132. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts.map +1 -1
  133. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +31 -25
  134. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +1 -7
  135. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts.map +1 -1
  136. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts +7 -0
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts.map +1 -0
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.js +22 -0
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +1 -5
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts.map +1 -1
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.d.ts.map +1 -1
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.js +10 -9
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.js +7 -7
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts +6 -0
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts.map +1 -0
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -5
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts.map +1 -1
  148. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts +5 -0
  149. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts.map +1 -0
  150. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -4
  151. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts.map +1 -1
  152. package/components/maps/components/GpsMap/subcomponents/{Layers/index.d.ts → LayersContainer/LayersContainer.d.ts} +1 -1
  153. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.d.ts.map +1 -0
  154. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.js +23 -0
  155. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +2 -0
  156. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts.map +1 -0
  157. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.d.ts → LayersContainer/subcomponents/Layer/Layer.d.ts} +1 -1
  158. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -0
  159. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.js → LayersContainer/subcomponents/Layer/Layer.js} +8 -8
  160. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts +2 -0
  161. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts.map +1 -0
  162. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts +3 -0
  163. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts.map +1 -0
  164. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.js +51 -0
  165. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
  166. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +1 -0
  167. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +1 -0
  168. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts} +1 -1
  169. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts.map +1 -0
  170. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts +2 -0
  171. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +1 -0
  172. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +1 -0
  173. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/types.d.ts.map +1 -0
  174. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts +2 -0
  175. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts.map +1 -0
  176. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts +7 -0
  177. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts.map +1 -0
  178. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.js +30 -0
  179. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +1 -6
  180. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts.map +1 -1
  181. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts +10 -0
  182. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts.map +1 -0
  183. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -9
  184. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts.map +1 -1
  185. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts +7 -0
  186. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts.map +1 -0
  187. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +1 -6
  188. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts.map +1 -1
  189. package/components/maps/components/GpsMap/types.d.ts +18 -0
  190. package/components/maps/components/GpsMap/types.d.ts.map +1 -1
  191. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +1 -1
  192. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts.map +1 -1
  193. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts.map +1 -1
  194. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +11 -10
  195. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts.map +1 -1
  196. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +5 -5
  197. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts.map +1 -1
  198. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.js +6 -6
  199. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts +14 -6
  200. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts.map +1 -1
  201. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts.map +1 -1
  202. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +32 -40
  203. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +8 -7
  204. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.js +23 -24
  205. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts.map +1 -1
  206. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +37 -37
  207. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts.map +1 -1
  208. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +36 -35
  209. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts +1 -0
  210. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts.map +1 -1
  211. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts.map +1 -1
  212. package/formatters/index.d.ts +1 -1
  213. package/formatters/index.d.ts.map +1 -1
  214. package/index.js +124 -126
  215. package/internal/storybookRuntime.d.ts +27 -0
  216. package/internal/storybookRuntime.d.ts.map +1 -0
  217. package/internal/storybookRuntime.js +19 -0
  218. package/package.json +3 -3
  219. package/components/DeviceStatus/dictionary.js +0 -8
  220. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +0 -9
  221. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts.map +0 -1
  222. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +0 -2
  223. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts.map +0 -1
  224. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +0 -9
  225. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts.map +0 -1
  226. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +0 -7
  227. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts.map +0 -1
  228. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/GridDebugVisualization.d.ts.map +0 -1
  229. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts +0 -6
  230. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts.map +0 -1
  231. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +0 -1
  232. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +0 -1
  233. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +0 -22
  234. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/index.d.ts.map +0 -1
  235. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts.map +0 -1
  236. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types.d.ts.map +0 -1
  237. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts +0 -84
  238. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts.map +0 -1
  239. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.d.ts.map +0 -1
  240. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.js +0 -83
  241. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts +0 -6
  242. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts.map +0 -1
  243. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +0 -8
  244. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts.map +0 -1
  245. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +0 -32
  246. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +0 -3
  247. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts.map +0 -1
  248. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +0 -146
  249. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +0 -6
  250. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts.map +0 -1
  251. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +0 -6
  252. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +0 -17
  253. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts.map +0 -1
  254. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +0 -20
  255. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +0 -3
  256. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts.map +0 -1
  257. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +0 -34
  258. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts.map +0 -1
  259. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +0 -55
  260. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +0 -14
  261. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts.map +0 -1
  262. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +0 -4
  263. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +0 -7
  264. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts.map +0 -1
  265. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +0 -111
  266. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +0 -6
  267. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts.map +0 -1
  268. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +0 -18
  269. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +0 -6
  270. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts.map +0 -1
  271. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +0 -7
  272. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts.map +0 -1
  273. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +0 -11
  274. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts.map +0 -1
  275. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.js +0 -18
  276. package/components/maps/components/GpsMap/subcomponents/Layers/index.d.ts.map +0 -1
  277. package/components/maps/components/GpsMap/subcomponents/Layers/index.js +0 -21
  278. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +0 -14
  279. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts.map +0 -1
  280. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/index.d.ts.map +0 -1
  281. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +0 -11
  282. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +0 -1
  283. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.js +0 -29
  284. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +0 -1
  285. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +0 -1
  286. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +0 -1
  287. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/types.d.ts.map +0 -1
  288. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +0 -30
  289. package/formatters/CourseFormatter/CourseFormatter.d.ts.map +0 -1
  290. package/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +0 -1
  291. package/formatters/CourseFormatter/constants.d.ts.map +0 -1
  292. package/formatters/CourseFormatter/dictionary.d.ts.map +0 -1
  293. package/formatters/CourseFormatter/helper.d.ts.map +0 -1
  294. package/formatters/CourseFormatter/index.d.ts.map +0 -1
  295. package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +0 -1
  296. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -4
  297. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +0 -1
  298. package/formatters/CourseFormatter/types.d.ts.map +0 -1
  299. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.d.ts +0 -0
  300. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.d.ts +0 -0
  301. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.js +0 -0
  302. /package/{formatters → components/formatters}/CourseFormatter/constants.d.ts +0 -0
  303. /package/{formatters → components/formatters}/CourseFormatter/constants.js +0 -0
  304. /package/{formatters → components/formatters}/CourseFormatter/dictionary.d.ts +0 -0
  305. /package/{formatters → components/formatters}/CourseFormatter/dictionary.js +0 -0
  306. /package/{formatters → components/formatters}/CourseFormatter/helper.d.ts +0 -0
  307. /package/{formatters → components/formatters}/CourseFormatter/helper.js +0 -0
  308. /package/{formatters → components/formatters}/CourseFormatter/index.d.ts +0 -0
  309. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -0
  310. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.js +0 -0
  311. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterSlots.js +0 -0
  312. /package/{formatters → components/formatters}/CourseFormatter/types.d.ts +0 -0
  313. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts +0 -0
  314. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts +0 -0
  315. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/index.d.ts +0 -0
  316. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation}/useFilterDecimation.d.ts +0 -0
  317. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/{index.js → MeasureData.js} +0 -0
  318. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/{index.js → MyActions.js} +0 -0
  319. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  320. /package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.js → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.js} +0 -0
  321. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  322. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/types.d.ts +0 -0
  323. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/{index.js → TileLayerGoogle.js} +0 -0
  324. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/{index.js → TileLayerOthers.js} +0 -0
@@ -0,0 +1,53 @@
1
+ import { jsx as a } from "@emotion/react/jsx-runtime";
2
+ import { useState as L, useRef as b, useCallback as c, useEffect as M } from "react";
3
+ import { useMapStore as h } from "../../hooks/useMapStore/index.js";
4
+ import { MarkerIconLabel as q } from "../MarkerIconLabel/index.js";
5
+ function S(i) {
6
+ const {
7
+ layerId: f,
8
+ featureId: d,
9
+ properties: e,
10
+ popupRender: P,
11
+ popupOptions: m,
12
+ eventHandlers: I,
13
+ position: t,
14
+ ...O
15
+ } = i, [v, u] = L(!1), s = b(null), p = P, { onOpenPopup: n, onClosePopup: r } = e || {
16
+ onOpenPopup: void 0,
17
+ onClosePopup: void 0
18
+ }, l = h((C) => {
19
+ const o = C.selectedFeature;
20
+ return !o || !o.openPopup ? null : o.layerId === f && o.featureId === d ? o.requestId : null;
21
+ }), R = c(() => {
22
+ n && e && n(e), u(!0);
23
+ }, [n, e]), k = c(() => {
24
+ r && e && r(e), u(!1);
25
+ }, [r, e]);
26
+ return M(() => {
27
+ l === null || !p || s.current?.openPopup();
28
+ }, [p, l]), /* @__PURE__ */ a(
29
+ q,
30
+ {
31
+ ref: s,
32
+ position: t,
33
+ eventHandlers: {
34
+ ...I,
35
+ popupopen: R,
36
+ popupclose: k
37
+ },
38
+ ...O,
39
+ children: p && e && /* @__PURE__ */ a(
40
+ p,
41
+ {
42
+ isOpen: v,
43
+ properties: e,
44
+ position: t,
45
+ popupOptions: m
46
+ }
47
+ )
48
+ }
49
+ );
50
+ }
51
+ export {
52
+ S as MarkerIconLabelWithPopup
53
+ };
@@ -0,0 +1,3 @@
1
+ export { MarkerIconLabelWithPopup } from './MarkerIconLabelWithPopup';
2
+ export type { MarkerIconLabelWithPopupProps } from './MarkerIconLabelWithPopup';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './markerDecimation';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -3,7 +3,7 @@ interface GridDebugVisualizationProps {
3
3
  cells: GridCell[];
4
4
  }
5
5
  /**
6
- * Componente temporal para visualizar la grilla de muestreo (solo para debug)
6
+ * Temporary overlay that renders the debug sampling grid on top of the map.
7
7
  */
8
8
  export declare function GridDebugVisualization({ cells }: GridDebugVisualizationProps): null;
9
9
  export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridDebugVisualization.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,UAAU,2BAA2B;IACnC,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,EAAE,2BAA2B,QA+C5E"}
@@ -0,0 +1,3 @@
1
+ import { ZoomBasedFilterConfig } from './types';
2
+ export declare const DEFAULT_CONFIG: Required<ZoomBasedFilterConfig>;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,qBAAqB,CAa1D,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { GridDebugVisualization } from './GridDebugVisualization';
2
+ export { useGridDebug } from './useGridDebug';
3
+ export type { GridCell, ZoomBasedFilterConfig } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Configuration for zoom and viewport-based marker filtering.
3
+ */
4
+ export interface ZoomBasedFilterConfig {
5
+ /**
6
+ * Minimum zoom level at which every marker inside the viewport is shown.
7
+ * Below this zoom, filtering applies.
8
+ */
9
+ minZoomForAllMarkers?: number;
10
+ /**
11
+ * Maximum number of markers to show while zoomed out.
12
+ */
13
+ maxMarkersAtMinZoom?: number;
14
+ /**
15
+ * Enables grid-based spatial sampling when the visible marker count exceeds
16
+ * the configured limit.
17
+ */
18
+ useSpatialSampling?: boolean;
19
+ /**
20
+ * Returns grid metadata for debug visualization only.
21
+ */
22
+ showGridDebug?: boolean;
23
+ /**
24
+ * Viewport expansion factor for the debug bounding box.
25
+ * `1` means only the visible area; `1.2` expands by 20% on each side.
26
+ */
27
+ viewportOffsetFactor?: number;
28
+ /**
29
+ * Debounce time in milliseconds for `moveend` and `zoomend`.
30
+ */
31
+ debounceMs?: number;
32
+ /**
33
+ * Enables distance-based decimation when zoomed out.
34
+ */
35
+ useDistanceDecimation?: boolean;
36
+ /**
37
+ * Minimum marker distance, in meters, at low zoom levels.
38
+ */
39
+ minDistanceMetersAtLowZoom?: number;
40
+ /**
41
+ * Minimum marker distance, in meters, at high zoom levels.
42
+ */
43
+ minDistanceMetersAtHighZoom?: number;
44
+ /**
45
+ * Zoom level considered "low" for `minDistanceMetersAtLowZoom`.
46
+ */
47
+ lowZoomLevel?: number;
48
+ /**
49
+ * Zoom level considered "high" for `minDistanceMetersAtHighZoom`.
50
+ */
51
+ highZoomLevel?: number;
52
+ /**
53
+ * When enabled, decimation distributes selected points across the full route
54
+ * distance instead of biasing toward the first points in `featureIds`.
55
+ */
56
+ distributeByPathDistance?: boolean;
57
+ }
58
+ /**
59
+ * Grid cell metadata returned by the debug visualization hook.
60
+ */
61
+ export interface GridCell {
62
+ bounds: {
63
+ north: number;
64
+ south: number;
65
+ east: number;
66
+ west: number;
67
+ };
68
+ featureCount: number;
69
+ selected: boolean;
70
+ }
71
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,7 @@
1
+ import { GridCell, ZoomBasedFilterConfig } from './types';
2
+ /**
3
+ * Returns grid metadata that can be rendered as an overlay while debugging
4
+ * viewport sampling behavior.
5
+ */
6
+ export declare function useGridDebug(featureIds: (string | number)[], layerId: string, config?: ZoomBasedFilterConfig): GridCell[];
7
+ //# sourceMappingURL=useGridDebug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGridDebug.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,qBAAqB,GAC7B,QAAQ,EAAE,CAsDZ"}
@@ -1,8 +1,9 @@
1
1
  export * from './useDisableMapEventsOnMouseOver';
2
2
  export * from './useDisableMapEventsOnFlag';
3
3
  export * from './useMapStore';
4
- export { useFilterDecimation } from './useZoomBasedMarkerFilter/useFilterDecimation';
5
- export { createPixelPathDecimationFilter } from './useZoomBasedMarkerFilter/createPixelPathDecimationFilter';
6
- export type { UseFilterDecimationConfig } from './useZoomBasedMarkerFilter/types';
7
- export type { PixelPathFilterConfig } from './useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types';
4
+ export * from './useRegisterMapToolController';
5
+ export { useFilterDecimation } from './useFilterDecimation';
6
+ export { createPixelPathDecimationFilter } from './useFilterDecimation/decimationMethods';
7
+ export type { UseFilterDecimationConfig } from './useFilterDecimation';
8
+ export type { PixelPathFilterConfig } from './useFilterDecimation/decimationMethods';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,4DAA4D,CAAC;AAC7G,YAAY,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAClF,YAAY,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,YAAY,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC"}
@@ -1,7 +1,8 @@
1
+ import { default as L } from 'leaflet';
1
2
  /**
2
3
  * "useDisableMapEventsOnMouseOver" se encarga de desactivar el zoom por doble click y por scroll
3
4
  * cuando se está sobre el div que recibe como parámetro.
4
5
  * @param nodeElement
5
6
  */
6
- export declare function useDisableMapEventsOnMouseOver(nodeElement: HTMLDivElement | null): void;
7
+ export declare function useDisableMapEventsOnMouseOver(map: L.Map, nodeElement: HTMLDivElement | null): void;
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.tsx"],"names":[],"mappings":"AAYA;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,cAAc,GAAG,IAAI,QAwChF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.tsx"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,SAAS,CAAC;AASxB;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,GAAG,IAAI,QAwC5F"}
@@ -1,19 +1,18 @@
1
- import { useCallback as r, useEffect as l } from "react";
2
- import { useMap as i } from "react-leaflet";
3
- import b from "leaflet";
4
- function m(o) {
5
- const e = i(), a = r(() => {
1
+ import { useCallback as r, useEffect as b } from "react";
2
+ import i from "leaflet";
3
+ function n(e, o) {
4
+ const s = r(() => {
6
5
  e.dragging.disable(), e.doubleClickZoom.disable(), e.scrollWheelZoom.disable(), e.touchZoom.disable(), e.boxZoom.disable(), e.keyboard.disable();
7
- }, [e]), s = r(() => {
6
+ }, [e]), l = r(() => {
8
7
  e.dragging.enable(), e.doubleClickZoom.enable(), e.scrollWheelZoom.enable(), e.touchZoom.enable(), e.boxZoom.enable(), e.keyboard.enable();
9
8
  }, [e]);
10
- l(() => {
9
+ b(() => {
11
10
  if (!(!e || !o))
12
- return b.DomEvent.disableClickPropagation(o), o.addEventListener("mouseover", a), o.addEventListener("mouseleave", s), () => {
13
- o.removeEventListener("mouseover", a), o.removeEventListener("mouseleave", s);
11
+ return i.DomEvent.disableClickPropagation(o), o.addEventListener("mouseover", s), o.addEventListener("mouseleave", l), () => {
12
+ o.removeEventListener("mouseover", s), o.removeEventListener("mouseleave", l);
14
13
  };
15
- }, [a, s, e, o]);
14
+ }, [s, l, e, o]);
16
15
  }
17
16
  export {
18
- m as useDisableMapEventsOnMouseOver
17
+ n as useDisableMapEventsOnMouseOver
19
18
  };
@@ -0,0 +1,2 @@
1
+ export declare const USE_FILTER_DECIMATION_DEFAULT_DEBOUNCE_MS = 150;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yCAAyC,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ const E = 150;
2
+ export {
3
+ E as USE_FILTER_DECIMATION_DEFAULT_DEBOUNCE_MS
4
+ };
@@ -0,0 +1,3 @@
1
+ import { PixelPathFilterConfig } from './types';
2
+ export declare const PIXEL_PATH_DEFAULT_CONFIG: Required<PixelPathFilterConfig>;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,qBAAqB,CAOrE,CAAC"}
@@ -5,8 +5,7 @@ const e = {
5
5
  alwaysShowFirstAndLast: !0,
6
6
  preserveIds: [],
7
7
  maxMarkers: 500
8
- }, t = 150;
8
+ };
9
9
  export {
10
- e as PIXEL_PATH_DEFAULT_CONFIG,
11
- t as USE_FILTER_DECIMATION_DEFAULT_DEBOUNCE_MS
10
+ e as PIXEL_PATH_DEFAULT_CONFIG
12
11
  };
@@ -61,4 +61,4 @@ import { DecimationFilter, PixelPathFilterConfig } from './types';
61
61
  * related map data, then returns the featureIds that should be rendered.
62
62
  */
63
63
  export declare function createPixelPathDecimationFilter(config?: PixelPathFilterConfig): DecimationFilter;
64
- //# sourceMappingURL=index.d.ts.map
64
+ //# sourceMappingURL=createPixelPathDecimationFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPixelPathDecimationFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAGhB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAOjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,CAAC,EAAE,qBAAqB,GAC7B,gBAAgB,CA2KlB"}
@@ -1,5 +1,5 @@
1
1
  import X from "kdbush";
2
- import { PIXEL_PATH_DEFAULT_CONFIG as Z } from "../constants.js";
2
+ import { PIXEL_PATH_DEFAULT_CONFIG as Z } from "./constants.js";
3
3
  import { decimateByPixelDistanceAlongPath as $ } from "./helpers/decimateByPixelDistanceAlongPath.js";
4
4
  import { decimateByConcentrationGrid as j } from "./helpers/decimateByConcentrationGrid.js";
5
5
  function tt(C) {
@@ -45,7 +45,9 @@ function tt(C) {
45
45
  ), G = new Set(
46
46
  H.map((t) => A.points[t].id)
47
47
  );
48
- let m = z.filter((t) => G.has(t));
48
+ let m = z.filter(
49
+ (t) => G.has(t)
50
+ );
49
51
  const P = [], F = /* @__PURE__ */ new Set(), w = (t) => {
50
52
  if (t === void 0 || F.has(t))
51
53
  return;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimateByConcentrationGrid.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,SAAS,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,iBAAiB,CAAC,EAClD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CA+DrB"}
@@ -32,7 +32,7 @@ function x(e, g, r, u, m, v, i, h) {
32
32
  f.has(c) || (f.add(c), l.add(t), s.push(t));
33
33
  }
34
34
  return s.sort(
35
- (t, n) => (w.get(t) ?? -1) - (w.get(n) ?? -1)
35
+ (t, n) => w.get(t) - w.get(n)
36
36
  );
37
37
  }
38
38
  export {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimateByPixelDistanceAlongPath.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,UAAU,EACf,mBAAmB,EAAE,MAAM,EAAE,EAC7B,MAAM,EAAE,iBAAiB,EAAE,EAC3B,gBAAgB,EAAE,MAAM,EACxB,sBAAsB,EAAE,OAAO,EAC/B,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,GAC1C,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAkDrB"}
@@ -0,0 +1,22 @@
1
+ function p(c, l, x, e, r, y) {
2
+ const d = [], i = /* @__PURE__ */ new Set();
3
+ let s = null;
4
+ const f = e * e;
5
+ for (const u of l) {
6
+ const t = x[u], n = c.latLngToLayerPoint([t.lat, t.lng]), h = y?.has(t.id) ?? !1;
7
+ if (s === null) {
8
+ d.push(t.id), i.add(t.id), s = { x: n.x, y: n.y };
9
+ continue;
10
+ }
11
+ if (h) {
12
+ i.has(t.id) || (d.push(t.id), i.add(t.id)), s = { x: n.x, y: n.y };
13
+ continue;
14
+ }
15
+ const o = n.x - s.x, a = n.y - s.y;
16
+ o * o + a * a >= f && (i.has(t.id) || (d.push(t.id), i.add(t.id)), s = { x: n.x, y: n.y });
17
+ }
18
+ return d;
19
+ }
20
+ export {
21
+ p as decimateByPixelDistanceAlongPath
22
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createPixelPathDecimationFilter } from './createPixelPathDecimationFilter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1,4 +1,4 @@
1
- export type { DecimationFilter, DecimationFilterParams, FeatureWithCoords, } from '../../../contexts/MapContext/types';
1
+ export type { DecimationFilter, DecimationFilterParams, FeatureWithCoords, } from '../../../../contexts/MapContext/types';
2
2
  /**
3
3
  * Configuration for the path decimation filter based on pixel distance.
4
4
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAClC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,3 @@
1
+ export { createPixelPathDecimationFilter } from './createPixelPathDecimationFilter';
2
+ export type { PixelPathFilterConfig } from './createPixelPathDecimationFilter/types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,YAAY,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { FeatureId, FeatureWithCoords, GeoJsonImplementedObject } from '../../contexts/MapContext/types';
2
+ /**
3
+ * Extracts point features requested by id and converts GeoJSON coordinates from
4
+ * RFC 7946 `[lng, lat]` order into the `{ lat, lng }` shape used by map helpers.
5
+ *
6
+ * Non-point features are ignored because decimation only operates on point data.
7
+ */
8
+ export declare function getPointFeaturesWithCoords(geoJsonObject: GeoJsonImplementedObject | undefined, featureIds: FeatureId[]): FeatureWithCoords[];
9
+ //# sourceMappingURL=getPointFeaturesWithCoords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPointFeaturesWithCoords.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,SAAS,EACT,iBAAiB,EACjB,wBAAwB,EAEzB,MAAM,iCAAiC,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,wBAAwB,GAAG,SAAS,EACnD,UAAU,EAAE,SAAS,EAAE,GACtB,iBAAiB,EAAE,CAsBrB"}
@@ -0,0 +1,16 @@
1
+ function u(t, n) {
2
+ if (!t || t.object.type !== "FeatureCollection")
3
+ return [];
4
+ if (n.length === 0)
5
+ return [];
6
+ const r = new Set(n);
7
+ return t.object.features.flatMap((e) => {
8
+ if (!r.has(e.id) || e.geometry.type !== "Point")
9
+ return [];
10
+ const o = e, [i, l] = o.geometry.coordinates;
11
+ return [{ id: o.id, lat: l, lng: i }];
12
+ });
13
+ }
14
+ export {
15
+ u as getPointFeaturesWithCoords
16
+ };
@@ -0,0 +1,3 @@
1
+ export { useFilterDecimation } from './useFilterDecimation';
2
+ export type { UseFilterDecimationConfig } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Cross-cutting configuration for `useFilterDecimation`.
3
+ *
4
+ * It affects how recomputation is scheduled after zoom/pan changes, not the
5
+ * decimation algorithm itself.
6
+ */
7
+ export interface UseFilterDecimationConfig {
8
+ /**
9
+ * Debounce time in milliseconds before recalculating after `zoomend` or
10
+ * `moveend`.
11
+ *
12
+ * `0` disables debouncing and recomputes immediately.
13
+ */
14
+ debounceMs?: number;
15
+ }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFilterDecimation.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC/B,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,OAAO,EAC5B,gBAAgB,CAAC,EAAE,gBAAgB,EACnC,MAAM,CAAC,EAAE,yBAAyB,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAiIrB"}
@@ -0,0 +1,75 @@
1
+ import { useState as T, useTransition as _, useRef as g, useEffect as E } from "react";
2
+ import z from "lodash-es/debounce";
3
+ import { useMap as B } from "react-leaflet";
4
+ import { useMapStore as L } from "../useMapStore/index.js";
5
+ import { deepShallow as O } from "@m4l/components";
6
+ import { USE_FILTER_DECIMATION_DEFAULT_DEBOUNCE_MS as v } from "./constants.js";
7
+ import { getPointFeaturesWithCoords as w } from "./getPointFeaturesWithCoords.js";
8
+ function P(r, i, c, n, l) {
9
+ const e = B(), p = l?.debounceMs ?? v, [R, s] = T(() => r), [, o] = _(), f = g(!0), M = g(r);
10
+ M.current = r;
11
+ const C = c && !!n, b = L(
12
+ (d) => C ? w(
13
+ d.hashLayers[i]?.geoJsonObject,
14
+ r
15
+ ) : [],
16
+ O
17
+ );
18
+ E(() => (f.current = !0, () => {
19
+ f.current = !1;
20
+ }), []);
21
+ const m = g(/* @__PURE__ */ new Map());
22
+ return E(() => {
23
+ if (m.current.clear(), !c || !n) {
24
+ o(() => s([...r]));
25
+ return;
26
+ }
27
+ if (r.length === 0) {
28
+ o(() => s([]));
29
+ return;
30
+ }
31
+ if (!e)
32
+ return;
33
+ const d = {
34
+ /**
35
+ * Returns a cached value or computes it with factory and stores it.
36
+ */
37
+ get(t, h) {
38
+ return m.current.has(t) || m.current.set(t, h()), m.current.get(t);
39
+ }
40
+ }, a = () => {
41
+ if (!f.current)
42
+ return;
43
+ const t = M.current;
44
+ if (t.length === 0) {
45
+ o(() => s([]));
46
+ return;
47
+ }
48
+ const h = e.getBounds(), F = e.getZoom(), S = n({
49
+ featureIds: t,
50
+ layerId: i,
51
+ bounds: h,
52
+ zoom: F,
53
+ map: e,
54
+ featuresWithCoords: b,
55
+ cache: d
56
+ });
57
+ f.current && o(() => s(S));
58
+ }, u = p <= 0 ? a : z(a, p);
59
+ return a(), e.on("zoomend", u), e.on("moveend", u), () => {
60
+ u.cancel?.(), e.off("zoomend", u), e.off("moveend", u);
61
+ };
62
+ }, [
63
+ c,
64
+ n,
65
+ p,
66
+ r,
67
+ b,
68
+ i,
69
+ e,
70
+ o
71
+ ]), !c || !n ? r : R;
72
+ }
73
+ export {
74
+ P as useFilterDecimation
75
+ };
@@ -0,0 +1,13 @@
1
+ import { MapToolController, MapToolControllerScope } from '../types';
2
+ type UseRegisterMapToolControllerOptions = {
3
+ enabled?: boolean;
4
+ scope?: MapToolControllerScope;
5
+ };
6
+ /**
7
+ * Registers a map-tool controller for as long as the calling component is mounted.
8
+ * Tool UIs can use this to override the default popup-tool behavior when their
9
+ * current business mode requires bespoke external handling.
10
+ */
11
+ export declare function useRegisterMapToolController(toolId: string, controller: MapToolController | undefined, options?: UseRegisterMapToolControllerOptions): void;
12
+ export {};
13
+ //# sourceMappingURL=useRegisterMapToolController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterMapToolController.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/hooks/useRegisterMapToolController.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAGlB,KAAK,mCAAmC,GAAG;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,iBAAiB,GAAG,SAAS,EACzC,OAAO,GAAE,mCAAwC,QAwBlD"}
@@ -0,0 +1,21 @@
1
+ import { useEffect as p } from "react";
2
+ import { useMapStore as l } from "./useMapStore/index.js";
3
+ function f(r, e, u = {}) {
4
+ const { enabled: n = !0, scope: o = "runtime" } = u, s = l((t) => t.mapActions.registerToolController), i = l((t) => t.mapActions.unregisterToolController);
5
+ p(() => {
6
+ if (!(!n || !e))
7
+ return s(r, e, o), () => {
8
+ i(r, o);
9
+ };
10
+ }, [
11
+ e,
12
+ n,
13
+ s,
14
+ o,
15
+ r,
16
+ i
17
+ ]);
18
+ }
19
+ export {
20
+ f as useRegisterMapToolController
21
+ };
@@ -1,3 +1,2 @@
1
- export * from './MapPopupDevice';
2
1
  export type { MapPopupComponent, MapPopupProps } from './types';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -8,4 +8,8 @@ export type MapPopupProps = {
8
8
  isOpen: boolean;
9
9
  };
10
10
  export type MapPopupComponent = (props: MapPopupProps) => JSX.Element | null;
11
+ export type MapPopupRenderConfig = {
12
+ popupRender?: MapPopupComponent;
13
+ popupOptions?: Omit<PopupOptions, 'content'>;
14
+ };
11
15
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/popups/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAE7E,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;CAC9C,CAAC"}