@planet/maps 11.2.0 → 11.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.
@@ -5,9 +5,9 @@ export function updateInstanceFromProps(arg0: any, arg1: string, arg2: {
5
5
  }): any;
6
6
  /**
7
7
  * @param {React.ReactNode} element The element to render.
8
- * @param {any} container The container.
8
+ * @param {any} containerInfo The container.
9
9
  */
10
- export function render(element: React.ReactNode, container: any): void;
10
+ export function render(element: React.ReactNode, containerInfo: any): void;
11
11
  export type InstanceProps = {
12
12
  /**
13
13
  * A class.
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.js"],"names":[],"mappings":";;;;;AAidA;;;GAGG;AACH,gCAHW,KAAK,CAAC,SAAS,aACf,GAAG,QAsBb;;;;;SA7Va,KAAI,OAAO,EAAE,GAAG,KAAK,GAAG;;;;cACxB,GAAG"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.js"],"names":[],"mappings":";;;;;AAucA;;;GAGG;AACH,gCAHW,KAAK,CAAC,SAAS,iBACf,GAAG,QAkCb;;;;;SAzWa,KAAI,OAAO,EAAE,GAAG,KAAK,GAAG;;;;cACxB,GAAG"}
@@ -13,20 +13,10 @@ import ReactReconciler from 'react-reconciler';
13
13
  import {
14
14
  ConcurrentRoot,
15
15
  DefaultEventPriority,
16
- //@ts-ignore (TODO: remove after https://github.com/DefinitelyTyped/DefinitelyTyped/pull/72046 is released)
17
16
  NoEventPriority,
18
17
  } from 'react-reconciler/constants.js';
19
18
  import {CONTROL, INTERACTION, LAYER, OVERLAY, SOURCE, VIEW} from './config.js';
20
- import {
21
- arrayEquals,
22
- prepareControlUpdate,
23
- prepareInteractionUpdate,
24
- prepareLayerUpdate,
25
- prepareOverlayUpdate,
26
- prepareSourceUpdate,
27
- prepareViewUpdate,
28
- reservedProps,
29
- } from './update.js';
19
+ import {arrayEquals, reservedProps} from './update.js';
30
20
 
31
21
  const listenerRegex = /^on([A-Z].*)/;
32
22
  const listenerColonRegex = /^onChange-/;
@@ -217,32 +207,6 @@ function appendChild(parent, child) {
217
207
  throw new Error(`Cannot add ${child} to ${parent}`);
218
208
  }
219
209
 
220
- /**
221
- * @type {Object<string, import('./update.js').Updater>}
222
- */
223
- const updaters = {
224
- [VIEW]: prepareViewUpdate,
225
- [OVERLAY]: prepareOverlayUpdate,
226
- [CONTROL]: prepareControlUpdate,
227
- [INTERACTION]: prepareInteractionUpdate,
228
- [LAYER]: prepareLayerUpdate,
229
- [SOURCE]: prepareSourceUpdate,
230
- };
231
-
232
- /**
233
- * @param {any} instance The instance to update.
234
- * @param {string} type The string type.
235
- * @param {Object<string, any>} oldProps The old props.
236
- * @param {Object<string, any>} newProps The new props.
237
- */
238
- function prepareUpdate(instance, type, oldProps, newProps) {
239
- const updater = updaters[type];
240
- if (!updater) {
241
- throw new Error(`Unsupported element type: ${type}`);
242
- }
243
- return updater(instance, type, oldProps, newProps);
244
- }
245
-
246
210
  /**
247
211
  * @type {import('./update.js').Updater}
248
212
  */
@@ -365,13 +329,40 @@ let currentUpdatePriority = NoEventPriority;
365
329
 
366
330
  const reconciler = ReactReconciler({
367
331
  supportsMutation: true,
332
+ supportsPersistence: false,
333
+ preparePortalMount() {},
334
+ beforeActiveInstanceBlur() {},
335
+ afterActiveInstanceBlur() {},
336
+ prepareScopeUpdate() {},
337
+ getInstanceFromScope() {
338
+ throw new Error('getInstanceFromScope not implemented');
339
+ },
340
+ supportsHydration: false,
341
+ resetFormInstance() {},
342
+ trackSchedulerEvent() {},
343
+ resolveEventType() {
344
+ return null;
345
+ },
346
+ resolveEventTimeStamp() {
347
+ return -1.1;
348
+ },
349
+ NotPendingTransition: null,
350
+ HostTransitionContext: {
351
+ $$typeof: Symbol.for('react.context'),
352
+ Provider: /** @type {any} */ (null),
353
+ Consumer: /** @type {any} */ (null),
354
+ _currentValue: null,
355
+ _currentValue2: null,
356
+ _threadCount: 0,
357
+ },
358
+ scheduleTimeout: setTimeout,
359
+ cancelTimeout: clearTimeout,
368
360
  isPrimaryRenderer: false,
369
361
  createInstance,
370
362
  createTextInstance,
371
363
  appendChildToContainer,
372
364
  appendChild,
373
365
  appendInitialChild: appendChild,
374
- prepareUpdate,
375
366
  commitUpdate,
376
367
  clearContainer,
377
368
  removeChildFromContainer,
@@ -441,10 +432,6 @@ const reconciler = ReactReconciler({
441
432
  return noContext;
442
433
  },
443
434
 
444
- getCurrentEventPriority() {
445
- return DefaultEventPriority;
446
- },
447
-
448
435
  prepareForCommit() {
449
436
  return null;
450
437
  },
@@ -463,27 +450,42 @@ const reconciler = ReactReconciler({
463
450
  */
464
451
  const roots = new Map();
465
452
 
453
+ const logError =
454
+ typeof reportError === 'function' ? reportError : console.error; // eslint-disable-line no-console
455
+
466
456
  /**
467
457
  * @param {React.ReactNode} element The element to render.
468
- * @param {any} container The container.
458
+ * @param {any} containerInfo The container.
469
459
  */
470
- export function render(element, container) {
471
- let root = roots.get(container);
460
+ export function render(element, containerInfo) {
461
+ let root = roots.get(containerInfo);
472
462
  if (!root) {
473
- const logRecoverableError =
474
- typeof reportError === 'function' ? reportError : console.error; // eslint-disable-line no-console
463
+ // naming arguments as they are in rect-reconciler
464
+ const tag = ConcurrentRoot;
465
+ const hydrationCallbacks = null;
466
+ const isStrictMode = false;
467
+ const concurrentUpdatesByDefaultOverride = false;
468
+ const identifierPrefix = '';
469
+ const onUncaughtError = logError;
470
+ const onCaughtError = logError;
471
+ const onRecoverableError = logError;
472
+ const onDefaultTransitionIndicator = function () {};
473
+ const transitionCallbacks = null;
475
474
 
476
475
  root = reconciler.createContainer(
477
- container,
478
- ConcurrentRoot,
479
- null,
480
- false,
481
- null,
482
- '',
483
- logRecoverableError,
484
- null,
476
+ containerInfo,
477
+ tag,
478
+ hydrationCallbacks,
479
+ isStrictMode,
480
+ concurrentUpdatesByDefaultOverride,
481
+ identifierPrefix,
482
+ onUncaughtError,
483
+ onCaughtError,
484
+ onRecoverableError,
485
+ onDefaultTransitionIndicator,
486
+ transitionCallbacks,
485
487
  );
486
- roots.set(container, root);
488
+ roots.set(containerInfo, root);
487
489
  }
488
490
 
489
491
  reconciler.updateContainer(element, root, null, null);
@@ -7,19 +7,6 @@
7
7
  * @return {boolean} All elements in the array are the same;
8
8
  */
9
9
  export function arrayEquals(a1?: Array<any>, a2?: Array<any>): boolean;
10
- /**
11
- * @param {import("ol/View.js").default} view The view.
12
- * @param {string} type The string type.
13
- * @param {Object<string, any>} oldProps The old props.
14
- * @param {Object<string, any>} newProps The new props.
15
- */
16
- export function prepareViewUpdate(view: import("ol/View.js").default, type: string, oldProps: {
17
- [x: string]: any;
18
- }, newProps: {
19
- [x: string]: any;
20
- }): {
21
- [x: string]: any;
22
- } | null;
23
10
  /**
24
11
  * @type {Object<string, boolean>}
25
12
  */
@@ -31,10 +18,4 @@ export type Updater = (arg0: any, arg1: string, arg2: {
31
18
  }, arg3: {
32
19
  [x: string]: any;
33
20
  }) => any;
34
- declare function prepareGenericUpdate(arg0: any, arg1: string, arg2: {
35
- [x: string]: any;
36
- }, arg3: {
37
- [x: string]: any;
38
- }): any;
39
- export { prepareGenericUpdate as prepareControlUpdate, prepareGenericUpdate as prepareInteractionUpdate, prepareGenericUpdate as prepareLayerUpdate, prepareGenericUpdate as prepareOverlayUpdate, prepareGenericUpdate as prepareSourceUpdate };
40
21
  //# sourceMappingURL=update.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["update.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,iCAJW,KAAK,CAAC,GAAG,CAAC,OACV,KAAK,CAAC,GAAG,CAAC,GACT,OAAO,CAkBlB;AAYD;;;;;GAKG;AACH,wCALW,OAAO,YAAY,EAAE,OAAO,QAC5B,MAAM;;;;;;SA2DhB;AAvED;;GAEG;AACH;;EAKE;sBAlCW,CAAS,IAAG,EAAH,GAAG,EAAE,IAAM,EAAN,MAAM,EAAE,IAAmB,EAAnB;QAAO,MAAM,GAAE,GAAG;CAAC,EAAE,IAAmB,EAAnB;QAAO,MAAM,GAAE,GAAG;CAAC,KAAG,GAAG;AAApE,4CAAS,GAAG,QAAE,MAAM;;;;IAA6C,GAAG,CAAA"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["update.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,iCAJW,KAAK,CAAC,GAAG,CAAC,OACV,KAAK,CAAC,GAAG,CAAC,GACT,OAAO,CAkBlB;AAED;;GAEG;AACH;;EAKE;sBAlCW,CAAS,IAAG,EAAH,GAAG,EAAE,IAAM,EAAN,MAAM,EAAE,IAAmB,EAAnB;QAAO,MAAM,GAAE,GAAG;CAAC,EAAE,IAAmB,EAAnB;QAAO,MAAM,GAAE,GAAG;CAAC,KAAG,GAAG"}
@@ -34,99 +34,3 @@ export const reservedProps = {
34
34
  options: true,
35
35
  ref: true, // TODO: deal with changing ref
36
36
  };
37
-
38
- /**
39
- * @param {import("ol/View.js").default} view The view.
40
- * @param {string} type The string type.
41
- * @param {Object<string, any>} oldProps The old props.
42
- * @param {Object<string, any>} newProps The new props.
43
- */
44
- export function prepareViewUpdate(view, type, oldProps, newProps) {
45
- if (view.getAnimating()) {
46
- return null;
47
- }
48
- /**
49
- * @type {Object<string, any>}
50
- */
51
- const payload = {};
52
- let needsUpdate = false;
53
- for (const key in newProps) {
54
- if (reservedProps[key]) {
55
- continue;
56
- }
57
- if (key === 'center') {
58
- if (
59
- !(
60
- arrayEquals(oldProps.center, newProps.center) ||
61
- arrayEquals(view.getCenter(), newProps.center)
62
- )
63
- ) {
64
- payload.center = newProps.center;
65
- needsUpdate = true;
66
- }
67
- continue;
68
- }
69
- if (key === 'zoom') {
70
- if (
71
- !(oldProps.zoom === newProps.zoom || view.getZoom() === newProps.zoom)
72
- ) {
73
- payload.zoom = newProps.zoom;
74
- needsUpdate = true;
75
- }
76
- continue;
77
- }
78
- if (key === 'rotation') {
79
- if (
80
- !(
81
- oldProps.rotation === newProps.rotation ||
82
- view.getRotation() === newProps.rotation
83
- )
84
- ) {
85
- payload.rotation = newProps.rotation;
86
- needsUpdate = true;
87
- }
88
- continue;
89
- }
90
- if (newProps[key] !== oldProps[key]) {
91
- payload[key] = newProps[key];
92
- needsUpdate = true;
93
- }
94
- }
95
- if (!needsUpdate) {
96
- return null;
97
- }
98
- return payload;
99
- }
100
-
101
- /**
102
- * @type {Updater}
103
- */
104
- function prepareGenericUpdate(instance, type, oldProps, newProps) {
105
- /**
106
- * @type {Object<string, any>}
107
- */
108
- const payload = {};
109
- let needsUpdate = false;
110
- for (const key in newProps) {
111
- if (reservedProps[key]) {
112
- continue;
113
- }
114
-
115
- if (newProps[key] !== oldProps[key]) {
116
- payload[key] = newProps[key];
117
- needsUpdate = true;
118
- }
119
- }
120
- if (!needsUpdate) {
121
- return null;
122
- }
123
- return payload;
124
- }
125
-
126
- export {
127
- prepareGenericUpdate as prepareControlUpdate,
128
- prepareGenericUpdate as prepareInteractionUpdate,
129
- prepareGenericUpdate as prepareLayerUpdate,
130
- prepareGenericUpdate as prepareOverlayUpdate,
131
- prepareGenericUpdate as prepareSourceUpdate,
132
- };
package/layer/Base.d.ts CHANGED
@@ -12,14 +12,18 @@ export default function Base({ children, ...props }: BaseProps | {
12
12
  /**
13
13
  * The layer options.
14
14
  */
15
- options?: import("ol/layer/Base.js").Options | undefined;
15
+ options?: import("ol/layer/Base.js").Options<NoInfer<{
16
+ [x: string]: any;
17
+ }>> | undefined;
16
18
  cls: typeof OLBase;
17
19
  }, string | import("react").JSXElementConstructor<any>>;
18
20
  export type BaseProps = {
19
21
  /**
20
22
  * The layer options.
21
23
  */
22
- options?: import("ol/layer/Base.js").Options | undefined;
24
+ options?: import("ol/layer/Base.js").Options<NoInfer<{
25
+ [x: string]: any;
26
+ }>> | undefined;
23
27
  /**
24
28
  * The layer source.
25
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["Base.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,qDAFW,SAAS,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAIzC;;;;;;;;;cARa,KAAK,CAAC,SAAS;;mBANV,kBAAkB"}
1
+ {"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["Base.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,qDAFW,SAAS,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;;;wDAIzC;;;;;;;;;;;cARa,KAAK,CAAC,SAAS;;mBANV,kBAAkB"}
package/layer/Layer.d.ts CHANGED
@@ -12,14 +12,18 @@ export default function Layer({ children, ...props }: LayerProps | {
12
12
  /**
13
13
  * The layer options.
14
14
  */
15
- options?: import("ol/layer/Layer.js").Options<import("ol/source").Source> | undefined;
15
+ options?: import("ol/layer/Layer.js").Options<import("ol/source").Source, NoInfer<{
16
+ [x: string]: any;
17
+ }>> | undefined;
16
18
  cls: typeof OLLayer;
17
19
  }, string | import("react").JSXElementConstructor<any>>;
18
20
  export type LayerProps = {
19
21
  /**
20
22
  * The layer options.
21
23
  */
22
- options?: import("ol/layer/Layer.js").Options<import("ol/source").Source> | undefined;
24
+ options?: import("ol/layer/Layer.js").Options<import("ol/source").Source, NoInfer<{
25
+ [x: string]: any;
26
+ }>> | undefined;
23
27
  /**
24
28
  * The layer source.
25
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["Layer.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,sDAFW,UAAU,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI1C;;;;;;;;;cARa,KAAK,CAAC,SAAS;;oBANT,mBAAmB"}
1
+ {"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["Layer.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,sDAFW,UAAU,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;;;wDAI1C;;;;;;;;;;;cARa,KAAK,CAAC,SAAS;;oBANT,mBAAmB"}
@@ -12,14 +12,14 @@ export default function WebGLTile({ children, ...props }: WebGLTileProps | {
12
12
  /**
13
13
  * The layer options.
14
14
  */
15
- options?: import("ol/layer/WebGLTile.js").Options | undefined;
15
+ options?: ConstructorParameters<typeof OLWebGLTile>[0];
16
16
  cls: typeof OLWebGLTile;
17
17
  }, string | import("react").JSXElementConstructor<any>>;
18
18
  export type WebGLTileProps = {
19
19
  /**
20
20
  * The layer options.
21
21
  */
22
- options?: import("ol/layer/WebGLTile.js").Options | undefined;
22
+ options?: ConstructorParameters<typeof OLWebGLTile>[0];
23
23
  /**
24
24
  * The layer source.
25
25
  */
@@ -1 +1 @@
1
- {"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,0DAFW,cAAc,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI9C;;;;;;;;;cARa,KAAK,CAAC,SAAS;;wBANL,uBAAuB"}
1
+ {"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,0DAFW,cAAc,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cALjC,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;;wDASzD;;;;;cATa,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;;;;cAC5C,KAAK,CAAC,SAAS;;wBANL,uBAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planet/maps",
3
- "version": "11.2.0",
3
+ "version": "11.3.0",
4
4
  "description": "Declarative mapping components for React",
5
5
  "type": "module",
6
6
  "repository": {
@@ -35,30 +35,30 @@
35
35
  "devDependencies": {
36
36
  "@astrojs/mdx": "^4.0.3",
37
37
  "@astrojs/react": "^4.0.0",
38
- "@octokit/rest": "^21.0.0",
39
- "@playwright/test": "^1.25.2",
40
- "@testing-library/react": "^16.0.0",
41
- "@types/react": "^19.0.10",
42
- "@types/react-dom": "^19.0.4",
43
- "@types/react-reconciler": "^0.31.0",
44
- "@vitest/browser": "^3.0.7",
38
+ "@octokit/rest": "^22.0.0",
39
+ "@playwright/test": "^1.58.2",
40
+ "@testing-library/react": "^16.3.2",
41
+ "@types/react": "^19.1.9",
42
+ "@types/react-dom": "^19.1.7",
43
+ "@types/react-reconciler": "^0.32.1",
44
+ "@vitest/browser": "^4.0.18",
45
+ "@vitest/browser-playwright": "^4.0.18",
45
46
  "astro": "^5.1.1",
46
- "es-main": "^1.2.0",
47
- "eslint": "^9.20.1",
48
- "eslint-config-planet": "^23.1.0",
47
+ "eslint": "^9.37.0",
48
+ "eslint-config-planet": "^23.2.0",
49
49
  "eslint-plugin-astro": "^1.2.0",
50
50
  "eslint-plugin-mdx": "^3.0.0",
51
51
  "eslint-plugin-react": "^7.32.1",
52
52
  "fs-extra": "^11.1.0",
53
- "happy-dom": "^17.1.4",
53
+ "happy-dom": "^20.0.0",
54
54
  "import-meta-resolve": "^4.0.0",
55
55
  "mustache": "^4.2.0",
56
56
  "npm-run-all": "^4.1.5",
57
- "ol": "^10.4.0",
58
- "ol-mapbox-style": "^12.4.1",
57
+ "ol": "^10.8.0",
58
+ "ol-mapbox-style": "^13.1.0",
59
59
  "prop-types": "^15.8.1",
60
- "react": "^19.1.0",
61
- "react-dom": "^19.1.0",
60
+ "react": "^19.2.0",
61
+ "react-dom": "^19.2.0",
62
62
  "remark-html": "^16.0.1",
63
63
  "remark-parse": "^11.0.0",
64
64
  "semapro": "^1.1.0",
@@ -66,11 +66,11 @@
66
66
  "shikiji": "^0.10.2",
67
67
  "typescript": "^5.7.3",
68
68
  "unified": "^11.0.2",
69
- "vite": "^6.0.1",
70
- "vitest": "^3.0.7",
71
- "yargs-parser": "^21.1.1"
69
+ "vite": "^7.3.1",
70
+ "vitest": "^4.0.18",
71
+ "yargs-parser": "^22.0.0"
72
72
  },
73
73
  "dependencies": {
74
- "react-reconciler": "^0.32.0"
74
+ "react-reconciler": "^0.33.0"
75
75
  }
76
76
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} GeoZarrProps
3
+ * @property {ConstructorParameters<typeof OLGeoZarr>[0]} [options] The source options.
4
+ */
5
+ /**
6
+ * @param {GeoZarrProps | Object<string, any>} props The source props.
7
+ */
8
+ export default function GeoZarr(props: GeoZarrProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The source options.
13
+ */
14
+ options?: import("ol/source/GeoZarr.js").Options | undefined;
15
+ cls: typeof OLGeoZarr;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type GeoZarrProps = {
18
+ /**
19
+ * The source options.
20
+ */
21
+ options?: import("ol/source/GeoZarr.js").Options | undefined;
22
+ };
23
+ import OLGeoZarr from 'ol/source/GeoZarr.js';
24
+ //# sourceMappingURL=GeoZarr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeoZarr.d.ts","sourceRoot":"","sources":["GeoZarr.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI5C;;;;;;;sBAbqB,sBAAsB"}
@@ -0,0 +1,30 @@
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 OLGeoZarr from 'ol/source/GeoZarr.js';
18
+ import {createElement} from 'react';
19
+
20
+ /**
21
+ * @typedef {Object} GeoZarrProps
22
+ * @property {ConstructorParameters<typeof OLGeoZarr>[0]} [options] The source options.
23
+ */
24
+
25
+ /**
26
+ * @param {GeoZarrProps | Object<string, any>} props The source props.
27
+ */
28
+ export default function GeoZarr(props) {
29
+ return createElement('source', {cls: OLGeoZarr, ...props});
30
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} OGCMapProps
3
+ * @property {ConstructorParameters<typeof OLOGCMap>[0]} [options] The source options.
4
+ */
5
+ /**
6
+ * @param {OGCMapProps | Object<string, any>} props The source props.
7
+ */
8
+ export default function OGCMap(props: OGCMapProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The source options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLOGCMap>[0];
15
+ cls: typeof OLOGCMap;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type OGCMapProps = {
18
+ /**
19
+ * The source options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLOGCMap>[0];
22
+ };
23
+ import OLOGCMap from 'ol/source/OGCMap.js';
24
+ //# sourceMappingURL=OGCMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OGCMap.d.ts","sourceRoot":"","sources":["OGCMap.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,sCAFW,WAAW,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJ9B,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;;wDAQtD;;;;;cARa,qBAAqB,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;;qBALlC,qBAAqB"}
@@ -0,0 +1,30 @@
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 OLOGCMap from 'ol/source/OGCMap.js';
18
+ import {createElement} from 'react';
19
+
20
+ /**
21
+ * @typedef {Object} OGCMapProps
22
+ * @property {ConstructorParameters<typeof OLOGCMap>[0]} [options] The source options.
23
+ */
24
+
25
+ /**
26
+ * @param {OGCMapProps | Object<string, any>} props The source props.
27
+ */
28
+ export default function OGCMap(props) {
29
+ return createElement('source', {cls: OLOGCMap, ...props});
30
+ }