@planet/maps 10.3.0 → 11.0.0-dev.1740094978574
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 +43 -32
- package/Overlay.js +4 -6
- package/View.js +4 -6
- package/control/Attribution.js +4 -6
- package/control/Control.js +4 -6
- package/control/FullScreen.js +4 -6
- package/control/MousePosition.js +4 -6
- package/control/OverviewMap.js +4 -6
- package/control/Rotate.js +4 -6
- package/control/ScaleLine.js +4 -6
- package/control/Zoom.js +4 -6
- package/control/ZoomSlider.js +4 -6
- package/control/ZoomToExtent.js +4 -6
- package/interaction/DblClickDragZoom.js +4 -6
- package/interaction/DoubleClickZoom.js +4 -6
- package/interaction/DragAndDrop.js +4 -6
- package/interaction/DragBox.js +4 -6
- package/interaction/DragPan.js +4 -6
- package/interaction/DragRotate.js +4 -6
- package/interaction/DragRotateAndZoom.js +4 -10
- package/interaction/DragZoom.js +4 -6
- package/interaction/Draw.js +4 -6
- package/interaction/Extent.js +4 -6
- package/interaction/Interaction.js +4 -6
- package/interaction/KeyboardPan.js +4 -6
- package/interaction/KeyboardZoom.js +4 -6
- package/interaction/Link.js +4 -6
- package/interaction/Modify.js +4 -6
- package/interaction/MouseWheelZoom.js +4 -6
- package/interaction/PinchRotate.js +4 -6
- package/interaction/PinchZoom.js +4 -6
- package/interaction/Pointer.js +4 -6
- package/interaction/Property.js +4 -6
- package/interaction/Select.js +4 -6
- package/interaction/Snap.js +4 -6
- package/interaction/Translate.js +4 -6
- package/internal/config.js +1 -0
- package/internal/render.js +109 -26
- package/internal/update.js +4 -3
- package/layer/Base.js +4 -6
- package/layer/BaseImage.js +4 -6
- package/layer/BaseTile.js +4 -6
- package/layer/BaseVector.js +4 -6
- package/layer/Flow.js +4 -6
- package/layer/Graticule.js +4 -6
- package/layer/Group.js +4 -6
- package/layer/Heatmap.js +4 -6
- package/layer/Image.js +4 -6
- package/layer/Layer.js +4 -6
- package/layer/MapboxVector.js +5 -11
- package/layer/Tile.js +4 -6
- package/layer/Vector.js +4 -6
- package/layer/VectorImage.js +4 -6
- package/layer/VectorTile.js +4 -6
- package/layer/WebGLPoints.js +4 -6
- package/layer/WebGLTile.js +4 -6
- package/layer/WebGLVector.js +4 -6
- package/layer/WebGLVectorTile.js +27 -0
- package/package.json +14 -70
- package/source/BingMaps.js +4 -6
- package/source/CartoDB.js +4 -6
- package/source/Cluster.js +4 -6
- package/source/DataTile.js +4 -6
- package/source/GeoTIFF.js +4 -6
- package/source/Google.js +4 -6
- package/source/IIIF.js +4 -6
- package/source/Image.js +4 -6
- package/source/ImageArcGISRest.js +4 -6
- package/source/ImageCanvas.js +4 -6
- package/source/ImageMapGuide.js +4 -6
- package/source/ImageStatic.js +4 -6
- package/source/ImageTile.js +4 -6
- package/source/ImageWMS.js +4 -6
- package/source/OGCMapTile.js +4 -6
- package/source/OGCVectorTile.js +4 -6
- package/source/OSM.js +4 -6
- package/source/Raster.js +4 -6
- package/source/SentinelHub.js +4 -6
- package/source/Source.js +4 -6
- package/source/StadiaMaps.js +4 -6
- package/source/Tile.js +4 -6
- package/source/TileArcGISRest.js +4 -6
- package/source/TileDebug.js +4 -6
- package/source/TileImage.js +4 -6
- package/source/TileJSON.js +4 -6
- package/source/TileWMS.js +4 -6
- package/source/UTFGrid.js +4 -6
- package/source/UrlTile.js +4 -6
- package/source/Vector.js +4 -6
- package/source/VectorTile.js +4 -6
- package/source/WMTS.js +4 -6
- package/source/XYZ.js +4 -6
- package/source/Zoomify.js +4 -6
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file is generated by tools/generate.js. DO NOT EDIT.
|
|
2
|
+
/**
|
|
3
|
+
* Copyright Planet Labs PBC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import OLWebGLVectorTile from 'ol/layer/WebGLVectorTile.js';
|
|
18
|
+
import propTypes from 'prop-types';
|
|
19
|
+
import {createElement} from 'react';
|
|
20
|
+
|
|
21
|
+
export default function WebGLVectorTile({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLWebGLVectorTile, ...props}, children);
|
|
23
|
+
}
|
|
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": "
|
|
3
|
+
"version": "11.0.0-dev.1740094978574",
|
|
4
4
|
"description": "Declarative mapping components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -22,26 +22,26 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"react-reconciler": "^0.
|
|
25
|
+
"react-reconciler": "^0.31.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"ol": "*",
|
|
29
29
|
"ol-mapbox-style": "*",
|
|
30
|
-
"react": "
|
|
30
|
+
"react": ">=19"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@astrojs/mdx": "^
|
|
34
|
-
"@astrojs/react": "^
|
|
33
|
+
"@astrojs/mdx": "^4.0.3",
|
|
34
|
+
"@astrojs/react": "^4.0.0",
|
|
35
35
|
"@octokit/rest": "^21.0.0",
|
|
36
36
|
"@playwright/test": "^1.25.2",
|
|
37
37
|
"@testing-library/react": "^16.0.0",
|
|
38
|
-
"@types/react": "^
|
|
39
|
-
"@types/react-dom": "^
|
|
40
|
-
"@vitest/browser": "^
|
|
41
|
-
"astro": "^
|
|
38
|
+
"@types/react": "^19.0.2",
|
|
39
|
+
"@types/react-dom": "^19.0.2",
|
|
40
|
+
"@vitest/browser": "^3.0.3",
|
|
41
|
+
"astro": "^5.1.1",
|
|
42
42
|
"es-main": "^1.2.0",
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint-config-planet": "^
|
|
43
|
+
"eslint": "^9.20.1",
|
|
44
|
+
"eslint-config-planet": "^23.1.0",
|
|
45
45
|
"eslint-plugin-astro": "^1.2.0",
|
|
46
46
|
"eslint-plugin-mdx": "^3.0.0",
|
|
47
47
|
"eslint-plugin-react": "^7.32.1",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"ol": "^10.3.0",
|
|
52
52
|
"ol-mapbox-style": "^12.3.5",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
54
|
-
"react": "^
|
|
55
|
-
"react-dom": "^
|
|
54
|
+
"react": "^19.0.0",
|
|
55
|
+
"react-dom": "^19.0.0",
|
|
56
56
|
"remark-html": "^16.0.1",
|
|
57
57
|
"remark-parse": "^11.0.0",
|
|
58
58
|
"semapro": "^1.1.0",
|
|
@@ -60,63 +60,7 @@
|
|
|
60
60
|
"shikiji": "^0.10.2",
|
|
61
61
|
"unified": "^11.0.2",
|
|
62
62
|
"vite": "^6.0.1",
|
|
63
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^3.0.3",
|
|
64
64
|
"yargs-parser": "^21.1.1"
|
|
65
|
-
},
|
|
66
|
-
"eslintConfig": {
|
|
67
|
-
"extends": [
|
|
68
|
-
"planet"
|
|
69
|
-
],
|
|
70
|
-
"parserOptions": {
|
|
71
|
-
"ecmaVersion": "latest",
|
|
72
|
-
"sourceType": "module"
|
|
73
|
-
},
|
|
74
|
-
"rules": {
|
|
75
|
-
"import/named": "off",
|
|
76
|
-
"import/default": "off",
|
|
77
|
-
"import/no-unresolved": [
|
|
78
|
-
"error",
|
|
79
|
-
{
|
|
80
|
-
"ignore": [
|
|
81
|
-
"astro:content",
|
|
82
|
-
"@astrojs/*",
|
|
83
|
-
"@octokit/rest"
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"overrides": [
|
|
89
|
-
{
|
|
90
|
-
"files": [
|
|
91
|
-
"*.astro"
|
|
92
|
-
],
|
|
93
|
-
"extends": [
|
|
94
|
-
"plugin:astro/recommended"
|
|
95
|
-
],
|
|
96
|
-
"rules": {
|
|
97
|
-
"prettier/prettier": "off"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"files": [
|
|
102
|
-
"*.jsx"
|
|
103
|
-
],
|
|
104
|
-
"extends": [
|
|
105
|
-
"planet/react"
|
|
106
|
-
],
|
|
107
|
-
"rules": {
|
|
108
|
-
"import/named": "off"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"files": [
|
|
113
|
-
"*.mdx"
|
|
114
|
-
],
|
|
115
|
-
"extends": [
|
|
116
|
-
"plugin:mdx/recommended",
|
|
117
|
-
"planet/react"
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
]
|
|
121
65
|
}
|
|
122
66
|
}
|
package/source/BingMaps.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLBingMaps from 'ol/source/BingMaps.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLBingMaps,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default BingMaps;
|
|
20
|
+
export default function BingMaps(props) {
|
|
21
|
+
return createElement('source', {cls: OLBingMaps, ...props});
|
|
22
|
+
}
|
package/source/CartoDB.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLCartoDB from 'ol/source/CartoDB.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLCartoDB,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default CartoDB;
|
|
20
|
+
export default function CartoDB(props) {
|
|
21
|
+
return createElement('source', {cls: OLCartoDB, ...props});
|
|
22
|
+
}
|
package/source/Cluster.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLCluster from 'ol/source/Cluster.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLCluster,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Cluster;
|
|
20
|
+
export default function Cluster(props) {
|
|
21
|
+
return createElement('source', {cls: OLCluster, ...props});
|
|
22
|
+
}
|
package/source/DataTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLDataTile from 'ol/source/DataTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLDataTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default DataTile;
|
|
20
|
+
export default function DataTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLDataTile, ...props});
|
|
22
|
+
}
|
package/source/GeoTIFF.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLGeoTIFF from 'ol/source/GeoTIFF.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLGeoTIFF,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default GeoTIFF;
|
|
20
|
+
export default function GeoTIFF(props) {
|
|
21
|
+
return createElement('source', {cls: OLGeoTIFF, ...props});
|
|
22
|
+
}
|
package/source/Google.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLGoogle from 'ol/source/Google.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLGoogle,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Google;
|
|
20
|
+
export default function Google(props) {
|
|
21
|
+
return createElement('source', {cls: OLGoogle, ...props});
|
|
22
|
+
}
|
package/source/IIIF.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLIIIF from 'ol/source/IIIF.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLIIIF,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default IIIF;
|
|
20
|
+
export default function IIIF(props) {
|
|
21
|
+
return createElement('source', {cls: OLIIIF, ...props});
|
|
22
|
+
}
|
package/source/Image.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImage from 'ol/source/Image.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImage,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Image;
|
|
20
|
+
export default function Image(props) {
|
|
21
|
+
return createElement('source', {cls: OLImage, ...props});
|
|
22
|
+
}
|
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageArcGISRest from 'ol/source/ImageArcGISRest.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageArcGISRest,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageArcGISRest;
|
|
20
|
+
export default function ImageArcGISRest(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageArcGISRest, ...props});
|
|
22
|
+
}
|
package/source/ImageCanvas.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageCanvas from 'ol/source/ImageCanvas.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageCanvas,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageCanvas;
|
|
20
|
+
export default function ImageCanvas(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageCanvas, ...props});
|
|
22
|
+
}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageMapGuide from 'ol/source/ImageMapGuide.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageMapGuide,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageMapGuide;
|
|
20
|
+
export default function ImageMapGuide(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageMapGuide, ...props});
|
|
22
|
+
}
|
package/source/ImageStatic.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageStatic from 'ol/source/ImageStatic.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageStatic,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageStatic;
|
|
20
|
+
export default function ImageStatic(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageStatic, ...props});
|
|
22
|
+
}
|
package/source/ImageTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageTile from 'ol/source/ImageTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageTile;
|
|
20
|
+
export default function ImageTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageTile, ...props});
|
|
22
|
+
}
|
package/source/ImageWMS.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageWMS from 'ol/source/ImageWMS.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageWMS,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageWMS;
|
|
20
|
+
export default function ImageWMS(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageWMS, ...props});
|
|
22
|
+
}
|
package/source/OGCMapTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLOGCMapTile from 'ol/source/OGCMapTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLOGCMapTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default OGCMapTile;
|
|
20
|
+
export default function OGCMapTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLOGCMapTile, ...props});
|
|
22
|
+
}
|
package/source/OGCVectorTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLOGCVectorTile from 'ol/source/OGCVectorTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLOGCVectorTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default OGCVectorTile;
|
|
20
|
+
export default function OGCVectorTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLOGCVectorTile, ...props});
|
|
22
|
+
}
|
package/source/OSM.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLOSM from 'ol/source/OSM.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLOSM,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default OSM;
|
|
20
|
+
export default function OSM(props) {
|
|
21
|
+
return createElement('source', {cls: OLOSM, ...props});
|
|
22
|
+
}
|
package/source/Raster.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLRaster from 'ol/source/Raster.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLRaster,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Raster;
|
|
20
|
+
export default function Raster(props) {
|
|
21
|
+
return createElement('source', {cls: OLRaster, ...props});
|
|
22
|
+
}
|
package/source/SentinelHub.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLSentinelHub from 'ol/source/SentinelHub.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLSentinelHub,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default SentinelHub;
|
|
20
|
+
export default function SentinelHub(props) {
|
|
21
|
+
return createElement('source', {cls: OLSentinelHub, ...props});
|
|
22
|
+
}
|
package/source/Source.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLSource from 'ol/source/Source.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLSource,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Source;
|
|
20
|
+
export default function Source(props) {
|
|
21
|
+
return createElement('source', {cls: OLSource, ...props});
|
|
22
|
+
}
|
package/source/StadiaMaps.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLStadiaMaps from 'ol/source/StadiaMaps.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLStadiaMaps,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default StadiaMaps;
|
|
20
|
+
export default function StadiaMaps(props) {
|
|
21
|
+
return createElement('source', {cls: OLStadiaMaps, ...props});
|
|
22
|
+
}
|
package/source/Tile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTile from 'ol/source/Tile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Tile;
|
|
20
|
+
export default function Tile(props) {
|
|
21
|
+
return createElement('source', {cls: OLTile, ...props});
|
|
22
|
+
}
|
package/source/TileArcGISRest.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTileArcGISRest from 'ol/source/TileArcGISRest.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTileArcGISRest,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default TileArcGISRest;
|
|
20
|
+
export default function TileArcGISRest(props) {
|
|
21
|
+
return createElement('source', {cls: OLTileArcGISRest, ...props});
|
|
22
|
+
}
|
package/source/TileDebug.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTileDebug from 'ol/source/TileDebug.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTileDebug,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default TileDebug;
|
|
20
|
+
export default function TileDebug(props) {
|
|
21
|
+
return createElement('source', {cls: OLTileDebug, ...props});
|
|
22
|
+
}
|
package/source/TileImage.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTileImage from 'ol/source/TileImage.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTileImage,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default TileImage;
|
|
20
|
+
export default function TileImage(props) {
|
|
21
|
+
return createElement('source', {cls: OLTileImage, ...props});
|
|
22
|
+
}
|
package/source/TileJSON.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTileJSON from 'ol/source/TileJSON.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTileJSON,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default TileJSON;
|
|
20
|
+
export default function TileJSON(props) {
|
|
21
|
+
return createElement('source', {cls: OLTileJSON, ...props});
|
|
22
|
+
}
|
package/source/TileWMS.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTileWMS from 'ol/source/TileWMS.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLTileWMS,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default TileWMS;
|
|
20
|
+
export default function TileWMS(props) {
|
|
21
|
+
return createElement('source', {cls: OLTileWMS, ...props});
|
|
22
|
+
}
|
package/source/UTFGrid.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLUTFGrid from 'ol/source/UTFGrid.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLUTFGrid,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default UTFGrid;
|
|
20
|
+
export default function UTFGrid(props) {
|
|
21
|
+
return createElement('source', {cls: OLUTFGrid, ...props});
|
|
22
|
+
}
|
package/source/UrlTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLUrlTile from 'ol/source/UrlTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLUrlTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default UrlTile;
|
|
20
|
+
export default function UrlTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLUrlTile, ...props});
|
|
22
|
+
}
|
package/source/Vector.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLVector from 'ol/source/Vector.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLVector,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Vector;
|
|
20
|
+
export default function Vector(props) {
|
|
21
|
+
return createElement('source', {cls: OLVector, ...props});
|
|
22
|
+
}
|
package/source/VectorTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLVectorTile from 'ol/source/VectorTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLVectorTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default VectorTile;
|
|
20
|
+
export default function VectorTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLVectorTile, ...props});
|
|
22
|
+
}
|