@planet/maps 11.0.0-dev.1740075628963 → 11.0.0-dev.1740095071864
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 +1 -1
- package/Overlay.js +1 -1
- package/View.js +1 -1
- package/internal/render.js +6 -6
- package/internal/update.js +3 -3
- package/layer/MapboxVector.js +1 -1
- package/layer/WebGLVectorTile.js +27 -0
- package/package.json +3 -73
package/Map.js
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import OLMap from 'ol/Map.js';
|
|
17
17
|
import propTypes from 'prop-types';
|
|
18
|
-
import {MAP} from './internal/config.js';
|
|
19
18
|
import {createElement, useCallback, useEffect, useRef} from 'react';
|
|
19
|
+
import {MAP} from './internal/config.js';
|
|
20
20
|
import {render, updateInstanceFromProps} from './internal/render.js';
|
|
21
21
|
|
|
22
22
|
const defaultDivStyle = {
|
package/Overlay.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import OLOverlay from 'ol/Overlay.js';
|
|
17
|
-
import {OVERLAY} from './internal/config.js';
|
|
18
17
|
import {createElement} from 'react';
|
|
18
|
+
import {OVERLAY} from './internal/config.js';
|
|
19
19
|
|
|
20
20
|
export default function Overlay(props) {
|
|
21
21
|
return createElement(OVERLAY, {cls: OLOverlay, ...props});
|
package/View.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import OLView from 'ol/View.js';
|
|
17
|
-
import {VIEW} from './internal/config.js';
|
|
18
17
|
import {createElement} from 'react';
|
|
18
|
+
import {VIEW} from './internal/config.js';
|
|
19
19
|
|
|
20
20
|
export default function View(props) {
|
|
21
21
|
return createElement(VIEW, {cls: OLView, ...props});
|
package/internal/render.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Overlay from 'ol/Overlay.js';
|
|
2
|
+
import View from 'ol/View.js';
|
|
2
3
|
import Control from 'ol/control/Control.js';
|
|
3
|
-
import GroupLayer from 'ol/layer/Group.js';
|
|
4
4
|
import Interaction from 'ol/interaction/Interaction.js';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import BaseLayer from 'ol/layer/Base.js';
|
|
6
|
+
import GroupLayer from 'ol/layer/Group.js';
|
|
7
7
|
import Source from 'ol/source/Source.js';
|
|
8
|
-
import
|
|
9
|
-
import {CONTROL, INTERACTION, LAYER, OVERLAY, SOURCE, VIEW} from './config.js';
|
|
8
|
+
import ReactReconciler from 'react-reconciler';
|
|
10
9
|
import {
|
|
11
10
|
ConcurrentRoot,
|
|
12
11
|
DefaultEventPriority,
|
|
13
12
|
NoEventPriority,
|
|
14
13
|
} from 'react-reconciler/constants.js';
|
|
14
|
+
import {CONTROL, INTERACTION, LAYER, OVERLAY, SOURCE, VIEW} from './config.js';
|
|
15
15
|
import {
|
|
16
16
|
prepareControlUpdate,
|
|
17
17
|
prepareInteractionUpdate,
|
package/internal/update.js
CHANGED
|
@@ -91,9 +91,9 @@ function prepareGenericUpdate(instance, type, oldProps, newProps) {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export {
|
|
94
|
-
prepareGenericUpdate as prepareOverlayUpdate,
|
|
95
|
-
prepareGenericUpdate as prepareLayerUpdate,
|
|
96
|
-
prepareGenericUpdate as prepareSourceUpdate,
|
|
97
94
|
prepareGenericUpdate as prepareControlUpdate,
|
|
98
95
|
prepareGenericUpdate as prepareInteractionUpdate,
|
|
96
|
+
prepareGenericUpdate as prepareLayerUpdate,
|
|
97
|
+
prepareGenericUpdate as prepareOverlayUpdate,
|
|
98
|
+
prepareGenericUpdate as prepareSourceUpdate,
|
|
99
99
|
};
|
package/layer/MapboxVector.js
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import propTypes from 'prop-types';
|
|
18
17
|
import {MapboxVectorLayer as OLMBVectorLayer} from 'ol-mapbox-style';
|
|
18
|
+
import propTypes from 'prop-types';
|
|
19
19
|
import {createElement} from 'react';
|
|
20
20
|
|
|
21
21
|
export default function MapboxVector({children, ...props}) {
|
|
@@ -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": "11.0.0-dev.
|
|
3
|
+
"version": "11.0.0-dev.1740095071864",
|
|
4
4
|
"description": "Declarative mapping components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@vitest/browser": "^3.0.3",
|
|
41
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",
|
|
@@ -62,75 +62,5 @@
|
|
|
62
62
|
"vite": "^6.0.1",
|
|
63
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
|
-
"astro/config",
|
|
83
|
-
"@astrojs/*",
|
|
84
|
-
"@octokit/rest"
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
"overrides": [
|
|
90
|
-
{
|
|
91
|
-
"files": [
|
|
92
|
-
"*.astro"
|
|
93
|
-
],
|
|
94
|
-
"extends": [
|
|
95
|
-
"plugin:astro/recommended"
|
|
96
|
-
],
|
|
97
|
-
"rules": {
|
|
98
|
-
"prettier/prettier": "off"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"files": [
|
|
103
|
-
"*.jsx",
|
|
104
|
-
"*.js"
|
|
105
|
-
],
|
|
106
|
-
"extends": [
|
|
107
|
-
"planet/react"
|
|
108
|
-
],
|
|
109
|
-
"rules": {
|
|
110
|
-
"import/named": "off",
|
|
111
|
-
"import/default": "off",
|
|
112
|
-
"import/no-unresolved": [
|
|
113
|
-
"error",
|
|
114
|
-
{
|
|
115
|
-
"ignore": [
|
|
116
|
-
"astro:content",
|
|
117
|
-
"astro/config",
|
|
118
|
-
"@astrojs/*",
|
|
119
|
-
"@octokit/rest"
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"files": [
|
|
127
|
-
"*.mdx"
|
|
128
|
-
],
|
|
129
|
-
"extends": [
|
|
130
|
-
"plugin:mdx/recommended",
|
|
131
|
-
"planet/react"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
65
|
}
|
|
136
66
|
}
|