@mapcomponents/react-maplibre 0.1.84 → 0.1.86
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.
- package/CHANGELOG.md +28 -0
- package/dist/components/MlCenterPosition/MlCenterPosition.d.ts +0 -2
- package/dist/components/MlCenterPosition/MlCenterPosition.stories.d.ts +0 -2
- package/dist/components/MlFeatureEditor/MlFeatureEditor.d.ts +1 -1
- package/dist/components/MlFeatureEditor/MlFeatureEditor.stories.d.ts +14 -14
- package/dist/components/MlFollowGps/MlFollowGps.d.ts +0 -1
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +1 -1
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +3 -2
- package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +1 -1
- package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +27 -19
- package/dist/components/MlScaleReference/MlScaleReference.stories.d.ts +13 -13
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +1 -1
- package/dist/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.d.ts +1 -1
- package/dist/components/MlWmsLoader/utils/WMSLinks.d.ts +1 -0
- package/dist/decorators/GeoJsonMapDecorator.d.ts +2 -0
- package/dist/hooks/useAddImage/useAddImage.d.ts +20 -0
- package/dist/hooks/useAddImage/useAddImage.stories.d.ts +14 -0
- package/dist/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +88 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +604 -284
- package/dist/index.esm.js.map +1 -1
- package/dist/ui_components/LayerList/LayerList.d.ts +3 -3
- package/dist/ui_components/LayerList/LayerListFolder.d.ts +4 -4
- package/dist/ui_components/LayerList/LayerListItem.d.ts +3 -3
- package/dist/ui_components/LayerList/LayerListItemFactory.d.ts +1 -1
- package/dist/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +24 -4
- package/dist/ui_components/LayerList/util/LayerPropertyForm.d.ts +4 -4
- package/dist/ui_components/LayerList/util/input/ColorPicker.d.ts +4 -4
- package/dist/ui_components/MapcomponentsTheme.d.ts +8 -0
- package/dist/ui_components/UploadButton.d.ts +1 -0
- package/package.json +5 -6
- /package/dist/hooks/{useFeatureEditor.d.ts → useFeatureEditor/useFeatureEditor.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
# Change Log
|
|
2
|
+
## [v0.1.86] - 2023-09-13
|
|
3
|
+
|
|
4
|
+
### Fixed
|
|
5
|
+
- 6882b80: fix: LayerList deleteIcon layout
|
|
6
|
+
- e5ab361: demo bugfixes
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- 7eb6dda: update xmldom ^0.6.0 to @xmldom/xmldom ^0.8.10 (#130) …
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- 1a221e3: add compNorth, compSouth, compStroke compass styling options to theme
|
|
13
|
+
- 75de07d: add useAddImage hook + story
|
|
14
|
+
|
|
15
|
+
## [v0.1.85] - 2023-07-14
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- b0be9be: MlLayerSwipe resize window bug
|
|
19
|
+
- b0be9be: MlSketchTools hovered Feature and mobile edition bugs
|
|
20
|
+
- b0be9be: MlNavToools setpitch bug
|
|
21
|
+
- b0be9be: Optimized stories
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- b0be9be: mapbox-gl-draw from 1.4.0 to 1.4.2
|
|
25
|
+
- 5dd85be: code styling in LayerList, Compass and ColorPicker
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- b0be9be: added mlFollowgps accurancy fitBounds function
|
|
29
|
+
|
|
2
30
|
## [v0.1.84] - 2023-06-29
|
|
3
31
|
|
|
4
32
|
### 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
|
|
5
|
-
export const DrawPolygon: any;
|
|
6
|
-
export const DrawPoint: any;
|
|
7
|
-
export const
|
|
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;
|
|
@@ -52,7 +52,7 @@ export type MlGeoJsonLayerProps = {
|
|
|
52
52
|
* RasterLayerSpecification
|
|
53
53
|
|
|
54
54
|
*/
|
|
55
|
-
layout?:
|
|
55
|
+
layout?: LayerSpecification['layout'];
|
|
56
56
|
/**
|
|
57
57
|
* Javascript object that is spread into the addLayer commands first parameter.
|
|
58
58
|
*/
|
|
@@ -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,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
|
|
4
|
-
export const ShowCenterLocationButton: any;
|
|
5
|
-
export const
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface useAddImageProps {
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
imageId: string;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
imagePath: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
declare const useAddImage: {
|
|
15
|
+
(props: useAddImageProps): void;
|
|
16
|
+
defaultProps: {
|
|
17
|
+
mapId: undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default useAddImage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const storyoptions: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: {
|
|
5
|
+
(props: import("./useAddImage").useAddImageProps): void;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
mapId: undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
argTypes: {};
|
|
11
|
+
decorators: ((Story: any, context: any) => JSX.Element)[];
|
|
12
|
+
};
|
|
13
|
+
export default storyoptions;
|
|
14
|
+
export declare const ExampleConfig: any;
|
|
@@ -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";
|