@planet/maps 11.0.0-dev.1740421848732 → 11.0.0-dev.1740442925922
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/Map.js +16 -16
- package/Overlay.js +8 -0
- package/View.js +8 -0
- package/control/Attribution.js +8 -0
- package/control/Control.js +8 -0
- package/control/FullScreen.js +8 -0
- package/control/MousePosition.js +8 -0
- package/control/OverviewMap.js +8 -0
- package/control/Rotate.js +8 -0
- package/control/ScaleLine.js +8 -0
- package/control/Zoom.js +8 -0
- package/control/ZoomSlider.js +8 -0
- package/control/ZoomToExtent.js +8 -0
- package/interaction/DblClickDragZoom.js +8 -0
- package/interaction/DoubleClickZoom.js +8 -0
- package/interaction/DragAndDrop.js +8 -0
- package/interaction/DragBox.js +8 -0
- package/interaction/DragPan.js +8 -0
- package/interaction/DragRotate.js +8 -0
- package/interaction/DragRotateAndZoom.js +8 -0
- package/interaction/DragZoom.js +8 -0
- package/interaction/Draw.js +8 -0
- package/interaction/Extent.js +8 -0
- package/interaction/Interaction.js +8 -0
- package/interaction/KeyboardPan.js +8 -0
- package/interaction/KeyboardZoom.js +8 -0
- package/interaction/Link.js +8 -0
- package/interaction/Modify.js +8 -0
- package/interaction/MouseWheelZoom.js +8 -0
- package/interaction/PinchRotate.js +8 -0
- package/interaction/PinchZoom.js +8 -0
- package/interaction/Pointer.js +8 -0
- package/interaction/Select.js +8 -0
- package/interaction/Snap.js +8 -0
- package/interaction/Translate.js +8 -0
- package/internal/config.js +1 -0
- package/internal/render.js +106 -40
- package/internal/update.js +37 -4
- package/layer/Base.js +9 -5
- package/layer/BaseImage.js +9 -5
- package/layer/BaseTile.js +9 -5
- package/layer/BaseVector.js +9 -5
- package/layer/Flow.js +9 -5
- package/layer/Graticule.js +9 -5
- package/layer/Group.js +9 -5
- package/layer/Heatmap.js +9 -5
- package/layer/Image.js +9 -5
- package/layer/Layer.js +9 -5
- package/layer/MapboxVector.js +8 -5
- package/layer/Tile.js +9 -5
- package/layer/Vector.js +9 -5
- package/layer/VectorImage.js +9 -5
- package/layer/VectorTile.js +9 -5
- package/layer/WebGLPoints.js +9 -5
- package/layer/WebGLTile.js +9 -5
- package/layer/WebGLVector.js +9 -5
- package/layer/WebGLVectorTile.js +9 -5
- package/package.json +24 -15
- package/source/BingMaps.js +8 -0
- package/source/CartoDB.js +8 -0
- package/source/Cluster.js +8 -0
- package/source/DataTile.js +8 -0
- package/source/GeoTIFF.js +8 -0
- package/source/Google.js +8 -0
- package/source/IIIF.js +8 -0
- package/source/Image.js +8 -0
- package/source/ImageArcGISRest.js +8 -0
- package/source/ImageCanvas.js +8 -0
- package/source/ImageMapGuide.js +8 -0
- package/source/ImageStatic.js +8 -0
- package/source/ImageTile.js +8 -0
- package/source/ImageWMS.js +8 -0
- package/source/OGCMapTile.js +8 -0
- package/source/OGCVectorTile.js +8 -0
- package/source/OSM.js +8 -0
- package/source/Raster.js +8 -0
- package/source/SentinelHub.js +8 -0
- package/source/Source.js +8 -0
- package/source/StadiaMaps.js +8 -0
- package/source/Tile.js +8 -0
- package/source/TileArcGISRest.js +8 -0
- package/source/TileDebug.js +8 -0
- package/source/TileImage.js +8 -0
- package/source/TileJSON.js +8 -0
- package/source/TileWMS.js +8 -0
- package/source/UTFGrid.js +8 -0
- package/source/UrlTile.js +8 -0
- package/source/Vector.js +8 -0
- package/source/VectorTile.js +8 -0
- package/source/WMTS.js +8 -0
- package/source/XYZ.js +8 -0
- package/source/Zoomify.js +8 -0
- package/interaction/Property.js +0 -22
package/layer/VectorImage.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLVectorImage from 'ol/layer/VectorImage.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} VectorImageProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLVectorImage>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {VectorImageProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function VectorImage({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLVectorImage, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
VectorImage.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/layer/VectorTile.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLVectorTile from 'ol/layer/VectorTile.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} VectorTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLVectorTile>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {VectorTileProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function VectorTile({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLVectorTile, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
VectorTile.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/layer/WebGLPoints.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLPoints from 'ol/layer/WebGLPoints.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} WebGLPointsProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLWebGLPoints>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {WebGLPointsProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function WebGLPoints({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLWebGLPoints, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
WebGLPoints.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/layer/WebGLTile.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLTile from 'ol/layer/WebGLTile.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} WebGLTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLWebGLTile>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {WebGLTileProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function WebGLTile({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLWebGLTile, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
WebGLTile.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/layer/WebGLVector.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLVector from 'ol/layer/WebGLVector.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} WebGLVectorProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLWebGLVector>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {WebGLVectorProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function WebGLVector({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLWebGLVector, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
WebGLVector.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/layer/WebGLVectorTile.js
CHANGED
|
@@ -15,13 +15,17 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLVectorTile from 'ol/layer/WebGLVectorTile.js';
|
|
18
|
-
import propTypes from 'prop-types';
|
|
19
18
|
import {createElement} from 'react';
|
|
20
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} WebGLVectorTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLWebGLVectorTile>[0]} [options] The layer options.
|
|
23
|
+
* @property {React.ReactNode} children The layer source.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param {WebGLVectorTileProps | Object<string, any>} props The layer props.
|
|
28
|
+
*/
|
|
21
29
|
export default function WebGLVectorTile({children, ...props}) {
|
|
22
30
|
return createElement('layer', {cls: OLWebGLVectorTile, ...props}, children);
|
|
23
31
|
}
|
|
24
|
-
|
|
25
|
-
WebGLVectorTile.propTypes = {
|
|
26
|
-
children: propTypes.node,
|
|
27
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planet/maps",
|
|
3
|
-
"version": "11.0.0-dev.
|
|
3
|
+
"version": "11.0.0-dev.1740442925922",
|
|
4
4
|
"description": "Declarative mapping components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -10,20 +10,22 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint .",
|
|
12
12
|
"pretest": "npm run lint",
|
|
13
|
-
"test": "npm
|
|
13
|
+
"test": "npm-run-all test:*",
|
|
14
14
|
"test:lib": "vitest run --root ./tests/lib",
|
|
15
15
|
"test:rendering": "playwright test --config=tests/rendering/playwright.config.js",
|
|
16
|
-
"test:
|
|
16
|
+
"test:unit": "vitest run --root ./tests/unit",
|
|
17
|
+
"test:types": "npx tsc --noEmit",
|
|
17
18
|
"start": "astro dev --root ./site",
|
|
18
|
-
"start:rendering": "vite serve --config=tests/rendering/vite.config.js",
|
|
19
|
-
"build": "astro build --root ./site",
|
|
20
19
|
"generate": "node tools/generate.js && npm run lint -- --fix",
|
|
21
|
-
"
|
|
20
|
+
"start:rendering": "vite serve --config=tests/rendering/vite.config.js",
|
|
21
|
+
"build": "npm-run-all build:*",
|
|
22
|
+
"build:site": "astro build --root ./site",
|
|
23
|
+
"build:types": "npm run clean:types && npx tsc -declaration --declarationMap --emitDeclarationOnly --noEmit false",
|
|
24
|
+
"clean": "npm-run-all clean:*",
|
|
25
|
+
"clean:types": "find . \\( -name '*.d.ts' -o -name '*.d.ts.map' \\) ! -path './node_modules/*' ! -path './site/src/env.d.ts' -delete",
|
|
26
|
+
"clean:generated": "node tools/clean.js"
|
|
22
27
|
},
|
|
23
28
|
"license": "Apache-2.0",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"react-reconciler": "^0.31.0"
|
|
26
|
-
},
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"ol": "*",
|
|
29
31
|
"ol-mapbox-style": "*",
|
|
@@ -35,9 +37,10 @@
|
|
|
35
37
|
"@octokit/rest": "^21.0.0",
|
|
36
38
|
"@playwright/test": "^1.25.2",
|
|
37
39
|
"@testing-library/react": "^16.0.0",
|
|
38
|
-
"@types/react": "^19.0.
|
|
39
|
-
"@types/react-dom": "^19.0.
|
|
40
|
-
"@
|
|
40
|
+
"@types/react": "^19.0.10",
|
|
41
|
+
"@types/react-dom": "^19.0.4",
|
|
42
|
+
"@types/react-reconciler": "^0.28.9",
|
|
43
|
+
"@vitest/browser": "^3.0.7",
|
|
41
44
|
"astro": "^5.1.1",
|
|
42
45
|
"es-main": "^1.2.0",
|
|
43
46
|
"eslint": "^9.20.1",
|
|
@@ -46,10 +49,12 @@
|
|
|
46
49
|
"eslint-plugin-mdx": "^3.0.0",
|
|
47
50
|
"eslint-plugin-react": "^7.32.1",
|
|
48
51
|
"fs-extra": "^11.1.0",
|
|
52
|
+
"happy-dom": "^17.1.4",
|
|
49
53
|
"import-meta-resolve": "^4.0.0",
|
|
50
54
|
"mustache": "^4.2.0",
|
|
51
|
-
"
|
|
52
|
-
"ol
|
|
55
|
+
"npm-run-all": "^4.1.5",
|
|
56
|
+
"ol": "^10.4.0",
|
|
57
|
+
"ol-mapbox-style": "^12.4.1",
|
|
53
58
|
"prop-types": "^15.8.1",
|
|
54
59
|
"react": "^19.0.0",
|
|
55
60
|
"react-dom": "^19.0.0",
|
|
@@ -58,9 +63,13 @@
|
|
|
58
63
|
"semapro": "^1.1.0",
|
|
59
64
|
"semver": "^7.3.7",
|
|
60
65
|
"shikiji": "^0.10.2",
|
|
66
|
+
"typescript": "^5.7.3",
|
|
61
67
|
"unified": "^11.0.2",
|
|
62
68
|
"vite": "^6.0.1",
|
|
63
|
-
"vitest": "^3.0.
|
|
69
|
+
"vitest": "^3.0.7",
|
|
64
70
|
"yargs-parser": "^21.1.1"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"react-reconciler": "^0.31.0"
|
|
65
74
|
}
|
|
66
75
|
}
|
package/source/BingMaps.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLBingMaps from 'ol/source/BingMaps.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} BingMapsProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLBingMaps>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {BingMapsProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function BingMaps(props) {
|
|
21
29
|
return createElement('source', {cls: OLBingMaps, ...props});
|
|
22
30
|
}
|
package/source/CartoDB.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLCartoDB from 'ol/source/CartoDB.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} CartoDBProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLCartoDB>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {CartoDBProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function CartoDB(props) {
|
|
21
29
|
return createElement('source', {cls: OLCartoDB, ...props});
|
|
22
30
|
}
|
package/source/Cluster.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLCluster from 'ol/source/Cluster.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ClusterProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLCluster>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ClusterProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Cluster(props) {
|
|
21
29
|
return createElement('source', {cls: OLCluster, ...props});
|
|
22
30
|
}
|
package/source/DataTile.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLDataTile from 'ol/source/DataTile.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} DataTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLDataTile>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {DataTileProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function DataTile(props) {
|
|
21
29
|
return createElement('source', {cls: OLDataTile, ...props});
|
|
22
30
|
}
|
package/source/GeoTIFF.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLGeoTIFF from 'ol/source/GeoTIFF.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} GeoTIFFProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLGeoTIFF>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {GeoTIFFProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function GeoTIFF(props) {
|
|
21
29
|
return createElement('source', {cls: OLGeoTIFF, ...props});
|
|
22
30
|
}
|
package/source/Google.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLGoogle from 'ol/source/Google.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} GoogleProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLGoogle>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {GoogleProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Google(props) {
|
|
21
29
|
return createElement('source', {cls: OLGoogle, ...props});
|
|
22
30
|
}
|
package/source/IIIF.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLIIIF from 'ol/source/IIIF.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} IIIFProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLIIIF>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {IIIFProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function IIIF(props) {
|
|
21
29
|
return createElement('source', {cls: OLIIIF, ...props});
|
|
22
30
|
}
|
package/source/Image.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImage from 'ol/source/Image.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImage>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Image(props) {
|
|
21
29
|
return createElement('source', {cls: OLImage, ...props});
|
|
22
30
|
}
|
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageArcGISRest from 'ol/source/ImageArcGISRest.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageArcGISRestProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageArcGISRest>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageArcGISRestProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageArcGISRest(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageArcGISRest, ...props});
|
|
22
30
|
}
|
package/source/ImageCanvas.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageCanvas from 'ol/source/ImageCanvas.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageCanvasProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageCanvas>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageCanvasProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageCanvas(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageCanvas, ...props});
|
|
22
30
|
}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageMapGuide from 'ol/source/ImageMapGuide.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageMapGuideProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageMapGuide>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageMapGuideProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageMapGuide(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageMapGuide, ...props});
|
|
22
30
|
}
|
package/source/ImageStatic.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageStatic from 'ol/source/ImageStatic.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageStaticProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageStatic>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageStaticProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageStatic(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageStatic, ...props});
|
|
22
30
|
}
|
package/source/ImageTile.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageTile from 'ol/source/ImageTile.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageTile>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageTileProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageTile(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageTile, ...props});
|
|
22
30
|
}
|
package/source/ImageWMS.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLImageWMS from 'ol/source/ImageWMS.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} ImageWMSProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLImageWMS>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {ImageWMSProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function ImageWMS(props) {
|
|
21
29
|
return createElement('source', {cls: OLImageWMS, ...props});
|
|
22
30
|
}
|
package/source/OGCMapTile.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLOGCMapTile from 'ol/source/OGCMapTile.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} OGCMapTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLOGCMapTile>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {OGCMapTileProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function OGCMapTile(props) {
|
|
21
29
|
return createElement('source', {cls: OLOGCMapTile, ...props});
|
|
22
30
|
}
|
package/source/OGCVectorTile.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLOGCVectorTile from 'ol/source/OGCVectorTile.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} OGCVectorTileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLOGCVectorTile>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {OGCVectorTileProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function OGCVectorTile(props) {
|
|
21
29
|
return createElement('source', {cls: OLOGCVectorTile, ...props});
|
|
22
30
|
}
|
package/source/OSM.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLOSM from 'ol/source/OSM.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} OSMProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLOSM>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {OSMProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function OSM(props) {
|
|
21
29
|
return createElement('source', {cls: OLOSM, ...props});
|
|
22
30
|
}
|
package/source/Raster.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLRaster from 'ol/source/Raster.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} RasterProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLRaster>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {RasterProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Raster(props) {
|
|
21
29
|
return createElement('source', {cls: OLRaster, ...props});
|
|
22
30
|
}
|
package/source/SentinelHub.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLSentinelHub from 'ol/source/SentinelHub.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} SentinelHubProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLSentinelHub>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {SentinelHubProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function SentinelHub(props) {
|
|
21
29
|
return createElement('source', {cls: OLSentinelHub, ...props});
|
|
22
30
|
}
|
package/source/Source.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLSource from 'ol/source/Source.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} SourceProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLSource>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {SourceProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Source(props) {
|
|
21
29
|
return createElement('source', {cls: OLSource, ...props});
|
|
22
30
|
}
|
package/source/StadiaMaps.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLStadiaMaps from 'ol/source/StadiaMaps.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} StadiaMapsProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLStadiaMaps>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {StadiaMapsProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function StadiaMaps(props) {
|
|
21
29
|
return createElement('source', {cls: OLStadiaMaps, ...props});
|
|
22
30
|
}
|
package/source/Tile.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTile from 'ol/source/Tile.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTile>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function Tile(props) {
|
|
21
29
|
return createElement('source', {cls: OLTile, ...props});
|
|
22
30
|
}
|
package/source/TileArcGISRest.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTileArcGISRest from 'ol/source/TileArcGISRest.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileArcGISRestProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTileArcGISRest>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileArcGISRestProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function TileArcGISRest(props) {
|
|
21
29
|
return createElement('source', {cls: OLTileArcGISRest, ...props});
|
|
22
30
|
}
|
package/source/TileDebug.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTileDebug from 'ol/source/TileDebug.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileDebugProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTileDebug>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileDebugProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function TileDebug(props) {
|
|
21
29
|
return createElement('source', {cls: OLTileDebug, ...props});
|
|
22
30
|
}
|
package/source/TileImage.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTileImage from 'ol/source/TileImage.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileImageProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTileImage>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileImageProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function TileImage(props) {
|
|
21
29
|
return createElement('source', {cls: OLTileImage, ...props});
|
|
22
30
|
}
|
package/source/TileJSON.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTileJSON from 'ol/source/TileJSON.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileJSONProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTileJSON>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileJSONProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function TileJSON(props) {
|
|
21
29
|
return createElement('source', {cls: OLTileJSON, ...props});
|
|
22
30
|
}
|
package/source/TileWMS.js
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
import OLTileWMS from 'ol/source/TileWMS.js';
|
|
18
18
|
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} TileWMSProps
|
|
22
|
+
* @property {ConstructorParameters<typeof OLTileWMS>[0]} [options] The source options.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {TileWMSProps | Object<string, any>} props The source props.
|
|
27
|
+
*/
|
|
20
28
|
export default function TileWMS(props) {
|
|
21
29
|
return createElement('source', {cls: OLTileWMS, ...props});
|
|
22
30
|
}
|