@mapcomponents/react-maplibre 0.1.83 → 0.1.85

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 (25) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +1 -1
  3. package/dist/components/MlFeatureEditor/MlFeatureEditor.stories.d.ts +14 -14
  4. package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +3 -2
  5. package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +1 -1
  6. package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +27 -19
  7. package/dist/components/MlScaleReference/MlScaleReference.stories.d.ts +13 -13
  8. package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.d.ts +1 -1
  9. package/dist/components/MlWmsLoader/utils/WMSLinks.d.ts +1 -0
  10. package/dist/decorators/GeoJsonMapDecorator.d.ts +2 -0
  11. package/dist/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +88 -0
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.esm.js +439 -162
  14. package/dist/index.esm.js.map +1 -1
  15. package/dist/ui_components/LayerList/LayerList.d.ts +3 -3
  16. package/dist/ui_components/LayerList/LayerListFolder.d.ts +4 -4
  17. package/dist/ui_components/LayerList/LayerListItem.d.ts +3 -3
  18. package/dist/ui_components/LayerList/LayerListItemFactory.d.ts +1 -1
  19. package/dist/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +24 -4
  20. package/dist/ui_components/LayerList/util/LayerPropertyForm.d.ts +4 -4
  21. package/dist/ui_components/LayerList/util/input/ColorPicker.d.ts +4 -4
  22. package/dist/ui_components/UploadButton.d.ts +1 -0
  23. package/package.json +2 -2
  24. package/dist/components/MlNavigationTools/MlNavigationTools.cy.d.ts +0 -1
  25. /package/dist/hooks/{useFeatureEditor.d.ts → useFeatureEditor/useFeatureEditor.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Change Log
2
+ ## [v0.1.85] - 2023-07-14
2
3
 
4
+ ### Fixed
5
+ - b0be9be: MlLayerSwipe resize window bug
6
+ - b0be9be: MlSketchTools hovered Feature and mobile edition bugs
7
+ - b0be9be: MlNavToools setpitch bug
8
+ - b0be9be: Optimized stories
9
+
10
+ ### Changed
11
+ - b0be9be: mapbox-gl-draw from 1.4.0 to 1.4.2
12
+ - 5dd85be: code styling in LayerList, Compass and ColorPicker
13
+
14
+ ### Added
15
+ - b0be9be: added mlFollowgps accurancy fitBounds function
16
+
17
+ ## [v0.1.84] - 2023-06-29
18
+
19
+ ### Fixed
20
+
21
+ - 2690227: fix theme, remove unfinished cy test
22
+
23
+ ## [v0.1.83] - 2023-06-28
24
+
25
+ ### Changed
26
+
27
+ - d43a6e8: new Compass, NavTools and LayerList style
28
+
3
29
  ## [v0.1.82] - 2023-06-12
4
30
 
5
31
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useFeatureEditorProps } from '../../hooks/useFeatureEditor';
2
+ import { useFeatureEditorProps } from '../../hooks/useFeatureEditor/useFeatureEditor';
3
3
  import './MlFeatureEditor.css';
4
4
  declare const MlFeatureEditor: React.FC<useFeatureEditorProps>;
5
5
  export default MlFeatureEditor;
@@ -1,15 +1,15 @@
1
+ import React from 'react';
2
+ import { useFeatureEditorProps } from 'src/hooks/useFeatureEditor/useFeatureEditor';
3
+ declare const storyoptions: {
4
+ title: string;
5
+ component: React.FC<useFeatureEditorProps>;
6
+ argTypes: {};
7
+ decorators: ((Story: any, context: any) => JSX.Element)[];
8
+ };
1
9
  export default storyoptions;
2
- export const EditPolygon: any;
3
- export const EditPoint: any;
4
- export const EditLineString: any;
5
- export const DrawPolygon: any;
6
- export const DrawPoint: any;
7
- export const DrawLineString: any;
8
- declare namespace storyoptions {
9
- export const title: string;
10
- export { MlFeatureEditor as component };
11
- export const argTypes: {};
12
- export { mapContextDecorator as decorators };
13
- }
14
- import MlFeatureEditor from "./MlFeatureEditor";
15
- import mapContextDecorator from "../../decorators/MapContextDecorator";
10
+ export declare const EditPolygon: any;
11
+ export declare const EditPoint: any;
12
+ export declare const EditLinestring: any;
13
+ export declare const DrawPolygon: any;
14
+ export declare const DrawPoint: any;
15
+ export declare const DrawLinestring: any;
@@ -7,8 +7,9 @@ declare const storyoptions: {
7
7
  decorators: ((Story: any, context: any) => JSX.Element)[];
8
8
  };
9
9
  export default storyoptions;
10
+ export declare const Circle: any;
10
11
  export declare const Linestring: any;
11
12
  export declare const Polygon: any;
13
+ export declare const HeatMap: any;
14
+ export declare const Symbol: any;
12
15
  export declare const DefaultPaintOverrides: any;
13
- export declare const HeatMapEarthquakes: any;
14
- export declare const CircleMapWheregroupLocations: any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { SxProps } from '@mui/material';
3
- interface MlNavigationToolsProps {
3
+ export interface MlNavigationToolsProps {
4
4
  /**
5
5
  * Id of the target MapLibre instance in mapContext
6
6
  */
@@ -1,20 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { MlNavigationToolsProps } from "./MlNavigationTools";
3
+ declare const storyoptions: {
4
+ title: string;
5
+ component: {
6
+ (props: MlNavigationToolsProps): JSX.Element;
7
+ defaultProps: {
8
+ mapId: undefined;
9
+ show3DButton: boolean;
10
+ showFollowGpsButton: boolean;
11
+ showCenterLocationButton: boolean;
12
+ showZoomButtons: boolean;
13
+ };
14
+ };
15
+ argTypes: {
16
+ url: {};
17
+ layer: {};
18
+ };
19
+ decorators: ((Story: any, context: any) => JSX.Element)[];
20
+ };
1
21
  export default storyoptions;
2
- export const DefaultConfig: any;
3
- export const No3DButton: any;
4
- export const ShowCenterLocationButton: any;
5
- export const AlterToolPosition: any;
6
- export const NoZoomButtons: any;
7
- export const NoFollowGpsButton: any;
8
- export const CustomButton: any;
9
- export const ExampleConfig: any;
10
- declare namespace storyoptions {
11
- export const title: string;
12
- export { MlNavigationTools as component };
13
- export namespace argTypes {
14
- const url: {};
15
- const layer: {};
16
- }
17
- export { noNavToolsDecorator as decorators };
18
- }
19
- import MlNavigationTools from "./MlNavigationTools";
20
- import noNavToolsDecorator from "../../decorators/NoNavToolsDecorator";
22
+ export declare const DefaultConfig: any;
23
+ export declare const No3dButton: any;
24
+ export declare const ShowCenterLocationButton: any;
25
+ export declare const AlternativePosition: any;
26
+ export declare const NoZoomButtons: any;
27
+ export declare const NoFollowGpsButton: any;
28
+ export declare const CustomButton: any;
@@ -1,14 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { MlScaleReferenceProps } from "./MlScaleReference";
3
+ declare const storyoptions: {
4
+ title: string;
5
+ component: (props: MlScaleReferenceProps) => JSX.Element;
6
+ argTypes: {
7
+ url: {};
8
+ layer: {};
9
+ };
10
+ decorators: ((Story: any, context: any) => JSX.Element)[];
11
+ };
1
12
  export default storyoptions;
2
- export const Toolbar: any;
3
- export const Overlay: any;
4
- declare namespace storyoptions {
5
- export const title: string;
6
- export { MlScaleReference as component };
7
- export namespace argTypes {
8
- const url: {};
9
- const layer: {};
10
- }
11
- export { mapContextDecorator as decorators };
12
- }
13
- import MlScaleReference from "./MlScaleReference";
14
- import mapContextDecorator from "../../decorators/MapContextDecorator";
13
+ export declare const Toolbar: any;
14
+ export declare const Overlay: any;
@@ -1,5 +1,5 @@
1
1
  export default storyoptions;
2
- export const Linestring: any;
2
+ export const ExampleConfig: any;
3
3
  declare namespace storyoptions {
4
4
  export const title: string;
5
5
  export { MlTransitionGeoJsonLayer as component };
@@ -3,5 +3,6 @@ export interface wmsLinksProps {
3
3
  load: (str: string) => void;
4
4
  open: boolean;
5
5
  close: () => void;
6
+ openWMSLoader: (boolean: boolean) => void;
6
7
  }
7
8
  export default function WMSLinks(props: wmsLinksProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export default decorators;
2
+ declare const decorators: ((Story: any, context: any) => JSX.Element)[];
@@ -0,0 +1,88 @@
1
+ declare function featureEditorStyle(): ({
2
+ id: string;
3
+ type: string;
4
+ filter: (string | string[])[];
5
+ paint: {
6
+ 'fill-color': string;
7
+ 'fill-outline-color': string;
8
+ 'fill-opacity': number;
9
+ 'circle-radius'?: undefined;
10
+ 'circle-color'?: undefined;
11
+ 'line-color'?: undefined;
12
+ 'line-width'?: undefined;
13
+ 'line-dasharray'?: undefined;
14
+ 'circle-opacity'?: undefined;
15
+ };
16
+ layout?: undefined;
17
+ } | {
18
+ id: string;
19
+ type: string;
20
+ filter: (string | string[])[];
21
+ paint: {
22
+ 'circle-radius': number;
23
+ 'circle-color': string;
24
+ 'fill-color'?: undefined;
25
+ 'fill-outline-color'?: undefined;
26
+ 'fill-opacity'?: undefined;
27
+ 'line-color'?: undefined;
28
+ 'line-width'?: undefined;
29
+ 'line-dasharray'?: undefined;
30
+ 'circle-opacity'?: undefined;
31
+ };
32
+ layout?: undefined;
33
+ } | {
34
+ id: string;
35
+ type: string;
36
+ filter: (string | string[])[];
37
+ layout: {
38
+ 'line-cap': string;
39
+ 'line-join': string;
40
+ };
41
+ paint: {
42
+ 'line-color': string;
43
+ 'line-width': number;
44
+ 'fill-color'?: undefined;
45
+ 'fill-outline-color'?: undefined;
46
+ 'fill-opacity'?: undefined;
47
+ 'circle-radius'?: undefined;
48
+ 'circle-color'?: undefined;
49
+ 'line-dasharray'?: undefined;
50
+ 'circle-opacity'?: undefined;
51
+ };
52
+ } | {
53
+ id: string;
54
+ type: string;
55
+ filter: (string | string[])[];
56
+ layout: {
57
+ 'line-cap': string;
58
+ 'line-join': string;
59
+ };
60
+ paint: {
61
+ 'line-color': string;
62
+ 'line-dasharray': number[];
63
+ 'line-width': number;
64
+ 'fill-color'?: undefined;
65
+ 'fill-outline-color'?: undefined;
66
+ 'fill-opacity'?: undefined;
67
+ 'circle-radius'?: undefined;
68
+ 'circle-color'?: undefined;
69
+ 'circle-opacity'?: undefined;
70
+ };
71
+ } | {
72
+ id: string;
73
+ type: string;
74
+ filter: (string | string[])[];
75
+ paint: {
76
+ 'circle-radius': number;
77
+ 'circle-opacity': number;
78
+ 'circle-color': string;
79
+ 'fill-color'?: undefined;
80
+ 'fill-outline-color'?: undefined;
81
+ 'fill-opacity'?: undefined;
82
+ 'line-color'?: undefined;
83
+ 'line-width'?: undefined;
84
+ 'line-dasharray'?: undefined;
85
+ };
86
+ layout?: undefined;
87
+ })[];
88
+ export default featureEditorStyle;
package/dist/index.d.ts CHANGED
@@ -48,7 +48,7 @@ export { default as useSource } from "./hooks/useSource";
48
48
  export { default as useWms } from "./hooks/useWms";
49
49
  export { default as useFilterData } from "./components/MlTemporalController/utils/useFilterData";
50
50
  export { default as useLayerContext } from "./hooks/useLayerContext";
51
- export { default as useFeatureEditor } from "./hooks/useFeatureEditor";
51
+ export { default as useFeatureEditor } from "./hooks/useFeatureEditor/useFeatureEditor";
52
52
  export { default as useAddProtocol } from "./hooks/useAddProtocol/useAddProtocol";
53
53
  export { MapComponentsProvider } from "./contexts/MapContext";
54
54
  export { default as MapContext } from "./contexts/MapContext";