@map-colonies/react-components 4.5.0 → 4.6.0
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 +1277 -1148
- package/dist/@map-colonies/react-components.umd.js +10 -10
- package/dist/cesium-map/settings/settings.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/ol-map/feature.d.ts +3 -0
- package/dist/ol-map/index.d.ts +6 -0
- package/dist/ol-map/interactions/index.d.ts +1 -0
- package/dist/ol-map/layers/index.d.ts +3 -0
- package/dist/ol-map/layers/vector-tile-layer.d.ts +10 -0
- package/dist/ol-map/source/index.d.ts +6 -0
- package/dist/ol-map/source/mvt.d.ts +11 -0
- package/dist/ol-map/source/wms.d.ts +17 -0
- package/dist/ol-map/source/wmts.d.ts +21 -0
- package/dist/ol-map/source/xyz.d.ts +12 -0
- package/dist/ol-map/style.d.ts +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/ol-map/feature.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Geometry } from 'geojson';
|
|
3
|
+
import { FitOptions } from 'ol/View';
|
|
3
4
|
export interface FeatureProps {
|
|
4
5
|
geometry: Geometry;
|
|
6
|
+
fitOptions?: FitOptions;
|
|
7
|
+
fit?: boolean;
|
|
5
8
|
}
|
|
6
9
|
export declare const GeoJSONFeature: React.FC<FeatureProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './draw';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import VectorTile from 'ol/layer/VectorTile';
|
|
3
|
+
import { Options } from 'ol/layer/Base';
|
|
4
|
+
import { MapStyle } from '../style';
|
|
5
|
+
export interface VectorTileLayerProps {
|
|
6
|
+
options?: Options;
|
|
7
|
+
style?: MapStyle;
|
|
8
|
+
}
|
|
9
|
+
export declare const useVectorTileLayer: () => VectorTile;
|
|
10
|
+
export declare const VectorTileLayer: React.FC<PropsWithChildren<VectorTileLayerProps>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import VectorTileSource, { Options } from 'ol/source/VectorTile';
|
|
3
|
+
export declare const useVectorTileSource: () => VectorTileSource;
|
|
4
|
+
export interface MVTSourceProps {
|
|
5
|
+
options: Options;
|
|
6
|
+
}
|
|
7
|
+
export interface MVTOptionParams {
|
|
8
|
+
url: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getMVTOptions: (optionParams: MVTOptionParams) => Options;
|
|
11
|
+
export declare const MVTSource: React.FC<PropsWithChildren<MVTSourceProps>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Options } from 'ol/source/TileWMS';
|
|
3
|
+
interface TileWMSProps {
|
|
4
|
+
options: Options;
|
|
5
|
+
}
|
|
6
|
+
export interface WMSOptionParams {
|
|
7
|
+
attributions?: string;
|
|
8
|
+
url: string;
|
|
9
|
+
params: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
serverType: 'carmentaserver' | 'geoserver' | 'mapserver' | 'qgis';
|
|
13
|
+
transition: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const getWMSOptions: (optionParams: WMSOptionParams) => Options;
|
|
16
|
+
export declare const TileWMS: React.FC<TileWMSProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Options } from 'ol/source/WMTS';
|
|
3
|
+
import WMTSRequestEncoding from 'ol/source/WMTSRequestEncoding';
|
|
4
|
+
interface TileWMTSProps {
|
|
5
|
+
options: Options;
|
|
6
|
+
}
|
|
7
|
+
export interface WMTSOptionParams {
|
|
8
|
+
attributions?: string;
|
|
9
|
+
url: string;
|
|
10
|
+
layer: string;
|
|
11
|
+
projection: string;
|
|
12
|
+
format: string;
|
|
13
|
+
style: string;
|
|
14
|
+
matrixSet: string;
|
|
15
|
+
wrapX?: boolean;
|
|
16
|
+
heightWidthRatio?: number;
|
|
17
|
+
requestEncoding?: WMTSRequestEncoding | string;
|
|
18
|
+
}
|
|
19
|
+
export declare const getWMTSOptions: (params: WMTSOptionParams) => Options;
|
|
20
|
+
export declare const TileWMTS: React.FC<TileWMTSProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Options } from 'ol/source/XYZ';
|
|
3
|
+
interface TileXYZProps {
|
|
4
|
+
options: Options;
|
|
5
|
+
}
|
|
6
|
+
export interface XYZOptionParams {
|
|
7
|
+
attributions?: string;
|
|
8
|
+
url: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getXYZOptions: (optionParams: XYZOptionParams) => Options;
|
|
11
|
+
export declare const TileXYZ: React.FC<TileXYZProps>;
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@map-colonies/react-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
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",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"files": [
|
|
71
71
|
"dist"
|
|
72
72
|
],
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "9b3f559f747eb9efa80fd71fcd282822a006b967"
|
|
74
74
|
}
|