@mapcomponents/react-maplibre 0.1.62 → 0.1.63

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 (185) hide show
  1. package/.babelrc +21 -2
  2. package/.eslintrc.js +8 -1
  3. package/.storybook/main.js +0 -1
  4. package/.storybook/preview.js +0 -2
  5. package/CHANGELOG.md +18 -0
  6. package/coverage/clover.xml +232 -44
  7. package/coverage/coverage-final.json +11 -3
  8. package/coverage/lcov-report/favicon.png +0 -0
  9. package/coverage/lcov-report/index.html +70 -25
  10. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  11. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +1 -1
  12. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  13. package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +1 -1
  14. package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
  15. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
  16. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  17. package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.cy.tsx.html +148 -0
  18. package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +1 -1
  19. package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +22 -7
  20. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +73 -40
  21. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +15 -15
  22. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
  23. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  24. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +1 -1
  25. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  26. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +9 -3
  27. package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
  28. package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
  29. package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +59 -29
  30. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  31. package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.js.html +652 -0
  32. package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.js.html +649 -0
  33. package/coverage/lcov-report/src/components/MlGeoJsonLayer/story_utils/index.html +131 -0
  34. package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +1 -1
  35. package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +1 -1
  36. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
  37. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  38. package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +1 -1
  39. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  40. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +1 -1
  41. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  42. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +1 -1
  43. package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
  44. package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
  45. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
  46. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
  47. package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
  48. package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +1 -1
  49. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  50. package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +1 -1
  51. package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
  52. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
  53. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  54. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +1 -1
  55. package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
  56. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
  57. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +1 -1
  58. package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
  59. package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
  60. package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
  61. package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
  62. package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
  63. package/coverage/lcov-report/src/components/MlSketchTool/LayerList/ColorPicker.tsx.html +214 -0
  64. package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerList.tsx.html +121 -0
  65. package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerListItem.tsx.html +412 -0
  66. package/coverage/lcov-report/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx.html +463 -0
  67. package/coverage/lcov-report/src/components/MlSketchTool/LayerList/index.html +161 -0
  68. package/coverage/lcov-report/src/components/MlSketchTool/MlSketchTool.tsx.html +898 -0
  69. package/coverage/lcov-report/src/components/MlSketchTool/index.html +116 -0
  70. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
  71. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
  72. package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
  73. package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
  74. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
  75. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
  76. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
  77. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  78. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +1 -1
  79. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
  80. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
  81. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  82. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +1 -1
  83. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  84. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +1 -1
  85. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  86. package/coverage/lcov-report/src/contexts/MapContext.tsx.html +1 -1
  87. package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
  88. package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
  89. package/coverage/lcov-report/src/contexts/index.html +1 -1
  90. package/coverage/lcov-report/src/hooks/index.html +1 -1
  91. package/coverage/lcov-report/src/hooks/useCameraFollowPath/index.html +1 -1
  92. package/coverage/lcov-report/src/hooks/useCameraFollowPath/useCameraFollowPath.tsx.html +1 -1
  93. package/coverage/lcov-report/src/hooks/useExportMap/index.html +1 -1
  94. package/coverage/lcov-report/src/hooks/useExportMap/index.ts.html +1 -1
  95. package/coverage/lcov-report/src/hooks/useExportMap/lib.ts.html +1 -1
  96. package/coverage/lcov-report/src/hooks/useLayer.ts.html +1 -1
  97. package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +1 -1
  98. package/coverage/lcov-report/src/hooks/useMap.ts.html +1 -1
  99. package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
  100. package/coverage/lcov-report/src/hooks/useSource.ts.html +1 -1
  101. package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
  102. package/coverage/lcov-report/src/index.html +1 -1
  103. package/coverage/lcov-report/src/index.ts.html +1 -1
  104. package/coverage/lcov.info +514 -89
  105. package/cypress/support/commands.ts +37 -0
  106. package/cypress/support/component-index.html +12 -0
  107. package/cypress/support/component.ts +46 -0
  108. package/cypress.config.ts +101 -0
  109. package/dist/components/MapLibreMap/MapLibreMap.d.ts +1 -1
  110. package/dist/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +3 -3
  111. package/dist/components/MlCreatePdfForm/MlCreatePdfForm.cy.d.ts +1 -0
  112. package/dist/components/MlCreatePdfForm/lib/PdfPreview.d.ts +1 -1
  113. package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +10 -4
  114. package/dist/components/MlFeatureEditor/lib/double_click_zoom.d.ts +0 -2
  115. package/dist/components/MlFeatureEditor/lib/theme.d.ts +1 -1
  116. package/dist/components/MlGPXViewer/util/GeoJsonContext.d.ts +1 -1
  117. package/dist/components/MlGPXViewer/util/MlGPXViewerInstructions.d.ts +1 -0
  118. package/dist/components/MlGPXViewer/util/SampleLayer.d.ts +0 -0
  119. package/dist/components/MlGPXViewer/util/demoViewer.d.ts +5 -0
  120. package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +4 -4
  121. package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +103 -11
  122. package/dist/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +2 -0
  123. package/dist/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +2 -0
  124. package/dist/components/MlSketchTool/LayerList/ColorPicker.d.ts +9 -0
  125. package/dist/components/MlSketchTool/LayerList/LayerList.d.ts +5 -0
  126. package/dist/components/MlSketchTool/LayerList/LayerListItem.d.ts +11 -0
  127. package/dist/components/MlSketchTool/LayerList/LayerPropertyForm.d.ts +9 -0
  128. package/dist/components/MlSketchTool/MlSketchTool.d.ts +29 -0
  129. package/dist/components/MlSketchTool/MlSketchTool.stories.d.ts +10 -0
  130. package/dist/contexts/SimpleDataProvider.d.ts +1 -1
  131. package/dist/custom.d.d.ts +1 -1
  132. package/dist/hooks/useLayer.d.ts +1 -1
  133. package/dist/hooks/useMap.d.ts +1 -1
  134. package/dist/hooks/useMapState.d.ts +3 -3
  135. package/dist/hooks/useSource.d.ts +1 -1
  136. package/dist/index.esm.css +1 -1
  137. package/dist/index.esm.js +2736 -3557
  138. package/dist/index.esm.js.map +1 -1
  139. package/dist/ui_components/LoadingOverlayContext.d.ts +1 -1
  140. package/dist/ui_components/Sidebar.d.ts +9 -1
  141. package/dist/ui_components/TopToolbar.d.ts +6 -1
  142. package/package.json +21 -15
  143. package/public/assets/sample1.gpx +3003 -0
  144. package/public/assets/sample2.gpx +1264 -0
  145. package/public/assets/sample3.gpx +912 -0
  146. package/public/index.html +0 -4
  147. package/public/thumbnails/MlSketchTool.png +0 -0
  148. package/public/thumbnails/useCameraFollowPath.png +0 -0
  149. package/src/components/MlCreatePdfForm/MlCreatePdfForm.cy.tsx +21 -0
  150. package/src/components/MlCreatePdfForm/MlCreatePdfForm.stories.tsx +1 -3
  151. package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +1 -1
  152. package/src/components/MlFeatureEditor/MlFeatureEditor.meta.json +1 -1
  153. package/src/components/MlFeatureEditor/MlFeatureEditor.tsx +39 -28
  154. package/src/components/MlGPXViewer/MlGPXViewer.stories.js +75 -15
  155. package/src/components/MlGPXViewer/MlGPXViewer.tsx +3 -1
  156. package/src/components/MlGPXViewer/util/MlGPXViewerInstructions.js +145 -0
  157. package/src/components/MlGPXViewer/util/SampleLayer.js +2 -0
  158. package/src/components/MlGPXViewer/util/demoViewer.js +254 -0
  159. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.tsx +102 -0
  160. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx +33 -23
  161. package/src/components/MlGeoJsonLayer/assets/sample_1.json +138 -24
  162. package/src/components/MlGeoJsonLayer/assets/sample_2.json +140 -20
  163. package/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.js +189 -0
  164. package/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.js +188 -0
  165. package/src/components/MlSketchTool/LayerList/ColorPicker.tsx +43 -0
  166. package/src/components/MlSketchTool/LayerList/LayerList.tsx +12 -0
  167. package/src/components/MlSketchTool/LayerList/LayerListItem.tsx +109 -0
  168. package/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx +126 -0
  169. package/src/components/MlSketchTool/MlSketchTool.doc.de.md +3 -0
  170. package/src/components/MlSketchTool/MlSketchTool.meta.json +15 -0
  171. package/src/components/MlSketchTool/MlSketchTool.stories.js +26 -0
  172. package/src/components/MlSketchTool/MlSketchTool.tsx +271 -0
  173. package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.meta.json +2 -2
  174. package/src/ui_components/Sidebar.tsx +80 -0
  175. package/src/ui_components/TopToolbar.tsx +24 -0
  176. package/tsconfig.json +39 -58
  177. package/config/getHttpsConfig.js +0 -66
  178. package/config/modules.js +0 -134
  179. package/config/pnpTs.js +0 -35
  180. package/config/webpack.config.js +0 -757
  181. package/config/webpackDevServer.config.js +0 -130
  182. package/scripts/start.js +0 -166
  183. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +0 -66
  184. package/src/ui_components/Sidebar.js +0 -100
  185. package/src/ui_components/TopToolbar.js +0 -29
package/.babelrc CHANGED
@@ -1,3 +1,22 @@
1
1
  {
2
- "presets": ["@babel/preset-env", "@babel/preset-typescript"]
3
- }
2
+ "plugins": [
3
+ "@babel/plugin-transform-typescript",
4
+ "babel-plugin-styled-components",
5
+ [
6
+ "inline-react-svg",
7
+ {
8
+ "svgo": {
9
+ "plugins": [
10
+ {
11
+ "name": "preset-default",
12
+ "params": {
13
+ "overrides": { "mergePaths": false }
14
+ }
15
+ }
16
+ ]
17
+ }
18
+ }
19
+ ]
20
+ ],
21
+ "presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
22
+ }
package/.eslintrc.js CHANGED
@@ -16,5 +16,12 @@ module.exports = {
16
16
  sourceType: 'module',
17
17
  },
18
18
  plugins: ['react', '@typescript-eslint'],
19
- rules: {},
19
+ rules: {
20
+ "react/prop-types": "off"
21
+ },
22
+ settings:{
23
+ react:{
24
+ "version": "detect",
25
+ }
26
+ }
20
27
  };
@@ -3,7 +3,6 @@ module.exports = {
3
3
  addons: [
4
4
  "@storybook/addon-links",
5
5
  "@storybook/addon-essentials",
6
- "@storybook/preset-create-react-app",
7
6
  {
8
7
  name: "@storybook/addon-docs",
9
8
  options: {
@@ -2,8 +2,6 @@ import React from "react";
2
2
 
3
3
  import { themes } from "@storybook/theming";
4
4
 
5
- import { MapComponentsProvider } from "@mapcomponents/react-core";
6
- import MapLibreMap from "../src/components/MapLibreMap/MapLibreMap";
7
5
  import "./style.css";
8
6
 
9
7
  export const parameters = {
package/CHANGELOG.md CHANGED
@@ -1,6 +1,24 @@
1
1
  # Change Log
2
2
 
3
3
 
4
+ ## [v0.1.63] - 2022-12-16
5
+
6
+ ### Fixed
7
+ - b5d6636: update mui dependencies to fix export 'experimental_sx' (reexported as 'experimental_sx') was not found in '@mui/system'
8
+
9
+ ### Added
10
+ - f6af0fd: merge feature/cypress test setup (#48)
11
+ - a1c1f1c: add MlSketchTool demo to catalog (#51) …
12
+
13
+
14
+ ### Changed
15
+ - 4e6ad8e: merge feature/ml geojson demo optimization (#45)
16
+ - 36f3ee8: merge feature/ml gpx viewer demo optimization (#46)
17
+ - e2af70a: refactor TopToolBar component
18
+ - f820006: refactor Sidebar component
19
+ - 4038777: update d3 & maplibre-gl dependencies
20
+
21
+
4
22
  ## [v0.1.62] - 2022-11-26
5
23
 
6
24
  ### Added
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1669458732933" clover="3.2.0">
3
- <project timestamp="1669458732933" name="All files">
4
- <metrics statements="1849" coveredstatements="641" conditionals="1132" coveredconditionals="313" methods="343" coveredmethods="109" elements="3324" coveredelements="1063" complexity="0" loc="1849" ncloc="1849" packages="36" files="46" classes="46"/>
2
+ <coverage generated="1671193849391" clover="3.2.0">
3
+ <project timestamp="1671193849391" name="All files">
4
+ <metrics statements="2004" coveredstatements="641" conditionals="1212" coveredconditionals="313" methods="402" coveredmethods="109" elements="3618" coveredelements="1063" complexity="0" loc="2004" ncloc="2004" packages="39" files="54" classes="54"/>
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">
@@ -75,7 +75,19 @@
75
75
  </file>
76
76
  </package>
77
77
  <package name="src.components.MlCreatePdfForm">
78
- <metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
78
+ <metrics statements="12" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
79
+ <file name="MlCreatePdfForm.cy.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlCreatePdfForm/MlCreatePdfForm.cy.tsx">
80
+ <metrics statements="9" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
81
+ <line num="7" count="0" type="stmt"/>
82
+ <line num="9" count="0" type="stmt"/>
83
+ <line num="10" count="0" type="stmt"/>
84
+ <line num="12" count="0" type="stmt"/>
85
+ <line num="14" count="0" type="stmt"/>
86
+ <line num="16" count="0" type="stmt"/>
87
+ <line num="17" count="0" type="stmt"/>
88
+ <line num="18" count="0" type="stmt"/>
89
+ <line num="19" count="0" type="stmt"/>
90
+ </file>
79
91
  <file name="MlCreatePdfForm.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx">
80
92
  <metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
81
93
  <line num="24" count="10" type="stmt"/>
@@ -84,45 +96,47 @@
84
96
  </file>
85
97
  </package>
86
98
  <package name="src.components.MlFeatureEditor">
87
- <metrics statements="36" coveredstatements="29" conditionals="29" coveredconditionals="20" methods="8" coveredmethods="6"/>
99
+ <metrics statements="38" coveredstatements="29" conditionals="34" coveredconditionals="20" methods="8" coveredmethods="6"/>
88
100
  <file name="MlFeatureEditor.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlFeatureEditor/MlFeatureEditor.tsx">
89
- <metrics statements="36" coveredstatements="29" conditionals="29" coveredconditionals="20" methods="8" coveredmethods="6"/>
90
- <line num="44" count="11" type="stmt"/>
91
- <line num="45" count="16" type="stmt"/>
92
- <line num="46" count="16" type="stmt"/>
101
+ <metrics statements="38" coveredstatements="29" conditionals="34" coveredconditionals="20" methods="8" coveredmethods="6"/>
102
+ <line num="50" count="11" type="stmt"/>
93
103
  <line num="51" count="16" type="stmt"/>
94
104
  <line num="52" count="16" type="stmt"/>
95
- <line num="55" count="16" type="stmt"/>
96
- <line num="56" count="0" type="stmt"/>
105
+ <line num="57" count="16" type="stmt"/>
106
+ <line num="58" count="16" type="stmt"/>
97
107
  <line num="60" count="16" type="stmt"/>
98
- <line num="61" count="12" type="cond" truecount="4" falsecount="0"/>
99
- <line num="62" count="4" type="stmt"/>
100
- <line num="64" count="4" type="cond" truecount="1" falsecount="1"/>
101
- <line num="71" count="0" type="stmt"/>
102
- <line num="74" count="4" type="stmt"/>
103
- <line num="88" count="4" type="stmt"/>
104
- <line num="91" count="4" type="stmt"/>
105
- <line num="93" count="4" type="stmt"/>
106
- <line num="97" count="16" type="stmt"/>
107
- <line num="98" count="12" type="cond" truecount="4" falsecount="0"/>
108
- <line num="100" count="4" type="stmt"/>
109
- <line num="101" count="0" type="cond" truecount="0" falsecount="2"/>
110
- <line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
111
- <line num="104" count="0" type="stmt"/>
112
- <line num="105" count="0" type="stmt"/>
113
- <line num="110" count="4" type="stmt"/>
108
+ <line num="61" count="0" type="stmt"/>
109
+ <line num="63" count="0" type="cond" truecount="0" falsecount="2"/>
110
+ <line num="67" count="0" type="stmt"/>
111
+ <line num="71" count="16" type="stmt"/>
112
+ <line num="72" count="12" type="cond" truecount="4" falsecount="0"/>
113
+ <line num="73" count="4" type="stmt"/>
114
+ <line num="75" count="4" type="cond" truecount="1" falsecount="1"/>
115
+ <line num="83" count="0" type="stmt"/>
116
+ <line num="86" count="4" type="stmt"/>
117
+ <line num="101" count="4" type="stmt"/>
118
+ <line num="103" count="4" type="stmt"/>
119
+ <line num="105" count="4" type="stmt"/>
120
+ <line num="109" count="16" type="stmt"/>
121
+ <line num="110" count="12" type="cond" truecount="4" falsecount="0"/>
114
122
  <line num="112" count="4" type="stmt"/>
115
- <line num="114" count="4" type="stmt"/>
116
- <line num="115" count="2" type="cond" truecount="1" falsecount="1"/>
117
- <line num="117" count="2" type="stmt"/>
118
- <line num="119" count="2" type="stmt"/>
119
- <line num="124" count="16" type="stmt"/>
120
- <line num="125" count="8" type="cond" truecount="4" falsecount="0"/>
123
+ <line num="113" count="0" type="cond" truecount="0" falsecount="2"/>
124
+ <line num="115" count="0" type="cond" truecount="0" falsecount="2"/>
125
+ <line num="116" count="0" type="stmt"/>
126
+ <line num="117" count="0" type="stmt"/>
127
+ <line num="122" count="4" type="stmt"/>
128
+ <line num="124" count="4" type="stmt"/>
121
129
  <line num="126" count="4" type="stmt"/>
122
- <line num="130" count="16" type="stmt"/>
123
- <line num="131" count="4" type="cond" truecount="3" falsecount="1"/>
124
- <line num="133" count="0" type="stmt"/>
125
- <line num="137" count="16" type="stmt"/>
130
+ <line num="127" count="2" type="cond" truecount="1" falsecount="1"/>
131
+ <line num="129" count="2" type="stmt"/>
132
+ <line num="130" count="2" type="stmt"/>
133
+ <line num="134" count="16" type="stmt"/>
134
+ <line num="135" count="8" type="cond" truecount="4" falsecount="0"/>
135
+ <line num="136" count="4" type="stmt"/>
136
+ <line num="140" count="16" type="stmt"/>
137
+ <line num="141" count="4" type="cond" truecount="3" falsecount="1"/>
138
+ <line num="144" count="0" type="stmt"/>
139
+ <line num="148" count="16" type="stmt"/>
126
140
  </file>
127
141
  </package>
128
142
  <package name="src.components.MlFillExtrusionLayer">
@@ -311,9 +325,9 @@
311
325
  <line num="276" count="18" type="stmt"/>
312
326
  <line num="277" count="0" type="cond" truecount="0" falsecount="2"/>
313
327
  <line num="279" count="0" type="stmt"/>
314
- <line num="281" count="18" type="stmt"/>
315
- <line num="335" count="0" type="stmt"/>
316
- <line num="372" count="10" type="stmt"/>
328
+ <line num="283" count="18" type="stmt"/>
329
+ <line num="337" count="0" type="stmt"/>
330
+ <line num="374" count="10" type="stmt"/>
317
331
  </file>
318
332
  <file name="gpxConverter.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGPXViewer/gpxConverter.js">
319
333
  <metrics statements="276" coveredstatements="7" conditionals="203" coveredconditionals="1" methods="30" coveredmethods="1"/>
@@ -599,10 +613,75 @@
599
613
  <metrics statements="4" coveredstatements="4" conditionals="8" coveredconditionals="7" methods="1" coveredmethods="1"/>
600
614
  <file name="MlGeoJsonLayer.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx">
601
615
  <metrics statements="4" coveredstatements="4" conditionals="8" coveredconditionals="7" methods="1" coveredmethods="1"/>
602
- <line num="83" count="11" type="stmt"/>
603
- <line num="84" count="32" type="cond" truecount="1" falsecount="1"/>
604
- <line num="86" count="32" type="stmt"/>
605
- <line num="107" count="32" type="stmt"/>
616
+ <line num="99" count="11" type="stmt"/>
617
+ <line num="100" count="32" type="cond" truecount="1" falsecount="1"/>
618
+ <line num="102" count="32" type="stmt"/>
619
+ <line num="118" count="32" type="stmt"/>
620
+ </file>
621
+ </package>
622
+ <package name="src.components.MlGeoJsonLayer.story_utils">
623
+ <metrics statements="56" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="18" coveredmethods="0"/>
624
+ <file name="MlGeoJsonLayer.lineStyler.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.js">
625
+ <metrics statements="33" coveredstatements="0" conditionals="8" coveredconditionals="0" methods="10" coveredmethods="0"/>
626
+ <line num="17" count="0" type="stmt"/>
627
+ <line num="26" count="0" type="stmt"/>
628
+ <line num="48" count="0" type="stmt"/>
629
+ <line num="63" count="0" type="stmt"/>
630
+ <line num="64" count="0" type="stmt"/>
631
+ <line num="65" count="0" type="stmt"/>
632
+ <line num="74" count="0" type="stmt"/>
633
+ <line num="75" count="0" type="stmt"/>
634
+ <line num="76" count="0" type="stmt"/>
635
+ <line num="77" count="0" type="stmt"/>
636
+ <line num="78" count="0" type="stmt"/>
637
+ <line num="80" count="0" type="stmt"/>
638
+ <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
639
+ <line num="82" count="0" type="stmt"/>
640
+ <line num="84" count="0" type="stmt"/>
641
+ <line num="87" count="0" type="stmt"/>
642
+ <line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
643
+ <line num="89" count="0" type="stmt"/>
644
+ <line num="96" count="0" type="stmt"/>
645
+ <line num="98" count="0" type="stmt"/>
646
+ <line num="101" count="0" type="stmt"/>
647
+ <line num="102" count="0" type="stmt"/>
648
+ <line num="106" count="0" type="stmt"/>
649
+ <line num="109" count="0" type="stmt"/>
650
+ <line num="110" count="0" type="stmt"/>
651
+ <line num="113" count="0" type="stmt"/>
652
+ <line num="114" count="0" type="stmt"/>
653
+ <line num="115" count="0" type="stmt"/>
654
+ <line num="118" count="0" type="stmt"/>
655
+ <line num="131" count="0" type="stmt"/>
656
+ <line num="135" count="0" type="stmt"/>
657
+ <line num="155" count="0" type="stmt"/>
658
+ <line num="167" count="0" type="stmt"/>
659
+ </file>
660
+ <file name="MlGeoJsonLayer.polygonStyler.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.js">
661
+ <metrics statements="23" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="8" coveredmethods="0"/>
662
+ <line num="23" count="0" type="stmt"/>
663
+ <line num="46" count="0" type="stmt"/>
664
+ <line num="61" count="0" type="stmt"/>
665
+ <line num="62" count="0" type="stmt"/>
666
+ <line num="63" count="0" type="stmt"/>
667
+ <line num="64" count="0" type="stmt"/>
668
+ <line num="65" count="0" type="stmt"/>
669
+ <line num="66" count="0" type="stmt"/>
670
+ <line num="68" count="0" type="stmt"/>
671
+ <line num="69" count="0" type="cond" truecount="0" falsecount="2"/>
672
+ <line num="70" count="0" type="stmt"/>
673
+ <line num="72" count="0" type="stmt"/>
674
+ <line num="74" count="0" type="stmt"/>
675
+ <line num="78" count="0" type="stmt"/>
676
+ <line num="79" count="0" type="stmt"/>
677
+ <line num="82" count="0" type="stmt"/>
678
+ <line num="91" count="0" type="stmt"/>
679
+ <line num="92" count="0" type="stmt"/>
680
+ <line num="111" count="0" type="stmt"/>
681
+ <line num="112" count="0" type="stmt"/>
682
+ <line num="145" count="0" type="stmt"/>
683
+ <line num="146" count="0" type="stmt"/>
684
+ <line num="158" count="0" type="stmt"/>
606
685
  </file>
607
686
  </package>
608
687
  <package name="src.components.MlGeojsonLayerWithSource">
@@ -1208,6 +1287,115 @@
1208
1287
  <line num="227" count="0" type="stmt"/>
1209
1288
  </file>
1210
1289
  </package>
1290
+ <package name="src.components.MlSketchTool">
1291
+ <metrics statements="37" coveredstatements="0" conditionals="30" coveredconditionals="0" methods="20" coveredmethods="0"/>
1292
+ <file name="MlSketchTool.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSketchTool/MlSketchTool.tsx">
1293
+ <metrics statements="37" coveredstatements="0" conditionals="30" coveredconditionals="0" methods="20" coveredmethods="0"/>
1294
+ <line num="46" count="0" type="stmt"/>
1295
+ <line num="53" count="0" type="stmt"/>
1296
+ <line num="58" count="0" type="stmt"/>
1297
+ <line num="59" count="0" type="stmt"/>
1298
+ <line num="66" count="0" type="stmt"/>
1299
+ <line num="70" count="0" type="stmt"/>
1300
+ <line num="72" count="0" type="stmt"/>
1301
+ <line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
1302
+ <line num="74" count="0" type="stmt"/>
1303
+ <line num="80" count="0" type="stmt"/>
1304
+ <line num="90" count="0" type="stmt"/>
1305
+ <line num="91" count="0" type="stmt"/>
1306
+ <line num="92" count="0" type="stmt"/>
1307
+ <line num="93" count="0" type="stmt"/>
1308
+ <line num="95" count="0" type="stmt"/>
1309
+ <line num="103" count="0" type="stmt"/>
1310
+ <line num="112" count="0" type="stmt"/>
1311
+ <line num="117" count="0" type="stmt"/>
1312
+ <line num="122" count="0" type="stmt"/>
1313
+ <line num="140" count="0" type="stmt"/>
1314
+ <line num="141" count="0" type="stmt"/>
1315
+ <line num="142" count="0" type="cond" truecount="0" falsecount="4"/>
1316
+ <line num="143" count="0" type="stmt"/>
1317
+ <line num="145" count="0" type="cond" truecount="0" falsecount="2"/>
1318
+ <line num="146" count="0" type="stmt"/>
1319
+ <line num="147" count="0" type="stmt"/>
1320
+ <line num="149" count="0" type="stmt"/>
1321
+ <line num="151" count="0" type="stmt"/>
1322
+ <line num="154" count="0" type="stmt"/>
1323
+ <line num="165" count="0" type="stmt"/>
1324
+ <line num="179" count="0" type="stmt"/>
1325
+ <line num="190" count="0" type="stmt"/>
1326
+ <line num="193" count="0" type="stmt"/>
1327
+ <line num="213" count="0" type="stmt"/>
1328
+ <line num="225" count="0" type="stmt"/>
1329
+ <line num="237" count="0" type="stmt"/>
1330
+ <line num="267" count="0" type="stmt"/>
1331
+ </file>
1332
+ </package>
1333
+ <package name="src.components.MlSketchTool.LayerList">
1334
+ <metrics statements="51" coveredstatements="0" conditionals="35" coveredconditionals="0" methods="19" coveredmethods="0"/>
1335
+ <file name="ColorPicker.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSketchTool/LayerList/ColorPicker.tsx">
1336
+ <metrics statements="6" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="3" coveredmethods="0"/>
1337
+ <line num="15" count="0" type="stmt"/>
1338
+ <line num="19" count="0" type="stmt"/>
1339
+ <line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
1340
+ <line num="21" count="0" type="stmt"/>
1341
+ <line num="24" count="0" type="stmt"/>
1342
+ <line num="38" count="0" type="stmt"/>
1343
+ </file>
1344
+ <file name="LayerList.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSketchTool/LayerList/LayerList.tsx">
1345
+ <metrics statements="1" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
1346
+ <line num="9" count="0" type="stmt"/>
1347
+ </file>
1348
+ <file name="LayerListItem.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSketchTool/LayerList/LayerListItem.tsx">
1349
+ <metrics statements="22" coveredstatements="0" conditionals="23" coveredconditionals="0" methods="8" coveredmethods="0"/>
1350
+ <line num="26" count="0" type="stmt"/>
1351
+ <line num="27" count="0" type="stmt"/>
1352
+ <line num="28" count="0" type="stmt"/>
1353
+ <line num="35" count="0" type="stmt"/>
1354
+ <line num="36" count="0" type="cond" truecount="0" falsecount="2"/>
1355
+ <line num="37" count="0" type="stmt"/>
1356
+ <line num="39" count="0" type="stmt"/>
1357
+ <line num="42" count="0" type="stmt"/>
1358
+ <line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
1359
+ <line num="44" count="0" type="stmt"/>
1360
+ <line num="51" count="0" type="stmt"/>
1361
+ <line num="54" count="0" type="stmt"/>
1362
+ <line num="55" count="0" type="cond" truecount="0" falsecount="2"/>
1363
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
1364
+ <line num="57" count="0" type="stmt"/>
1365
+ <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
1366
+ <line num="60" count="0" type="stmt"/>
1367
+ <line num="64" count="0" type="stmt"/>
1368
+ <line num="67" count="0" type="stmt"/>
1369
+ <line num="76" count="0" type="stmt"/>
1370
+ <line num="77" count="0" type="stmt"/>
1371
+ <line num="91" count="0" type="stmt"/>
1372
+ </file>
1373
+ <file name="LayerPropertyForm.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSketchTool/LayerList/LayerPropertyForm.tsx">
1374
+ <metrics statements="22" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="7" coveredmethods="0"/>
1375
+ <line num="24" count="0" type="stmt"/>
1376
+ <line num="29" count="0" type="stmt"/>
1377
+ <line num="36" count="0" type="stmt"/>
1378
+ <line num="38" count="0" type="stmt"/>
1379
+ <line num="52" count="0" type="stmt"/>
1380
+ <line num="55" count="0" type="stmt"/>
1381
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
1382
+ <line num="58" count="0" type="stmt"/>
1383
+ <line num="62" count="0" type="cond" truecount="0" falsecount="3"/>
1384
+ <line num="64" count="0" type="stmt"/>
1385
+ <line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
1386
+ <line num="73" count="0" type="stmt"/>
1387
+ <line num="79" count="0" type="stmt"/>
1388
+ <line num="81" count="0" type="stmt"/>
1389
+ <line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
1390
+ <line num="89" count="0" type="stmt"/>
1391
+ <line num="95" count="0" type="stmt"/>
1392
+ <line num="97" count="0" type="stmt"/>
1393
+ <line num="108" count="0" type="stmt"/>
1394
+ <line num="111" count="0" type="stmt"/>
1395
+ <line num="114" count="0" type="stmt"/>
1396
+ <line num="121" count="0" type="stmt"/>
1397
+ </file>
1398
+ </package>
1211
1399
  <package name="src.components.MlSpatialElevationProfile">
1212
1400
  <metrics statements="62" coveredstatements="28" conditionals="26" coveredconditionals="12" methods="10" coveredmethods="5"/>
1213
1401
  <file name="MlSpatialElevationProfile.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js">