@mapcomponents/react-maplibre 0.1.81 → 0.1.83
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 +6 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.d.ts +22 -37
- package/dist/components/MlNavigationTools/MlNavigationTools.cy.d.ts +1 -0
- package/dist/components/MlNavigationTools/MlNavigationTools.d.ts +1 -5
- package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +169 -325
- package/dist/index.esm.js.map +1 -1
- package/dist/ui_components/MapcomponentsTheme.d.ts +16 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,48 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
3
2
|
interface MlNavigationCompassProps {
|
|
3
|
+
/**
|
|
4
|
+
* Id of the target MapLibre instance in mapHook
|
|
5
|
+
*/
|
|
4
6
|
mapId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The layerId of an existing layer this layer should be rendered visually beneath
|
|
9
|
+
* https://maplibre.org/maplibre-gl-js-docs/api/map/#map#addlayer - see "beforeId" property
|
|
10
|
+
*/
|
|
5
11
|
insertBeforeLayer?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Style object to adjust css definitions of the component.
|
|
14
|
+
*/
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
/**
|
|
17
|
+
* Style object to adjust css definitions of the background.
|
|
18
|
+
*/
|
|
19
|
+
backgroundStyle?: CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Style object to adjust css definitions of the compass needle.
|
|
22
|
+
*/
|
|
23
|
+
needleStyle?: CSSProperties;
|
|
11
24
|
}
|
|
12
25
|
/**
|
|
13
26
|
* Navigation component that displays a compass component which indicates the current oriantation of the map it is registered for and offers controls to turn the bearing 90° left/right or reset north to point up.
|
|
14
27
|
*
|
|
15
|
-
* All style props are applied using @
|
|
28
|
+
* All style props are applied using @mui/material/styled to allow more complex css selectors.
|
|
16
29
|
*
|
|
17
30
|
* @component
|
|
18
31
|
*/
|
|
19
|
-
declare const MlNavigationCompass:
|
|
20
|
-
(props: MlNavigationCompassProps): JSX.Element;
|
|
21
|
-
propTypes: {
|
|
22
|
-
/**
|
|
23
|
-
* Component id prefix
|
|
24
|
-
*/
|
|
25
|
-
idPrefix: PropTypes.Requireable<string>;
|
|
26
|
-
/**
|
|
27
|
-
* Style object to adjust css definitions of the component.
|
|
28
|
-
*/
|
|
29
|
-
style: PropTypes.Requireable<object>;
|
|
30
|
-
/**
|
|
31
|
-
* Style object to adjust css definitions of the background.
|
|
32
|
-
*/
|
|
33
|
-
backgroundStyle: PropTypes.Requireable<object>;
|
|
34
|
-
/**
|
|
35
|
-
* Style object to adjust css definitions of the compass needle.
|
|
36
|
-
*/
|
|
37
|
-
needleStyle: PropTypes.Requireable<object>;
|
|
38
|
-
/**
|
|
39
|
-
* Style object to adjust css definitions of the rotate right button.
|
|
40
|
-
*/
|
|
41
|
-
rotateRightStyle: PropTypes.Requireable<object>;
|
|
42
|
-
/**
|
|
43
|
-
* Style object to adjust css definitions of the rotate left button.
|
|
44
|
-
*/
|
|
45
|
-
rotateLeftStyle: PropTypes.Requireable<object>;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
32
|
+
declare const MlNavigationCompass: (props: MlNavigationCompassProps) => JSX.Element;
|
|
48
33
|
export default MlNavigationCompass;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SxProps } from
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
3
|
interface MlNavigationToolsProps {
|
|
4
4
|
/**
|
|
5
5
|
* Id of the target MapLibre instance in mapContext
|
|
@@ -50,10 +50,6 @@ declare const MlNavigationTools: {
|
|
|
50
50
|
showFollowGpsButton: boolean;
|
|
51
51
|
showCenterLocationButton: boolean;
|
|
52
52
|
showZoomButtons: boolean;
|
|
53
|
-
sx: {
|
|
54
|
-
right: string;
|
|
55
|
-
bottom: string;
|
|
56
|
-
};
|
|
57
53
|
};
|
|
58
54
|
};
|
|
59
55
|
export default MlNavigationTools;
|
|
@@ -6,6 +6,7 @@ export const AlterToolPosition: any;
|
|
|
6
6
|
export const NoZoomButtons: any;
|
|
7
7
|
export const NoFollowGpsButton: any;
|
|
8
8
|
export const CustomButton: any;
|
|
9
|
+
export const ExampleConfig: any;
|
|
9
10
|
declare namespace storyoptions {
|
|
10
11
|
export const title: string;
|
|
11
12
|
export { MlNavigationTools as component };
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,6 @@ export { default as useFilterData } from "./components/MlTemporalController/util
|
|
|
50
50
|
export { default as useLayerContext } from "./hooks/useLayerContext";
|
|
51
51
|
export { default as useFeatureEditor } from "./hooks/useFeatureEditor";
|
|
52
52
|
export { default as useAddProtocol } from "./hooks/useAddProtocol/useAddProtocol";
|
|
53
|
-
export { mbTilesProtocolHandler } from "./protocol_handlers/mbtiles";
|
|
54
53
|
export { MapComponentsProvider } from "./contexts/MapContext";
|
|
55
54
|
export { default as MapContext } from "./contexts/MapContext";
|
|
56
55
|
export { default as SimpleDataProvider } from "./contexts/SimpleDataProvider";
|