@mapcomponents/react-maplibre 0.1.52 → 0.1.55

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 (87) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/coverage/clover.xml +32 -31
  3. package/coverage/coverage-final.json +2 -2
  4. package/coverage/lcov-report/index.html +13 -13
  5. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +1 -1
  6. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  7. package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +1 -1
  8. package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
  9. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
  10. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  11. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +1 -1
  12. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
  13. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
  14. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  15. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +1 -1
  16. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  17. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +1 -1
  18. package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
  19. package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
  20. package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +1 -1
  21. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  22. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
  23. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  24. package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +20 -2
  25. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  26. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +1 -1
  27. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  28. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +1 -1
  29. package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
  30. package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
  31. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
  32. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
  33. package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
  34. package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +1 -1
  35. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  36. package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +1 -1
  37. package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
  38. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
  39. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  40. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +107 -26
  41. package/coverage/lcov-report/src/components/MlNavigationTools/index.html +12 -12
  42. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
  43. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +1 -1
  44. package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
  45. package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
  46. package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
  47. package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
  48. package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
  49. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
  50. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
  51. package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
  52. package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
  53. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
  54. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
  55. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
  56. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  57. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +1 -1
  58. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
  59. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
  60. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  61. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +1 -1
  62. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  63. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +1 -1
  64. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  65. package/coverage/lcov-report/src/contexts/MapContext.tsx.html +1 -1
  66. package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
  67. package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
  68. package/coverage/lcov-report/src/contexts/index.html +1 -1
  69. package/coverage/lcov-report/src/hooks/index.html +1 -1
  70. package/coverage/lcov-report/src/hooks/useLayer.ts.html +1 -1
  71. package/coverage/lcov-report/src/hooks/useMap.ts.html +1 -1
  72. package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
  73. package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
  74. package/coverage/lcov-report/src/index.html +1 -1
  75. package/coverage/lcov-report/src/index.ts.html +1 -1
  76. package/coverage/lcov.info +81 -78
  77. package/dist/components/MlLayer/MlLayer.d.ts +5 -0
  78. package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +14 -0
  79. package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +8 -3
  80. package/dist/decorators/NoNavToolsDecorator.d.ts +2 -0
  81. package/dist/index.esm.js +25 -17
  82. package/dist/index.esm.js.map +1 -1
  83. package/package.json +1 -1
  84. package/src/components/MlLayer/MlLayer.tsx +6 -0
  85. package/src/components/MlNavigationTools/MlNavigationTools.stories.js +41 -5
  86. package/src/components/MlNavigationTools/MlNavigationTools.tsx +46 -19
  87. package/src/decorators/NoNavToolsDecorator.js +31 -0
@@ -340,7 +340,7 @@ export type { useMapType };
340
340
  <div class='footer quiet pad2 space-top1 center small'>
341
341
  Code coverage generated by
342
342
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
343
- at Tue Jul 19 2022 06:50:01 GMT+0000 (Coordinated Universal Time)
343
+ at Tue Jul 19 2022 12:57:03 GMT+0000 (Coordinated Universal Time)
344
344
  </div>
345
345
  <script src="../../prettify.js"></script>
346
346
  <script>
@@ -637,7 +637,7 @@ export default useMapState;
637
637
  <div class='footer quiet pad2 space-top1 center small'>
638
638
  Code coverage generated by
639
639
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
640
- at Tue Jul 19 2022 06:50:01 GMT+0000 (Coordinated Universal Time)
640
+ at Tue Jul 19 2022 12:57:03 GMT+0000 (Coordinated Universal Time)
641
641
  </div>
642
642
  <script src="../../prettify.js"></script>
643
643
  <script>
@@ -343,7 +343,7 @@ export default useWms;
343
343
  <div class='footer quiet pad2 space-top1 center small'>
344
344
  Code coverage generated by
345
345
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
346
- at Tue Jul 19 2022 06:50:01 GMT+0000 (Coordinated Universal Time)
346
+ at Tue Jul 19 2022 12:57:03 GMT+0000 (Coordinated Universal Time)
347
347
  </div>
348
348
  <script src="../../prettify.js"></script>
349
349
  <script>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at Tue Jul 19 2022 06:50:01 GMT+0000 (Coordinated Universal Time)
104
+ at Tue Jul 19 2022 12:57:03 GMT+0000 (Coordinated Universal Time)
105
105
  </div>
106
106
  <script src="../prettify.js"></script>
107
107
  <script>
@@ -187,7 +187,7 @@ export { default as SimpleDataContext } from "./contexts/SimpleDataContext";
187
187
  <div class='footer quiet pad2 space-top1 center small'>
188
188
  Code coverage generated by
189
189
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
190
- at Tue Jul 19 2022 06:50:01 GMT+0000 (Coordinated Universal Time)
190
+ at Tue Jul 19 2022 12:57:03 GMT+0000 (Coordinated Universal Time)
191
191
  </div>
192
192
  <script src="../prettify.js"></script>
193
193
  <script>
@@ -1278,13 +1278,13 @@ BRH:21
1278
1278
  end_of_record
1279
1279
  TN:
1280
1280
  SF:src/components/MlLayer/MlLayer.tsx
1281
- FN:30,(anonymous_0)
1281
+ FN:35,(anonymous_0)
1282
1282
  FNF:1
1283
1283
  FNH:1
1284
1284
  FNDA:20,(anonymous_0)
1285
- DA:30,11
1286
- DA:31,20
1287
- DA:45,20
1285
+ DA:35,11
1286
+ DA:36,20
1287
+ DA:51,20
1288
1288
  LF:3
1289
1289
  LH:3
1290
1290
  BRF:0
@@ -1867,14 +1867,14 @@ BRH:4
1867
1867
  end_of_record
1868
1868
  TN:
1869
1869
  SF:src/components/MlNavigationTools/MlNavigationTools.tsx
1870
- FN:36,(anonymous_0)
1871
- FN:61,(anonymous_1)
1872
- FN:66,(anonymous_2)
1873
- FN:76,(anonymous_3)
1874
- FN:84,(anonymous_4)
1875
- FN:92,(anonymous_5)
1876
- FN:132,(anonymous_6)
1877
- FN:135,(anonymous_7)
1870
+ FN:48,(anonymous_0)
1871
+ FN:76,(anonymous_1)
1872
+ FN:81,(anonymous_2)
1873
+ FN:91,(anonymous_3)
1874
+ FN:99,(anonymous_4)
1875
+ FN:107,(anonymous_5)
1876
+ FN:149,(anonymous_6)
1877
+ FN:152,(anonymous_7)
1878
1878
  FNF:8
1879
1879
  FNH:0
1880
1880
  FNDA:0,(anonymous_0)
@@ -1885,82 +1885,85 @@ FNDA:0,(anonymous_4)
1885
1885
  FNDA:0,(anonymous_5)
1886
1886
  FNDA:0,(anonymous_6)
1887
1887
  FNDA:0,(anonymous_7)
1888
- DA:36,10
1889
- DA:37,0
1890
- DA:42,0
1891
- DA:43,0
1892
- DA:44,0
1893
- DA:61,0
1894
- DA:62,0
1895
- DA:64,0
1896
- DA:67,0
1897
- DA:69,0
1898
- DA:73,0
1888
+ DA:48,10
1889
+ DA:49,0
1890
+ DA:54,0
1891
+ DA:55,0
1892
+ DA:56,0
1893
+ DA:72,0
1899
1894
  DA:76,0
1900
1895
  DA:77,0
1901
1896
  DA:79,0
1902
- DA:80,0
1897
+ DA:82,0
1903
1898
  DA:84,0
1904
- DA:85,0
1905
- DA:87,0
1906
1899
  DA:88,0
1900
+ DA:91,0
1907
1901
  DA:92,0
1908
- DA:93,0
1902
+ DA:94,0
1909
1903
  DA:95,0
1910
- DA:96,0
1911
- DA:97,0
1912
1904
  DA:99,0
1905
+ DA:100,0
1913
1906
  DA:102,0
1914
- DA:132,0
1915
- DA:135,0
1916
- DA:157,10
1917
- LF:29
1907
+ DA:103,0
1908
+ DA:107,0
1909
+ DA:108,0
1910
+ DA:110,0
1911
+ DA:111,0
1912
+ DA:112,0
1913
+ DA:114,0
1914
+ DA:117,0
1915
+ DA:149,0
1916
+ DA:152,0
1917
+ DA:182,10
1918
+ LF:30
1918
1919
  LH:2
1919
- BRDA:47,0,0,0
1920
- BRDA:47,0,1,0
1921
- BRDA:48,1,0,0
1922
- BRDA:48,1,1,0
1923
- BRDA:54,2,0,0
1924
- BRDA:54,2,1,0
1925
- BRDA:62,3,0,0
1926
- BRDA:62,3,1,0
1927
- BRDA:67,4,0,0
1928
- BRDA:67,4,1,0
1929
- BRDA:77,5,0,0
1930
- BRDA:77,5,1,0
1931
- BRDA:79,6,0,0
1932
- BRDA:79,6,1,0
1933
- BRDA:85,7,0,0
1934
- BRDA:85,7,1,0
1935
- BRDA:87,8,0,0
1936
- BRDA:87,8,1,0
1937
- BRDA:93,9,0,0
1938
- BRDA:93,9,1,0
1939
- BRDA:96,10,0,0
1940
- BRDA:96,10,1,0
1941
- BRDA:107,11,0,0
1942
- BRDA:107,11,1,0
1943
- BRDA:108,12,0,0
1944
- BRDA:108,12,1,0
1945
- BRDA:117,13,0,0
1946
- BRDA:117,13,1,0
1947
- BRDA:118,14,0,0
1948
- BRDA:118,14,1,0
1949
- BRDA:119,15,0,0
1950
- BRDA:119,15,1,0
1951
- BRDA:126,16,0,0
1952
- BRDA:126,16,1,0
1953
- BRDA:129,17,0,0
1954
- BRDA:129,17,1,0
1955
- BRDA:131,18,0,0
1956
- BRDA:131,18,1,0
1957
- BRDA:134,19,0,0
1958
- BRDA:134,19,1,0
1959
- BRDA:147,20,0,0
1960
- BRDA:147,20,1,0
1961
- BRDA:150,21,0,0
1962
- BRDA:150,21,1,0
1963
- BRF:44
1920
+ BRDA:59,0,0,0
1921
+ BRDA:59,0,1,0
1922
+ BRDA:60,1,0,0
1923
+ BRDA:60,1,1,0
1924
+ BRDA:66,2,0,0
1925
+ BRDA:66,2,1,0
1926
+ BRDA:77,3,0,0
1927
+ BRDA:77,3,1,0
1928
+ BRDA:82,4,0,0
1929
+ BRDA:82,4,1,0
1930
+ BRDA:92,5,0,0
1931
+ BRDA:92,5,1,0
1932
+ BRDA:94,6,0,0
1933
+ BRDA:94,6,1,0
1934
+ BRDA:100,7,0,0
1935
+ BRDA:100,7,1,0
1936
+ BRDA:102,8,0,0
1937
+ BRDA:102,8,1,0
1938
+ BRDA:108,9,0,0
1939
+ BRDA:108,9,1,0
1940
+ BRDA:111,10,0,0
1941
+ BRDA:111,10,1,0
1942
+ BRDA:122,11,0,0
1943
+ BRDA:122,11,1,0
1944
+ BRDA:123,12,0,0
1945
+ BRDA:123,12,1,0
1946
+ BRDA:132,13,0,0
1947
+ BRDA:132,13,1,0
1948
+ BRDA:133,14,0,0
1949
+ BRDA:133,14,1,0
1950
+ BRDA:134,15,0,0
1951
+ BRDA:134,15,1,0
1952
+ BRDA:140,16,0,0
1953
+ BRDA:140,16,1,0
1954
+ BRDA:142,17,0,0
1955
+ BRDA:142,17,1,0
1956
+ BRDA:145,18,0,0
1957
+ BRDA:145,18,1,0
1958
+ BRDA:148,19,0,0
1959
+ BRDA:148,19,1,0
1960
+ BRDA:151,20,0,0
1961
+ BRDA:151,20,1,0
1962
+ BRDA:163,21,0,0
1963
+ BRDA:163,21,1,0
1964
+ BRDA:174,22,0,0
1965
+ BRDA:174,22,1,0
1966
+ BRF:46
1964
1967
  BRH:0
1965
1968
  end_of_record
1966
1969
  TN:
@@ -1,3 +1,4 @@
1
+ import { Feature, FeatureCollection } from "@turf/turf";
1
2
  interface MlLayerProps {
2
3
  /**
3
4
  * Id of the target MapLibre instance in mapContext
@@ -16,6 +17,10 @@ interface MlLayerProps {
16
17
  * Javascript object that is passed the addLayer command as first parameter.
17
18
  */
18
19
  options?: any;
20
+ /**
21
+ * GeoJSON data that is supposed to be rendered by this component.
22
+ */
23
+ geojson?: Feature | FeatureCollection | undefined;
19
24
  }
20
25
  /**
21
26
  * Basic layer component that create a layer in a MapLibre-gl instance and keeps it updated according to it attribute configuration.
@@ -8,6 +8,14 @@ interface MlNavigationToolsProps {
8
8
  * https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addlayer - see "beforeId" property
9
9
  */
10
10
  insertBeforeLayer?: string;
11
+ /**
12
+ * Show 3D button
13
+ */
14
+ show3DButton?: boolean;
15
+ /**
16
+ * Show zoom button
17
+ */
18
+ showZoomButtons?: boolean;
11
19
  /**
12
20
  * Show follow GPS button
13
21
  */
@@ -16,6 +24,10 @@ interface MlNavigationToolsProps {
16
24
  * Show center on current position button
17
25
  */
18
26
  showCenterLocationButton?: boolean;
27
+ /**
28
+ * Additional JSX Elements to be rendered below MlNavigationTools buttons
29
+ */
30
+ children?: JSX.Element;
19
31
  }
20
32
  /**
21
33
  * @component
@@ -24,8 +36,10 @@ declare const MlNavigationTools: {
24
36
  (props: MlNavigationToolsProps): JSX.Element;
25
37
  defaultProps: {
26
38
  mapId: undefined;
39
+ show3DButton: boolean;
27
40
  showFollowGpsButton: boolean;
28
41
  showCenterLocationButton: boolean;
42
+ showZoomButtons: boolean;
29
43
  };
30
44
  };
31
45
  export default MlNavigationTools;
@@ -1,5 +1,10 @@
1
1
  export default storyoptions;
2
- export const ExampleConfig: any;
2
+ export const DefaultConfig: any;
3
+ export const No3DButton: any;
4
+ export const ShowCenterLocationButton: any;
5
+ export const NoZoomButtons: any;
6
+ export const NoFollowGpsButton: any;
7
+ export const CustomButton: any;
3
8
  declare namespace storyoptions {
4
9
  export const title: string;
5
10
  export { MlNavigationTools as component };
@@ -7,7 +12,7 @@ declare namespace storyoptions {
7
12
  const url: {};
8
13
  const layer: {};
9
14
  }
10
- export { mapContextDecorator as decorators };
15
+ export { noNavToolsDecorator as decorators };
11
16
  }
12
17
  import MlNavigationTools from "./MlNavigationTools";
13
- import mapContextDecorator from "../../decorators/MapContextDecorator";
18
+ import noNavToolsDecorator from "../../decorators/NoNavToolsDecorator";
@@ -0,0 +1,2 @@
1
+ export default decorators;
2
+ declare const decorators: ((Story: any) => JSX.Element)[];
package/dist/index.esm.js CHANGED
@@ -13382,12 +13382,15 @@ var MlNavigationTools = function (props) {
13382
13382
  //border: "1px solid #bbb",
13383
13383
  //boxShadow: "0px 0px 4px rgba(0,0,0,.5)",
13384
13384
  margin: 0.15,
13385
- fontSize: mediaIsMobile ? "1.5em" : "1.2em",
13385
+ fontSize: mediaIsMobile ? "1.4em" : "1.2em",
13386
13386
  ":hover": {
13387
13387
  backgroundColor: "#515151",
13388
13388
  },
13389
13389
  color: "#ececec",
13390
13390
  };
13391
+ var iconStyle = {
13392
+ fontSize: buttonStyle.fontSize,
13393
+ };
13391
13394
  useEffect(function () {
13392
13395
  if (!mapHook.map)
13393
13396
  return;
@@ -13438,32 +13441,36 @@ var MlNavigationTools = function (props) {
13438
13441
  }, backgroundStyle: {
13439
13442
  boxShadow: "0px 0px 18px rgba(0,0,0,.5)",
13440
13443
  } }),
13441
- React__default.createElement(Button$1, { sx: __assign(__assign({}, buttonStyle), { fontSize: mediaIsMobile ? "1.4em" : "1em", fontWeight: 600 }), onClick: adjustPitch }, pitch ? "2D" : "3D"),
13442
- props.showFollowGpsButton &&
13443
- React__default.createElement(MlFollowGps, { style: __assign({}, (function (_a) {
13444
- _a.color; var rest = __rest(_a, ["color"]);
13445
- return rest;
13446
- })(buttonStyle)) }),
13447
- props.showCenterLocationButton &&
13448
- React__default.createElement(MlCenterPosition, { style: __assign({}, (function (_a) {
13449
- _a.color; var rest = __rest(_a, ["color"]);
13450
- return rest;
13451
- })(buttonStyle)) }),
13444
+ props.show3DButton && (React__default.createElement(Button$1, { sx: __assign(__assign({}, buttonStyle), { fontSize: mediaIsMobile ? "1.4em" : "1em", fontWeight: 600 }), onClick: adjustPitch }, pitch ? "2D" : "3D")),
13445
+ props.showFollowGpsButton && (React__default.createElement(MlFollowGps, { style: __assign({}, (function (_a) {
13446
+ _a.color; var rest = __rest(_a, ["color"]);
13447
+ return rest;
13448
+ })(buttonStyle)) })),
13449
+ props.showCenterLocationButton && (React__default.createElement(MlCenterPosition, { style: __assign({}, (function (_a) {
13450
+ _a.color; var rest = __rest(_a, ["color"]);
13451
+ return rest;
13452
+ })(buttonStyle)) })),
13452
13453
  React__default.createElement(ButtonGroup$1, { orientation: "vertical", sx: {
13453
13454
  width: "50px",
13454
13455
  border: "none",
13455
13456
  Button: { minWidth: "20px !important", border: "none", padding: 0 },
13456
13457
  "Button:hover": { border: "none" },
13457
- } },
13458
- React__default.createElement(Button$1, { sx: __assign(__assign({}, buttonStyle), { color: "#ececec" }), onClick: zoomIn },
13459
- React__default.createElement(default_1$3, { sx: { fontSize: mediaIsMobile ? "1.5em" : "1.2em" } })),
13460
- React__default.createElement(Button$1, { sx: __assign(__assign({}, buttonStyle), { color: "#ececec" }), onClick: zoomOut },
13461
- React__default.createElement(default_1$2, { sx: { fontSize: mediaIsMobile ? "1.5em" : "1.2em" } })))));
13458
+ } }, props.showZoomButtons && (React__default.createElement(React__default.Fragment, null,
13459
+ React__default.createElement(Button$1, { sx: __assign({}, buttonStyle), onClick: zoomIn },
13460
+ React__default.createElement(default_1$3, { sx: __assign({}, iconStyle) })),
13461
+ React__default.createElement(Button$1, { sx: __assign({}, buttonStyle), onClick: zoomOut },
13462
+ React__default.createElement(default_1$2, { sx: __assign({}, iconStyle) }))))),
13463
+ props.children &&
13464
+ React__default.cloneElement(props.children, {
13465
+ sx: __assign({}, buttonStyle),
13466
+ })));
13462
13467
  };
13463
13468
  MlNavigationTools.defaultProps = {
13464
13469
  mapId: undefined,
13470
+ show3DButton: true,
13465
13471
  showFollowGpsButton: true,
13466
13472
  showCenterLocationButton: false,
13473
+ showZoomButtons: true,
13467
13474
  };
13468
13475
 
13469
13476
  /**
@@ -13476,6 +13483,7 @@ var MlLayer = function (props) {
13476
13483
  idPrefix: 'MlLayer-',
13477
13484
  layerId: props.layerId,
13478
13485
  mapId: props.mapId,
13486
+ geojson: props.geojson,
13479
13487
  options: __assign({ type: "background", paint: {
13480
13488
  "background-color": "rgba(0,0,0,0)",
13481
13489
  } }, props.options),