@planet/maps 10.2.0 → 10.3.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/layer/Flow.js +29 -0
- package/layer/WebGLVector.js +29 -0
- package/package.json +9 -8
- package/source/ImageTile.js +24 -0
- package/source/SentinelHub.js +24 -0
package/layer/Flow.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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 OLFlow from 'ol/layer/Flow.js';
|
|
18
|
+
import propTypes from 'prop-types';
|
|
19
|
+
import {createElement, forwardRef} from 'react';
|
|
20
|
+
|
|
21
|
+
const Flow = forwardRef(({children, ...props}, ref) => {
|
|
22
|
+
return createElement('layer', {cls: OLFlow, ref, ...props}, children);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
Flow.propTypes = {
|
|
26
|
+
children: propTypes.node,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default Flow;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 OLWebGLVector from 'ol/layer/WebGLVector.js';
|
|
18
|
+
import propTypes from 'prop-types';
|
|
19
|
+
import {createElement, forwardRef} from 'react';
|
|
20
|
+
|
|
21
|
+
const WebGLVector = forwardRef(({children, ...props}, ref) => {
|
|
22
|
+
return createElement('layer', {cls: OLWebGLVector, ref, ...props}, children);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
WebGLVector.propTypes = {
|
|
26
|
+
children: propTypes.node,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default WebGLVector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planet/maps",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.0",
|
|
4
4
|
"description": "Declarative mapping components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@astrojs/mdx": "^3.0.0",
|
|
34
34
|
"@astrojs/react": "^3.0.2",
|
|
35
|
-
"@octokit/rest": "^
|
|
35
|
+
"@octokit/rest": "^21.0.0",
|
|
36
36
|
"@playwright/test": "^1.25.2",
|
|
37
37
|
"@testing-library/react": "^16.0.0",
|
|
38
38
|
"@types/react": "^18.0.27",
|
|
39
39
|
"@types/react-dom": "^18.0.10",
|
|
40
|
-
"@vitest/browser": "^
|
|
40
|
+
"@vitest/browser": "^2.0.3",
|
|
41
41
|
"astro": "^4.0.3",
|
|
42
42
|
"es-main": "^1.2.0",
|
|
43
43
|
"eslint": "^8.57.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"fs-extra": "^11.1.0",
|
|
49
49
|
"import-meta-resolve": "^4.0.0",
|
|
50
50
|
"mustache": "^4.2.0",
|
|
51
|
-
"ol": "^
|
|
52
|
-
"ol-mapbox-style": "^12.
|
|
51
|
+
"ol": "^10.3.0",
|
|
52
|
+
"ol-mapbox-style": "^12.3.5",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"semver": "^7.3.7",
|
|
60
60
|
"shikiji": "^0.10.2",
|
|
61
61
|
"unified": "^11.0.2",
|
|
62
|
-
"vite": "^
|
|
63
|
-
"vitest": "^
|
|
62
|
+
"vite": "^6.0.1",
|
|
63
|
+
"vitest": "^2.0.3",
|
|
64
64
|
"yargs-parser": "^21.1.1"
|
|
65
65
|
},
|
|
66
66
|
"eslintConfig": {
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
{
|
|
80
80
|
"ignore": [
|
|
81
81
|
"astro:content",
|
|
82
|
-
"@astrojs/*"
|
|
82
|
+
"@astrojs/*",
|
|
83
|
+
"@octokit/rest"
|
|
83
84
|
]
|
|
84
85
|
}
|
|
85
86
|
]
|
|
@@ -0,0 +1,24 @@
|
|
|
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 OLImageTile from 'ol/source/ImageTile.js';
|
|
18
|
+
import {createElement, forwardRef} from 'react';
|
|
19
|
+
|
|
20
|
+
const ImageTile = forwardRef((props, ref) => {
|
|
21
|
+
return createElement('source', {cls: OLImageTile, ref, ...props});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export default ImageTile;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 OLSentinelHub from 'ol/source/SentinelHub.js';
|
|
18
|
+
import {createElement, forwardRef} from 'react';
|
|
19
|
+
|
|
20
|
+
const SentinelHub = forwardRef((props, ref) => {
|
|
21
|
+
return createElement('source', {cls: OLSentinelHub, ref, ...props});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export default SentinelHub;
|