@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.
Files changed (93) hide show
  1. package/Map.js +16 -16
  2. package/Overlay.js +8 -0
  3. package/View.js +8 -0
  4. package/control/Attribution.js +8 -0
  5. package/control/Control.js +8 -0
  6. package/control/FullScreen.js +8 -0
  7. package/control/MousePosition.js +8 -0
  8. package/control/OverviewMap.js +8 -0
  9. package/control/Rotate.js +8 -0
  10. package/control/ScaleLine.js +8 -0
  11. package/control/Zoom.js +8 -0
  12. package/control/ZoomSlider.js +8 -0
  13. package/control/ZoomToExtent.js +8 -0
  14. package/interaction/DblClickDragZoom.js +8 -0
  15. package/interaction/DoubleClickZoom.js +8 -0
  16. package/interaction/DragAndDrop.js +8 -0
  17. package/interaction/DragBox.js +8 -0
  18. package/interaction/DragPan.js +8 -0
  19. package/interaction/DragRotate.js +8 -0
  20. package/interaction/DragRotateAndZoom.js +8 -0
  21. package/interaction/DragZoom.js +8 -0
  22. package/interaction/Draw.js +8 -0
  23. package/interaction/Extent.js +8 -0
  24. package/interaction/Interaction.js +8 -0
  25. package/interaction/KeyboardPan.js +8 -0
  26. package/interaction/KeyboardZoom.js +8 -0
  27. package/interaction/Link.js +8 -0
  28. package/interaction/Modify.js +8 -0
  29. package/interaction/MouseWheelZoom.js +8 -0
  30. package/interaction/PinchRotate.js +8 -0
  31. package/interaction/PinchZoom.js +8 -0
  32. package/interaction/Pointer.js +8 -0
  33. package/interaction/Select.js +8 -0
  34. package/interaction/Snap.js +8 -0
  35. package/interaction/Translate.js +8 -0
  36. package/internal/config.js +1 -0
  37. package/internal/render.js +106 -40
  38. package/internal/update.js +37 -4
  39. package/layer/Base.js +9 -5
  40. package/layer/BaseImage.js +9 -5
  41. package/layer/BaseTile.js +9 -5
  42. package/layer/BaseVector.js +9 -5
  43. package/layer/Flow.js +9 -5
  44. package/layer/Graticule.js +9 -5
  45. package/layer/Group.js +9 -5
  46. package/layer/Heatmap.js +9 -5
  47. package/layer/Image.js +9 -5
  48. package/layer/Layer.js +9 -5
  49. package/layer/MapboxVector.js +8 -5
  50. package/layer/Tile.js +9 -5
  51. package/layer/Vector.js +9 -5
  52. package/layer/VectorImage.js +9 -5
  53. package/layer/VectorTile.js +9 -5
  54. package/layer/WebGLPoints.js +9 -5
  55. package/layer/WebGLTile.js +9 -5
  56. package/layer/WebGLVector.js +9 -5
  57. package/layer/WebGLVectorTile.js +9 -5
  58. package/package.json +24 -15
  59. package/source/BingMaps.js +8 -0
  60. package/source/CartoDB.js +8 -0
  61. package/source/Cluster.js +8 -0
  62. package/source/DataTile.js +8 -0
  63. package/source/GeoTIFF.js +8 -0
  64. package/source/Google.js +8 -0
  65. package/source/IIIF.js +8 -0
  66. package/source/Image.js +8 -0
  67. package/source/ImageArcGISRest.js +8 -0
  68. package/source/ImageCanvas.js +8 -0
  69. package/source/ImageMapGuide.js +8 -0
  70. package/source/ImageStatic.js +8 -0
  71. package/source/ImageTile.js +8 -0
  72. package/source/ImageWMS.js +8 -0
  73. package/source/OGCMapTile.js +8 -0
  74. package/source/OGCVectorTile.js +8 -0
  75. package/source/OSM.js +8 -0
  76. package/source/Raster.js +8 -0
  77. package/source/SentinelHub.js +8 -0
  78. package/source/Source.js +8 -0
  79. package/source/StadiaMaps.js +8 -0
  80. package/source/Tile.js +8 -0
  81. package/source/TileArcGISRest.js +8 -0
  82. package/source/TileDebug.js +8 -0
  83. package/source/TileImage.js +8 -0
  84. package/source/TileJSON.js +8 -0
  85. package/source/TileWMS.js +8 -0
  86. package/source/UTFGrid.js +8 -0
  87. package/source/UrlTile.js +8 -0
  88. package/source/Vector.js +8 -0
  89. package/source/VectorTile.js +8 -0
  90. package/source/WMTS.js +8 -0
  91. package/source/XYZ.js +8 -0
  92. package/source/Zoomify.js +8 -0
  93. package/interaction/Property.js +0 -22
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -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
- };
@@ -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.1740421848732",
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 run test:lib && npm run test:rendering",
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:not-working": "vitest run -r ./tests/unit",
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
- "clean": "node tools/clean.js"
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.2",
39
- "@types/react-dom": "^19.0.2",
40
- "@vitest/browser": "^3.0.3",
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
- "ol": "^10.3.0",
52
- "ol-mapbox-style": "^12.3.5",
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.3",
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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }
@@ -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
  }