@mapcomponents/react-maplibre 0.1.57 → 0.1.59

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 (276) hide show
  1. package/.eslintignore +11 -0
  2. package/.eslintrc.js +20 -0
  3. package/.github/workflows/check-formatting.yml +46 -0
  4. package/.prettierignore +11 -0
  5. package/.prettierrc.json +6 -0
  6. package/CHANGELOG.md +18 -0
  7. package/coverage/clover.xml +229 -77
  8. package/coverage/coverage-final.json +43 -37
  9. package/coverage/lcov-report/index.html +65 -20
  10. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +83 -83
  11. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  12. package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +66 -66
  13. package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
  14. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +30 -30
  15. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  16. package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +202 -0
  17. package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +116 -0
  18. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +99 -99
  19. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
  20. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +66 -66
  21. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  22. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +221 -221
  23. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  24. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +308 -308
  25. package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +497 -497
  26. package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
  27. package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +85 -85
  28. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  29. package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +469 -0
  30. package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +116 -0
  31. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +140 -140
  32. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  33. package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +37 -37
  34. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  35. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +179 -179
  36. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  37. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +113 -113
  38. package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
  39. package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +181 -181
  40. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +58 -58
  41. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
  42. package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
  43. package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +108 -108
  44. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  45. package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +39 -39
  46. package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
  47. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +183 -183
  48. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  49. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +163 -163
  50. package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
  51. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +50 -50
  52. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +30 -30
  53. package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
  54. package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +83 -83
  55. package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
  56. package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +204 -204
  57. package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
  58. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +180 -180
  59. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
  60. package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +163 -163
  61. package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
  62. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +136 -136
  63. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
  64. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +53 -53
  65. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  66. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +123 -123
  67. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
  68. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +35 -35
  69. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  70. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +155 -155
  71. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  72. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +255 -255
  73. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  74. package/coverage/lcov-report/src/contexts/MapContext.tsx.html +66 -66
  75. package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
  76. package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +48 -48
  77. package/coverage/lcov-report/src/contexts/index.html +1 -1
  78. package/coverage/lcov-report/src/hooks/exportMap/index.html +131 -0
  79. package/coverage/lcov-report/src/hooks/exportMap/index.ts.html +175 -0
  80. package/coverage/lcov-report/src/hooks/exportMap/lib.ts.html +646 -0
  81. package/coverage/lcov-report/src/hooks/index.html +48 -18
  82. package/coverage/lcov-report/src/hooks/useLayer.ts.html +230 -188
  83. package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +232 -0
  84. package/coverage/lcov-report/src/hooks/useMap.ts.html +72 -69
  85. package/coverage/lcov-report/src/hooks/useMapState.ts.html +145 -145
  86. package/coverage/lcov-report/src/hooks/useSource.ts.html +337 -0
  87. package/coverage/lcov-report/src/hooks/useWms.js.html +72 -72
  88. package/coverage/lcov-report/src/index.html +1 -1
  89. package/coverage/lcov-report/src/index.ts.html +11 -2
  90. package/coverage/lcov.info +448 -151
  91. package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +24 -0
  92. package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +13 -0
  93. package/dist/components/MlCreatePdfForm/lib/PdfContext.d.ts +21 -0
  94. package/dist/components/MlCreatePdfForm/lib/PdfForm.d.ts +10 -0
  95. package/dist/components/MlCreatePdfForm/lib/PdfPreview.d.ts +13 -0
  96. package/dist/components/MlCreatePdfForm/lib/pdf.templates.d.ts +11 -0
  97. package/dist/components/MlFeatureEditor/lib/create_vertex.d.ts +1 -1
  98. package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +22 -0
  99. package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.d.ts +10 -0
  100. package/dist/components/MlLayerSwipe/MlLayerSwipe.d.ts +1 -1
  101. package/dist/components/MlWmsLayer/MlWmsLayer.d.ts +2 -2
  102. package/dist/decorators/MapContextDecoratorHooks.d.ts +2 -0
  103. package/dist/hooks/exportMap/index.d.ts +11 -0
  104. package/dist/hooks/exportMap/lib.d.ts +36 -0
  105. package/dist/hooks/useLayer.d.ts +6 -5
  106. package/dist/hooks/useLayerEvent.d.ts +2 -0
  107. package/dist/hooks/useMap.d.ts +1 -1
  108. package/dist/hooks/useMapState.stories.d.ts +2 -2
  109. package/dist/hooks/useSource.d.ts +17 -0
  110. package/dist/hooks/useSources.stories.d.ts +13 -0
  111. package/dist/index.d.ts +3 -0
  112. package/dist/index.esm.js +1055 -315
  113. package/dist/index.esm.js.map +1 -1
  114. package/eslintErrorTest.js +10 -0
  115. package/package.json +7 -1
  116. package/public/thumbnails/MlCreatePdfForm.png +0 -0
  117. package/src/components/MapLibreMap/MapLibreMap.stories.js +72 -72
  118. package/src/components/MapLibreMap/MapLibreMap.test.js +60 -60
  119. package/src/components/MapLibreMap/MapLibreMap.tsx +82 -82
  120. package/src/components/MapLibreMap/lib/MapLibreGlWrapper.test.js +343 -343
  121. package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +619 -619
  122. package/src/components/MlBasicComponent.js +25 -25
  123. package/src/components/MlCenterPosition/MlCenterPosition.stories.js +6 -6
  124. package/src/components/MlCenterPosition/MlCenterPosition.tsx +65 -65
  125. package/src/components/MlComponentTemplate/MlComponentTemplate.stories.js +5 -5
  126. package/src/components/MlComponentTemplate/MlComponentTemplate.tsx +23 -23
  127. package/src/components/MlCreatePdfButton/{MlCreatePdfButton.meta.json → MlCreatePdfButton.meta_.json} +0 -0
  128. package/src/components/MlCreatePdfButton/MlCreatePdfButton.stories.js +16 -16
  129. package/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx +29 -29
  130. package/src/components/MlCreatePdfButton/lib/createPdf.ts +175 -175
  131. package/src/components/MlCreatePdfButton/lib/nominatimMap.ts +51 -51
  132. package/src/components/MlCreatePdfForm/MlCreatePdfForm.doc.de.md +3 -0
  133. package/src/components/MlCreatePdfForm/MlCreatePdfForm.meta.json +15 -0
  134. package/src/components/MlCreatePdfForm/MlCreatePdfForm.stories.tsx +152 -0
  135. package/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx +39 -0
  136. package/src/components/MlCreatePdfForm/lib/PdfContext.tsx +53 -0
  137. package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +161 -0
  138. package/src/components/MlCreatePdfForm/lib/PdfPreview.tsx +399 -0
  139. package/src/components/MlCreatePdfForm/lib/pdf.templates.ts +82 -0
  140. package/src/components/MlFeatureEditor/MlFeatureEditor.stories.js +55 -55
  141. package/src/components/MlFeatureEditor/MlFeatureEditor.test.js +105 -105
  142. package/src/components/MlFeatureEditor/MlFeatureEditor.tsx +119 -119
  143. package/src/components/MlFeatureEditor/custom-direct-select-mode.js +208 -208
  144. package/src/components/MlFeatureEditor/custom-polygon-mode.js +148 -148
  145. package/src/components/MlFeatureEditor/custom-select-mode.js +314 -314
  146. package/src/components/MlFeatureEditor/lib/common_selectors.js +34 -34
  147. package/src/components/MlFeatureEditor/lib/constants.js +61 -61
  148. package/src/components/MlFeatureEditor/lib/constrain_feature_movement.js +51 -51
  149. package/src/components/MlFeatureEditor/lib/create_midpoint.js +30 -30
  150. package/src/components/MlFeatureEditor/lib/create_supplementary_points.js +82 -82
  151. package/src/components/MlFeatureEditor/lib/create_vertex.js +16 -16
  152. package/src/components/MlFeatureEditor/lib/double_click_zoom.js +23 -23
  153. package/src/components/MlFeatureEditor/lib/euclidean_distance.js +3 -3
  154. package/src/components/MlFeatureEditor/lib/features_at.js +23 -23
  155. package/src/components/MlFeatureEditor/lib/get_features_and_set_cursor.js +15 -15
  156. package/src/components/MlFeatureEditor/lib/is_click.js +8 -8
  157. package/src/components/MlFeatureEditor/lib/is_event_at_coordinates.js +2 -2
  158. package/src/components/MlFeatureEditor/lib/is_tap.js +6 -6
  159. package/src/components/MlFeatureEditor/lib/map_event_to_bounding_box.js +4 -4
  160. package/src/components/MlFeatureEditor/lib/mode_handler.js +105 -105
  161. package/src/components/MlFeatureEditor/lib/mouse_event_point.js +5 -5
  162. package/src/components/MlFeatureEditor/lib/move_features.js +33 -33
  163. package/src/components/MlFeatureEditor/lib/sort_features.js +25 -25
  164. package/src/components/MlFeatureEditor/lib/string_set.js +36 -36
  165. package/src/components/MlFeatureEditor/lib/string_sets_are_equal.js +2 -2
  166. package/src/components/MlFeatureEditor/lib/theme.js +230 -230
  167. package/src/components/MlFeatureEditor/lib/to_dense_array.js +1 -1
  168. package/src/components/MlFeatureEditor/lib/utils.js +40 -40
  169. package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.stories.js +9 -9
  170. package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.test.js +4 -4
  171. package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx +65 -65
  172. package/src/components/MlFollowGps/MlFollowGps.stories.js +6 -6
  173. package/src/components/MlFollowGps/MlFollowGps.test.js +44 -44
  174. package/src/components/MlFollowGps/MlFollowGps.tsx +220 -220
  175. package/src/components/MlGPXViewer/MlGPXViewer.stories.js +15 -15
  176. package/src/components/MlGPXViewer/MlGPXViewer.test.js +12 -12
  177. package/src/components/MlGPXViewer/MlGPXViewer.tsx +345 -345
  178. package/src/components/MlGPXViewer/gpxConverter.js +496 -496
  179. package/src/components/MlGPXViewer/util/GeoJsonContext.ts +4 -4
  180. package/src/components/MlGPXViewer/util/GeoJsonProvider.tsx +16 -16
  181. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +34 -34
  182. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.test.js +8 -8
  183. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx +84 -84
  184. package/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.ts +21 -21
  185. package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.ts +27 -27
  186. package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.doc.de.md +3 -0
  187. package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.meta_.json +15 -0
  188. package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.js +19 -0
  189. package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx +128 -0
  190. package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.stories.js +28 -28
  191. package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.test.js +8 -8
  192. package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx +162 -162
  193. package/src/components/MlLayer/MlLayer.stories.js +5 -5
  194. package/src/components/MlLayer/MlLayer.test.js +86 -86
  195. package/src/components/MlLayer/MlLayer.tsx +36 -36
  196. package/src/components/MlLayerMagnify/MlLayerMagnify.stories.js +21 -21
  197. package/src/components/MlLayerMagnify/MlLayerMagnify.test.js +54 -54
  198. package/src/components/MlLayerMagnify/MlLayerMagnify.tsx +201 -201
  199. package/src/components/MlLayerSwipe/MlLayerSwipe.stories.js +20 -20
  200. package/src/components/MlLayerSwipe/MlLayerSwipe.test.js +54 -54
  201. package/src/components/MlLayerSwipe/MlLayerSwipe.tsx +130 -130
  202. package/src/components/MlLayerSwitcher/MlLayerSwitcher.js +194 -194
  203. package/src/components/MlLayerSwitcher/MlLayerSwitcher.stories.js +85 -85
  204. package/src/components/MlLayerSwitcher/components/LayerBox.js +57 -57
  205. package/src/components/MlMarker/MlMarker.stories.js +7 -7
  206. package/src/components/MlMarker/MlMarker.tsx +119 -119
  207. package/src/components/MlMeasureTool/MlMeasureTool.stories.js +64 -64
  208. package/src/components/MlMeasureTool/MlMeasureTool.tsx +38 -38
  209. package/src/components/MlNavigationCompass/MlNavigationCompass.stories.js +45 -45
  210. package/src/components/MlNavigationCompass/MlNavigationCompass.test.js +40 -40
  211. package/src/components/MlNavigationCompass/MlNavigationCompass.tsx +192 -192
  212. package/src/components/MlNavigationTools/MlNavigationTools.stories.js +18 -18
  213. package/src/components/MlNavigationTools/MlNavigationTools.tsx +173 -173
  214. package/src/components/MlOsmLayer/MlOsmLayer.js +49 -49
  215. package/src/components/MlOsmLayer/MlOsmLayer.stories_.js +29 -29
  216. package/src/components/MlOsmLayer/MlOsmLayer.test.js +8 -8
  217. package/src/components/MlScaleReference/MlScaleReference.js +82 -82
  218. package/src/components/MlScaleReference/MlScaleReference.stories.js +27 -27
  219. package/src/components/MlShareMapState/MlShareMapState.js +203 -203
  220. package/src/components/MlShareMapState/MlShareMapState.stories.js +68 -68
  221. package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js +201 -201
  222. package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.js +35 -35
  223. package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.test.js +8 -8
  224. package/src/components/MlThreeJsLayer/MlThreeJsLayer.js +186 -186
  225. package/src/components/MlThreeJsLayer/MlThreeJsLayer.stories.js +21 -21
  226. package/src/components/MlThreeJsLayer/MlThreeJsLayer.test.js +24 -24
  227. package/src/components/MlThreeJsLayer/lib/GLTFLoader.js +3327 -3327
  228. package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.js +31 -30
  229. package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.test.js +8 -8
  230. package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx +146 -146
  231. package/src/components/MlTransitionGeoJsonLayer/util/transitionFunctions.js +207 -207
  232. package/src/components/MlUseMapDebugger/MlUseMapDebugger.js +52 -52
  233. package/src/components/MlUseMapDebugger/MlUseMapDebugger.stories.js +13 -13
  234. package/src/components/MlVectorTileLayer/MlVectorTileLayer.stories.js +27 -27
  235. package/src/components/MlVectorTileLayer/MlVectorTileLayer.test.js +27 -27
  236. package/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx +137 -137
  237. package/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js +34 -34
  238. package/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.stories.js +7 -7
  239. package/src/components/MlWmsLayer/MlWmsLayer.stories.js +26 -26
  240. package/src/components/MlWmsLayer/MlWmsLayer.test.js +8 -8
  241. package/src/components/MlWmsLayer/MlWmsLayer.tsx +167 -167
  242. package/src/components/MlWmsLoader/MlWmsLoader.stories.js +27 -27
  243. package/src/components/MlWmsLoader/MlWmsLoader.tsx +254 -254
  244. package/src/contexts/MapComponentsProvider.test.js +229 -229
  245. package/src/contexts/MapContext.tsx +65 -65
  246. package/src/contexts/SimpleDataProvider.js +47 -47
  247. package/src/contexts/SimpleDataProvider.test.js +29 -29
  248. package/src/custom.d.tsx +14 -14
  249. package/src/decorators/MapContextDecorator.js +22 -22
  250. package/src/decorators/MapContextDecoratorHooks.js +34 -0
  251. package/src/decorators/MultiMapContextDecorator.js +63 -63
  252. package/src/decorators/NoNavToolsDecorator.js +17 -17
  253. package/src/decorators/ThemeWrapper.jsx +1 -1
  254. package/src/hooks/assets/pointWG.json +13 -0
  255. package/src/hooks/exportMap/index.ts +30 -0
  256. package/src/hooks/exportMap/lib.ts +187 -0
  257. package/src/hooks/useLayer.test.js +188 -188
  258. package/src/hooks/useLayer.ts +194 -180
  259. package/src/hooks/useLayerEvent.js +49 -0
  260. package/src/hooks/useMap.ts +67 -66
  261. package/src/hooks/useMapState.stories.js +78 -78
  262. package/src/hooks/useMapState.ts +161 -161
  263. package/src/hooks/useSource.ts +84 -0
  264. package/src/hooks/useSources.stories.js +232 -0
  265. package/src/hooks/useWms.js +71 -71
  266. package/src/index.ts +3 -0
  267. package/src/setupTests.js +86 -86
  268. package/src/ui_components/ImageLoader.js +62 -62
  269. package/src/ui_components/Legend.js +34 -34
  270. package/src/ui_components/LoadingOverlay.js +29 -29
  271. package/src/ui_components/LoadingOverlayContext.js +68 -68
  272. package/src/ui_components/Sidebar.js +80 -80
  273. package/src/ui_components/Tooltip.js +9 -9
  274. package/src/ui_components/TopToolbar.js +23 -23
  275. package/src/util/layerRemovalTest.js +111 -111
  276. package/src/util/sourceRemovalTest.js +103 -103
package/.eslintignore ADDED
@@ -0,0 +1,11 @@
1
+ .cache
2
+ .github
3
+ .storybook
4
+ .vscode
5
+ coverage
6
+ dist
7
+ docs
8
+ docs-build
9
+ js-docs
10
+ node_modules
11
+ storybook-static
package/.eslintrc.js ADDED
@@ -0,0 +1,20 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ es2021: true,
5
+ },
6
+ extends: [
7
+ 'eslint:recommended',
8
+ 'plugin:react/recommended',
9
+ 'plugin:@typescript-eslint/recommended',
10
+ 'prettier',
11
+ ],
12
+ overrides: [],
13
+ parser: '@typescript-eslint/parser',
14
+ parserOptions: {
15
+ ecmaVersion: 'latest',
16
+ sourceType: 'module',
17
+ },
18
+ plugins: ['react', '@typescript-eslint'],
19
+ rules: {},
20
+ };
@@ -0,0 +1,46 @@
1
+ name: formatting-check
2
+ on:
3
+ push:
4
+ branches:
5
+ - "main"
6
+ pull_request:
7
+
8
+ jobs:
9
+ check_formatting:
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ matrix:
14
+ node-versions: [16.x]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+
19
+ - name: Use Node.js ${{ matrix.node-version }}
20
+ uses: actions/setup-node@v2
21
+ with:
22
+ node-version: ${{ matrix.node-version }}
23
+
24
+ - name: Node cache
25
+ id: yarn-cache
26
+ uses: actions/cache@v2
27
+ with:
28
+ path: "**/node_modules"
29
+ key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
30
+
31
+ - name: Install dependencies
32
+ if: steps.yarn-cache.outputs.cache-hit != 'true'
33
+ run: yarn install
34
+
35
+ - id: files
36
+ uses: jitterbit/get-changed-files@v1
37
+ with:
38
+ format: csv
39
+
40
+ - name: Run scoped actions
41
+ uses: DukeManh/scoped-actions@v1
42
+ with:
43
+ files: ${{ steps.files.outputs.added_modified}}
44
+ eslintTarget: "**/*.{jsx,tsx,ts,js}"
45
+ s0: "yarn run eslint"
46
+ s1: "yarn run prettier --check"
@@ -0,0 +1,11 @@
1
+ .cache
2
+ .github
3
+ .storybook
4
+ .vscode
5
+ coverage
6
+ dist
7
+ docs
8
+ docs-build
9
+ js-docs
10
+ node_modules
11
+ storybook-static
@@ -0,0 +1,6 @@
1
+ {
2
+ "printWidth": 100,
3
+ "singleQuote": true,
4
+ "trailingComma": "es5",
5
+ "useTabs": true
6
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Change Log
2
2
 
3
+
4
+ ## [v0.1.59] - 2022-10-04
5
+
6
+ ### Fixed
7
+
8
+ - ac559c4: fix MlCreatePdfForm export
9
+ ## [v0.1.58] - 2022-10-04
10
+
11
+ ### Added
12
+ - 6be40b7: automatic eslint & prettier tests as GitHub action
13
+ - 396b1b7: useSource hook
14
+ - 67d88a0: add MlCreatePdfForm component & useExportMap hook providing more sophisticated control on the PDF creation process such as a preview of the PDF area with drag&drop, resize & rotation functionality as well as controlls over the paper size, quality & orientation
15
+
16
+ ### Fixed
17
+
18
+ - 0cf90f7: fix useMapState story by adding an dedicated hook decorator
19
+ - 4c919b8: fix useMap hook typechange bug
20
+
3
21
  ## [v0.1.57] - 2022-08-30
4
22
 
5
23
  ### Added
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1661866038562" clover="3.2.0">
3
- <project timestamp="1661866038562" name="All files">
4
- <metrics statements="1647" coveredstatements="630" conditionals="1016" coveredconditionals="301" methods="299" coveredmethods="105" elements="2962" coveredelements="1036" complexity="0" loc="1647" ncloc="1647" packages="32" files="39" classes="39"/>
2
+ <coverage generated="1664885473517" clover="3.2.0">
3
+ <project timestamp="1664885473517" name="All files">
4
+ <metrics statements="1772" coveredstatements="636" conditionals="1080" coveredconditionals="305" methods="326" coveredmethods="105" elements="3178" coveredelements="1046" complexity="0" loc="1772" ncloc="1772" packages="35" files="45" classes="45"/>
5
5
  <package name="src">
6
6
  <metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
7
7
  <file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/index.ts">
@@ -74,6 +74,15 @@
74
74
  <line num="47" count="10" type="stmt"/>
75
75
  </file>
76
76
  </package>
77
+ <package name="src.components.MlCreatePdfForm">
78
+ <metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
79
+ <file name="MlCreatePdfForm.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx">
80
+ <metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
81
+ <line num="25" count="10" type="stmt"/>
82
+ <line num="26" count="0" type="stmt"/>
83
+ <line num="36" count="10" type="stmt"/>
84
+ </file>
85
+ </package>
77
86
  <package name="src.components.MlFeatureEditor">
78
87
  <metrics statements="36" coveredstatements="29" conditionals="29" coveredconditionals="20" methods="8" coveredmethods="6"/>
79
88
  <file name="MlFeatureEditor.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlFeatureEditor/MlFeatureEditor.tsx">
@@ -596,6 +605,27 @@
596
605
  <line num="107" count="32" type="stmt"/>
597
606
  </file>
598
607
  </package>
608
+ <package name="src.components.MlGeojsonLayerWithSource">
609
+ <metrics statements="15" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="2" coveredmethods="0"/>
610
+ <file name="MlGeojsonLayerWithSource.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx">
611
+ <metrics statements="15" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="2" coveredmethods="0"/>
612
+ <line num="22" count="0" type="stmt"/>
613
+ <line num="23" count="0" type="stmt"/>
614
+ <line num="65" count="0" type="stmt"/>
615
+ <line num="70" count="0" type="stmt"/>
616
+ <line num="72" count="0" type="stmt"/>
617
+ <line num="73" count="0" type="stmt"/>
618
+ <line num="82" count="0" type="stmt"/>
619
+ <line num="97" count="0" type="stmt"/>
620
+ <line num="112" count="0" type="stmt"/>
621
+ <line num="113" count="0" type="cond" truecount="0" falsecount="4"/>
622
+ <line num="116" count="0" type="stmt"/>
623
+ <line num="118" count="0" type="stmt"/>
624
+ <line num="119" count="0" type="stmt"/>
625
+ <line num="122" count="0" type="stmt"/>
626
+ <line num="125" count="0" type="stmt"/>
627
+ </file>
628
+ </package>
599
629
  <package name="src.components.MlImageMarkerLayer">
600
630
  <metrics statements="59" coveredstatements="31" conditionals="59" coveredconditionals="21" methods="10" coveredmethods="6"/>
601
631
  <file name="MlImageMarkerLayer.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx">
@@ -1675,69 +1705,96 @@
1675
1705
  </file>
1676
1706
  </package>
1677
1707
  <package name="src.hooks">
1678
- <metrics statements="173" coveredstatements="98" conditionals="106" coveredconditionals="56" methods="28" coveredmethods="16"/>
1708
+ <metrics statements="223" coveredstatements="101" conditionals="152" coveredconditionals="60" methods="37" coveredmethods="16"/>
1679
1709
  <file name="useLayer.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useLayer.ts">
1680
- <metrics statements="60" coveredstatements="46" conditionals="58" coveredconditionals="40" methods="8" coveredmethods="7"/>
1681
- <line num="33" count="13" type="stmt"/>
1682
- <line num="46" count="102" type="stmt"/>
1683
- <line num="51" count="102" type="stmt"/>
1710
+ <metrics statements="63" coveredstatements="47" conditionals="68" coveredconditionals="44" methods="8" coveredmethods="7"/>
1711
+ <line num="34" count="13" type="stmt"/>
1712
+ <line num="47" count="102" type="stmt"/>
1684
1713
  <line num="52" count="102" type="stmt"/>
1685
1714
  <line num="53" count="102" type="stmt"/>
1686
- <line num="55" count="102" type="stmt"/>
1687
- <line num="57" count="102" type="stmt"/>
1715
+ <line num="54" count="102" type="stmt"/>
1716
+ <line num="56" count="102" type="stmt"/>
1688
1717
  <line num="58" count="102" type="stmt"/>
1689
- <line num="62" count="102" type="stmt"/>
1690
- <line num="63" count="26" type="cond" truecount="1" falsecount="1"/>
1691
- <line num="65" count="26" type="cond" truecount="2" falsecount="0"/>
1692
- <line num="66" count="3" type="stmt"/>
1693
- <line num="68" count="26" type="cond" truecount="1" falsecount="1"/>
1694
- <line num="69" count="0" type="stmt"/>
1695
- <line num="71" count="26" type="stmt"/>
1696
- <line num="73" count="26" type="stmt"/>
1697
- <line num="94" count="26" type="stmt"/>
1698
- <line num="96" count="26" type="cond" truecount="2" falsecount="0"/>
1699
- <line num="97" count="6" type="stmt"/>
1700
- <line num="100" count="26" type="cond" truecount="2" falsecount="0"/>
1701
- <line num="101" count="4" type="stmt"/>
1702
- <line num="104" count="26" type="cond" truecount="2" falsecount="0"/>
1703
- <line num="105" count="2" type="stmt"/>
1704
- <line num="109" count="26" type="stmt"/>
1705
- <line num="112" count="0" type="cond" truecount="0" falsecount="4"/>
1706
- <line num="113" count="0" type="stmt"/>
1707
- <line num="114" count="0" type="stmt"/>
1708
- <line num="120" count="26" type="stmt"/>
1709
- <line num="121" count="26" type="stmt"/>
1718
+ <line num="59" count="102" type="stmt"/>
1719
+ <line num="63" count="102" type="stmt"/>
1720
+ <line num="64" count="26" type="cond" truecount="1" falsecount="1"/>
1721
+ <line num="66" count="26" type="cond" truecount="2" falsecount="0"/>
1722
+ <line num="67" count="3" type="stmt"/>
1723
+ <line num="69" count="26" type="cond" truecount="1" falsecount="1"/>
1724
+ <line num="70" count="0" type="stmt"/>
1725
+ <line num="73" count="26" type="cond" truecount="1" falsecount="1"/>
1726
+ <line num="74" count="0" type="cond" truecount="0" falsecount="4"/>
1727
+ <line num="75" count="0" type="stmt"/>
1728
+ <line num="79" count="26" type="stmt"/>
1729
+ <line num="81" count="26" type="stmt"/>
1730
+ <line num="107" count="26" type="stmt"/>
1731
+ <line num="109" count="26" type="cond" truecount="2" falsecount="0"/>
1732
+ <line num="110" count="6" type="stmt"/>
1733
+ <line num="113" count="26" type="cond" truecount="2" falsecount="0"/>
1734
+ <line num="114" count="4" type="stmt"/>
1735
+ <line num="117" count="26" type="cond" truecount="2" falsecount="0"/>
1736
+ <line num="118" count="2" type="stmt"/>
1710
1737
  <line num="122" count="26" type="stmt"/>
1711
- <line num="125" count="102" type="stmt"/>
1712
- <line num="126" count="102" type="cond" truecount="2" falsecount="0"/>
1713
- <line num="128" count="56" type="cond" truecount="2" falsecount="0"/>
1714
- <line num="134" count="30" type="stmt"/>
1715
- <line num="137" count="26" type="stmt"/>
1716
- <line num="140" count="102" type="stmt"/>
1717
- <line num="141" count="49" type="cond" truecount="4" falsecount="0"/>
1718
- <line num="144" count="12" type="stmt"/>
1719
- <line num="147" count="102" type="stmt"/>
1720
- <line num="148" count="102" type="cond" truecount="2" falsecount="0"/>
1721
- <line num="154" count="46" type="stmt"/>
1722
- <line num="158" count="56" type="stmt"/>
1723
- <line num="159" count="56" type="cond" truecount="3" falsecount="1"/>
1724
- <line num="160" count="0" type="stmt"/>
1725
- <line num="162" count="0" type="stmt"/>
1726
- <line num="163" count="0" type="cond" truecount="0" falsecount="4"/>
1727
- <line num="164" count="0" type="stmt"/>
1728
- <line num="167" count="0" type="stmt"/>
1729
- <line num="170" count="56" type="stmt"/>
1730
- <line num="171" count="56" type="cond" truecount="1" falsecount="1"/>
1731
- <line num="172" count="0" type="stmt"/>
1732
- <line num="173" count="0" type="stmt"/>
1733
- <line num="174" count="0" type="cond" truecount="0" falsecount="4"/>
1734
- <line num="175" count="0" type="stmt"/>
1738
+ <line num="125" count="0" type="cond" truecount="0" falsecount="4"/>
1739
+ <line num="126" count="0" type="stmt"/>
1740
+ <line num="127" count="0" type="stmt"/>
1741
+ <line num="133" count="26" type="stmt"/>
1742
+ <line num="134" count="26" type="stmt"/>
1743
+ <line num="135" count="26" type="stmt"/>
1744
+ <line num="138" count="102" type="stmt"/>
1745
+ <line num="139" count="102" type="cond" truecount="2" falsecount="0"/>
1746
+ <line num="141" count="56" type="cond" truecount="2" falsecount="0"/>
1747
+ <line num="147" count="30" type="stmt"/>
1748
+ <line num="150" count="26" type="stmt"/>
1749
+ <line num="153" count="102" type="stmt"/>
1750
+ <line num="154" count="49" type="cond" truecount="4" falsecount="0"/>
1751
+ <line num="158" count="12" type="stmt"/>
1752
+ <line num="161" count="102" type="stmt"/>
1753
+ <line num="162" count="102" type="cond" truecount="2" falsecount="0"/>
1754
+ <line num="168" count="46" type="stmt"/>
1755
+ <line num="172" count="56" type="stmt"/>
1756
+ <line num="173" count="56" type="cond" truecount="3" falsecount="1"/>
1757
+ <line num="174" count="0" type="stmt"/>
1758
+ <line num="176" count="0" type="stmt"/>
1759
+ <line num="177" count="0" type="cond" truecount="0" falsecount="4"/>
1735
1760
  <line num="178" count="0" type="stmt"/>
1736
- <line num="182" count="102" type="stmt"/>
1737
- <line num="183" count="23" type="stmt"/>
1738
- <line num="184" count="10" type="stmt"/>
1739
- <line num="185" count="10" type="stmt"/>
1740
- <line num="189" count="102" type="stmt"/>
1761
+ <line num="181" count="0" type="stmt"/>
1762
+ <line num="184" count="56" type="stmt"/>
1763
+ <line num="185" count="56" type="cond" truecount="1" falsecount="1"/>
1764
+ <line num="186" count="0" type="stmt"/>
1765
+ <line num="187" count="0" type="stmt"/>
1766
+ <line num="188" count="0" type="cond" truecount="0" falsecount="4"/>
1767
+ <line num="189" count="0" type="stmt"/>
1768
+ <line num="192" count="0" type="stmt"/>
1769
+ <line num="196" count="102" type="stmt"/>
1770
+ <line num="197" count="23" type="stmt"/>
1771
+ <line num="198" count="10" type="stmt"/>
1772
+ <line num="199" count="10" type="stmt"/>
1773
+ <line num="203" count="102" type="stmt"/>
1774
+ </file>
1775
+ <file name="useLayerEvent.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useLayerEvent.js">
1776
+ <metrics statements="21" coveredstatements="2" conditionals="16" coveredconditionals="0" methods="3" coveredmethods="0"/>
1777
+ <line num="6" count="10" type="stmt"/>
1778
+ <line num="11" count="10" type="stmt"/>
1779
+ <line num="13" count="0" type="stmt"/>
1780
+ <line num="14" count="0" type="stmt"/>
1781
+ <line num="16" count="0" type="stmt"/>
1782
+ <line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
1783
+ <line num="18" count="0" type="cond" truecount="0" falsecount="4"/>
1784
+ <line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
1785
+ <line num="24" count="0" type="stmt"/>
1786
+ <line num="25" count="0" type="stmt"/>
1787
+ <line num="26" count="0" type="stmt"/>
1788
+ <line num="29" count="0" type="stmt"/>
1789
+ <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
1790
+ <line num="31" count="0" type="cond" truecount="0" falsecount="2"/>
1791
+ <line num="32" count="0" type="stmt"/>
1792
+ <line num="35" count="0" type="stmt"/>
1793
+ <line num="36" count="0" type="stmt"/>
1794
+ <line num="37" count="0" type="cond" truecount="0" falsecount="2"/>
1795
+ <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
1796
+ <line num="39" count="0" type="stmt"/>
1797
+ <line num="46" count="0" type="stmt"/>
1741
1798
  </file>
1742
1799
  <file name="useMap.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMap.ts">
1743
1800
  <metrics statements="30" coveredstatements="24" conditionals="14" coveredconditionals="8" methods="6" coveredmethods="5"/>
@@ -1745,32 +1802,32 @@
1745
1802
  <line num="18" count="211" type="stmt"/>
1746
1803
  <line num="20" count="211" type="stmt"/>
1747
1804
  <line num="32" count="211" type="stmt"/>
1748
- <line num="33" count="211" type="stmt"/>
1749
- <line num="35" count="211" type="stmt"/>
1750
- <line num="37" count="211" type="stmt"/>
1751
- <line num="39" count="211" type="stmt"/>
1752
- <line num="40" count="39" type="cond" truecount="2" falsecount="0"/>
1753
- <line num="41" count="29" type="stmt"/>
1805
+ <line num="34" count="211" type="stmt"/>
1806
+ <line num="36" count="211" type="stmt"/>
1807
+ <line num="38" count="211" type="stmt"/>
1808
+ <line num="40" count="211" type="stmt"/>
1809
+ <line num="41" count="39" type="cond" truecount="2" falsecount="0"/>
1754
1810
  <line num="42" count="29" type="stmt"/>
1755
1811
  <line num="44" count="39" type="stmt"/>
1756
1812
  <line num="47" count="211" type="stmt"/>
1757
1813
  <line num="48" count="57" type="stmt"/>
1758
1814
  <line num="49" count="26" type="stmt"/>
1759
1815
  <line num="50" count="26" type="stmt"/>
1760
- <line num="54" count="211" type="stmt"/>
1761
- <line num="55" count="114" type="cond" truecount="4" falsecount="0"/>
1762
- <line num="59" count="57" type="cond" truecount="1" falsecount="1"/>
1763
- <line num="60" count="0" type="stmt"/>
1764
- <line num="62" count="0" type="stmt"/>
1765
- <line num="63" count="0" type="cond" truecount="0" falsecount="2"/>
1766
- <line num="64" count="0" type="stmt"/>
1767
- <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1768
- <line num="68" count="0" type="stmt"/>
1769
- <line num="73" count="57" type="stmt"/>
1816
+ <line num="51" count="26" type="stmt"/>
1817
+ <line num="55" count="211" type="stmt"/>
1818
+ <line num="56" count="114" type="cond" truecount="4" falsecount="0"/>
1819
+ <line num="60" count="57" type="cond" truecount="1" falsecount="1"/>
1820
+ <line num="61" count="0" type="stmt"/>
1821
+ <line num="63" count="0" type="stmt"/>
1822
+ <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
1823
+ <line num="65" count="0" type="stmt"/>
1824
+ <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
1825
+ <line num="69" count="0" type="stmt"/>
1770
1826
  <line num="74" count="57" type="stmt"/>
1771
1827
  <line num="75" count="57" type="stmt"/>
1772
1828
  <line num="76" count="57" type="stmt"/>
1773
- <line num="79" count="211" type="stmt"/>
1829
+ <line num="77" count="57" type="stmt"/>
1830
+ <line num="80" count="211" type="stmt"/>
1774
1831
  </file>
1775
1832
  <file name="useMapState.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMapState.ts">
1776
1833
  <metrics statements="48" coveredstatements="27" conditionals="26" coveredconditionals="8" methods="7" coveredmethods="4"/>
@@ -1823,6 +1880,35 @@
1823
1880
  <line num="152" count="15" type="stmt"/>
1824
1881
  <line num="164" count="15" type="stmt"/>
1825
1882
  </file>
1883
+ <file name="useSource.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useSource.ts">
1884
+ <metrics statements="26" coveredstatements="0" conditionals="20" coveredconditionals="0" methods="6" coveredmethods="0"/>
1885
+ <line num="20" count="0" type="stmt"/>
1886
+ <line num="24" count="0" type="stmt"/>
1887
+ <line num="25" count="0" type="stmt"/>
1888
+ <line num="26" count="0" type="stmt"/>
1889
+ <line num="30" count="0" type="stmt"/>
1890
+ <line num="31" count="0" type="cond" truecount="0" falsecount="2"/>
1891
+ <line num="32" count="0" type="stmt"/>
1892
+ <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
1893
+ <line num="35" count="0" type="stmt"/>
1894
+ <line num="38" count="0" type="stmt"/>
1895
+ <line num="42" count="0" type="stmt"/>
1896
+ <line num="45" count="0" type="stmt"/>
1897
+ <line num="46" count="0" type="cond" truecount="0" falsecount="4"/>
1898
+ <line num="47" count="0" type="stmt"/>
1899
+ <line num="50" count="0" type="stmt"/>
1900
+ <line num="51" count="0" type="cond" truecount="0" falsecount="4"/>
1901
+ <line num="55" count="0" type="stmt"/>
1902
+ <line num="61" count="0" type="stmt"/>
1903
+ <line num="62" count="0" type="stmt"/>
1904
+ <line num="63" count="0" type="stmt"/>
1905
+ <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
1906
+ <line num="65" count="0" type="stmt"/>
1907
+ <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
1908
+ <line num="67" count="0" type="stmt"/>
1909
+ <line num="71" count="0" type="stmt"/>
1910
+ <line num="76" count="0" type="stmt"/>
1911
+ </file>
1826
1912
  <file name="useWms.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useWms.js">
1827
1913
  <metrics statements="35" coveredstatements="1" conditionals="8" coveredconditionals="0" methods="7" coveredmethods="0"/>
1828
1914
  <line num="6" count="0" type="stmt"/>
@@ -1862,5 +1948,71 @@
1862
1948
  <line num="82" count="10" type="stmt"/>
1863
1949
  </file>
1864
1950
  </package>
1951
+ <package name="src.hooks.exportMap">
1952
+ <metrics statements="57" coveredstatements="1" conditionals="14" coveredconditionals="0" methods="15" coveredmethods="0"/>
1953
+ <file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/exportMap/index.ts">
1954
+ <metrics statements="7" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="3" coveredmethods="0"/>
1955
+ <line num="14" count="0" type="stmt"/>
1956
+ <line num="16" count="0" type="stmt"/>
1957
+ <line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
1958
+ <line num="18" count="0" type="stmt"/>
1959
+ <line num="21" count="0" type="stmt"/>
1960
+ <line num="24" count="0" type="stmt"/>
1961
+ <line num="27" count="0" type="stmt"/>
1962
+ </file>
1963
+ <file name="lib.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/exportMap/lib.ts">
1964
+ <metrics statements="50" coveredstatements="1" conditionals="12" coveredconditionals="0" methods="12" coveredmethods="0"/>
1965
+ <line num="20" count="10" type="stmt"/>
1966
+ <line num="21" count="0" type="stmt"/>
1967
+ <line num="22" count="0" type="stmt"/>
1968
+ <line num="25" count="0" type="stmt"/>
1969
+ <line num="26" count="0" type="stmt"/>
1970
+ <line num="27" count="0" type="stmt"/>
1971
+ <line num="28" count="0" type="stmt"/>
1972
+ <line num="29" count="0" type="stmt"/>
1973
+ <line num="30" count="0" type="stmt"/>
1974
+ <line num="31" count="0" type="stmt"/>
1975
+ <line num="33" count="0" type="stmt"/>
1976
+ <line num="36" count="0" type="stmt"/>
1977
+ <line num="37" count="0" type="stmt"/>
1978
+ <line num="39" count="0" type="stmt"/>
1979
+ <line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
1980
+ <line num="43" count="0" type="stmt"/>
1981
+ <line num="49" count="0" type="stmt"/>
1982
+ <line num="62" count="0" type="stmt"/>
1983
+ <line num="68" count="0" type="stmt"/>
1984
+ <line num="71" count="0" type="stmt"/>
1985
+ <line num="76" count="0" type="stmt"/>
1986
+ <line num="81" count="0" type="stmt"/>
1987
+ <line num="83" count="0" type="stmt"/>
1988
+ <line num="84" count="0" type="stmt"/>
1989
+ <line num="85" count="0" type="stmt"/>
1990
+ <line num="86" count="0" type="cond" truecount="0" falsecount="2"/>
1991
+ <line num="87" count="0" type="stmt"/>
1992
+ <line num="89" count="0" type="cond" truecount="0" falsecount="2"/>
1993
+ <line num="90" count="0" type="stmt"/>
1994
+ <line num="92" count="0" type="cond" truecount="0" falsecount="2"/>
1995
+ <line num="93" count="0" type="stmt"/>
1996
+ <line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
1997
+ <line num="96" count="0" type="stmt"/>
1998
+ <line num="99" count="0" type="stmt"/>
1999
+ <line num="100" count="0" type="stmt"/>
2000
+ <line num="105" count="0" type="stmt"/>
2001
+ <line num="108" count="0" type="stmt"/>
2002
+ <line num="129" count="0" type="stmt"/>
2003
+ <line num="135" count="0" type="stmt"/>
2004
+ <line num="137" count="0" type="stmt"/>
2005
+ <line num="141" count="0" type="stmt"/>
2006
+ <line num="143" count="0" type="stmt"/>
2007
+ <line num="155" count="0" type="stmt"/>
2008
+ <line num="156" count="0" type="stmt"/>
2009
+ <line num="158" count="0" type="stmt"/>
2010
+ <line num="161" count="0" type="stmt"/>
2011
+ <line num="164" count="0" type="stmt"/>
2012
+ <line num="180" count="0" type="stmt"/>
2013
+ <line num="182" count="0" type="stmt"/>
2014
+ <line num="183" count="0" type="stmt"/>
2015
+ </file>
2016
+ </package>
1865
2017
  </project>
1866
2018
  </coverage>