@map-colonies/react-components 4.6.0 → 4.7.1
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/dist/@map-colonies/react-components.es.js +1411 -1352
- package/dist/@map-colonies/react-components.umd.js +8 -8
- package/dist/cesium-map/map.d.ts +1 -0
- package/dist/cesium-map/zoom/zoomButtons.css +35 -0
- package/dist/cesium-map/zoom/zoomButtons.d.ts +2 -0
- package/dist/ol-map/feature.d.ts +2 -0
- package/dist/ol-map/index.d.ts +1 -0
- package/dist/ol-map/legend/index.d.ts +1 -0
- package/dist/ol-map/legend/legend.d.ts +12 -0
- package/package.json +4 -2
package/dist/cesium-map/map.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export interface CesiumMapProps extends ViewerProps {
|
|
|
67
67
|
};
|
|
68
68
|
legends?: ILegends;
|
|
69
69
|
layerManagerFootprintMetaFieldPath?: string;
|
|
70
|
+
displayZoomButtons?: boolean;
|
|
70
71
|
}
|
|
71
72
|
export declare const useCesiumMap: () => CesiumViewer;
|
|
72
73
|
export declare const CesiumMap: React.FC<CesiumMapProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.zoom-buttons-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 2px;
|
|
5
|
+
--full-screen-button-offset: 8px;
|
|
6
|
+
--full-screen-button-size: 29px;
|
|
7
|
+
--full-screen-button-bottom: 8px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
bottom: calc(var(--full-screen-button-offset) + var(--full-screen-button-size) + var(--full-screen-button-bottom));
|
|
10
|
+
right: var(--full-screen-button-offset);
|
|
11
|
+
left: unset;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body[dir='rtl'] .zoom-buttons-container {
|
|
15
|
+
left: var(--full-screen-button-offset);
|
|
16
|
+
right: unset;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.zoom-button {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
width: 29px;
|
|
22
|
+
height: 29px;
|
|
23
|
+
background: #303336;
|
|
24
|
+
border: 1px solid #444;
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
padding: 4px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.zoom-button:hover {
|
|
33
|
+
background: #48b;
|
|
34
|
+
border-color: #aef;
|
|
35
|
+
}
|
package/dist/ol-map/feature.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Geometry } from 'geojson';
|
|
3
3
|
import { FitOptions } from 'ol/View';
|
|
4
|
+
import { Style } from 'ol/style';
|
|
4
5
|
export interface FeatureProps {
|
|
5
6
|
geometry: Geometry;
|
|
6
7
|
fitOptions?: FitOptions;
|
|
7
8
|
fit?: boolean;
|
|
9
|
+
featureStyle?: Style;
|
|
8
10
|
}
|
|
9
11
|
export declare const GeoJSONFeature: React.FC<FeatureProps>;
|
package/dist/ol-map/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './legend';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Style } from 'ol/style';
|
|
3
|
+
export interface LegendItem {
|
|
4
|
+
title: string;
|
|
5
|
+
style: Style;
|
|
6
|
+
}
|
|
7
|
+
export interface LegendParams {
|
|
8
|
+
legendItems: LegendItem[];
|
|
9
|
+
title?: string;
|
|
10
|
+
isCollapsed?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Legend: React.FC<LegendParams>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@map-colonies/react-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.1",
|
|
4
4
|
"main": "./dist/@map-colonies/react-components.umd.js",
|
|
5
5
|
"module": "./dist/@map-colonies/react-components.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"get-input-selection": "^1.1.4",
|
|
45
45
|
"lodash": "^4.17.20",
|
|
46
46
|
"ol": "^6.4.3",
|
|
47
|
+
"ol-ext": "^4.0.18",
|
|
47
48
|
"react-datepicker": "^4.16.0",
|
|
48
49
|
"resium": "1.16.1",
|
|
49
50
|
"rimraf": "3.0.2",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"@types/geojson": "^7946.0.10",
|
|
61
62
|
"@types/lodash": "^4.14.165",
|
|
62
63
|
"@types/ol": "^6.3.1",
|
|
64
|
+
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext",
|
|
63
65
|
"@types/textarea-caret": "^3.0.1",
|
|
64
66
|
"enzyme": "^3.11.0",
|
|
65
67
|
"jest-enzyme": "^7.1.2",
|
|
@@ -70,5 +72,5 @@
|
|
|
70
72
|
"files": [
|
|
71
73
|
"dist"
|
|
72
74
|
],
|
|
73
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "c7308692966492aaa3911a3c288ba2d0ca9d9fd8"
|
|
74
76
|
}
|