@planet/maps 11.0.0 → 11.1.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.
Files changed (275) hide show
  1. package/Map.d.ts +48 -0
  2. package/Map.d.ts.map +1 -0
  3. package/Map.js +16 -16
  4. package/Overlay.d.ts +26 -0
  5. package/Overlay.d.ts.map +1 -0
  6. package/Overlay.js +8 -0
  7. package/View.d.ts +26 -0
  8. package/View.d.ts.map +1 -0
  9. package/View.js +8 -0
  10. package/control/Attribution.d.ts +24 -0
  11. package/control/Attribution.d.ts.map +1 -0
  12. package/control/Attribution.js +8 -0
  13. package/control/Control.d.ts +24 -0
  14. package/control/Control.d.ts.map +1 -0
  15. package/control/Control.js +8 -0
  16. package/control/FullScreen.d.ts +24 -0
  17. package/control/FullScreen.d.ts.map +1 -0
  18. package/control/FullScreen.js +8 -0
  19. package/control/MousePosition.d.ts +24 -0
  20. package/control/MousePosition.d.ts.map +1 -0
  21. package/control/MousePosition.js +8 -0
  22. package/control/OverviewMap.d.ts +24 -0
  23. package/control/OverviewMap.d.ts.map +1 -0
  24. package/control/OverviewMap.js +8 -0
  25. package/control/Rotate.d.ts +24 -0
  26. package/control/Rotate.d.ts.map +1 -0
  27. package/control/Rotate.js +8 -0
  28. package/control/ScaleLine.d.ts +24 -0
  29. package/control/ScaleLine.d.ts.map +1 -0
  30. package/control/ScaleLine.js +8 -0
  31. package/control/Zoom.d.ts +24 -0
  32. package/control/Zoom.d.ts.map +1 -0
  33. package/control/Zoom.js +8 -0
  34. package/control/ZoomSlider.d.ts +24 -0
  35. package/control/ZoomSlider.d.ts.map +1 -0
  36. package/control/ZoomSlider.js +8 -0
  37. package/control/ZoomToExtent.d.ts +24 -0
  38. package/control/ZoomToExtent.d.ts.map +1 -0
  39. package/control/ZoomToExtent.js +8 -0
  40. package/interaction/DblClickDragZoom.d.ts +24 -0
  41. package/interaction/DblClickDragZoom.d.ts.map +1 -0
  42. package/interaction/DblClickDragZoom.js +8 -0
  43. package/interaction/DoubleClickZoom.d.ts +24 -0
  44. package/interaction/DoubleClickZoom.d.ts.map +1 -0
  45. package/interaction/DoubleClickZoom.js +8 -0
  46. package/interaction/DragAndDrop.d.ts +24 -0
  47. package/interaction/DragAndDrop.d.ts.map +1 -0
  48. package/interaction/DragAndDrop.js +8 -0
  49. package/interaction/DragBox.d.ts +24 -0
  50. package/interaction/DragBox.d.ts.map +1 -0
  51. package/interaction/DragBox.js +8 -0
  52. package/interaction/DragPan.d.ts +24 -0
  53. package/interaction/DragPan.d.ts.map +1 -0
  54. package/interaction/DragPan.js +8 -0
  55. package/interaction/DragRotate.d.ts +24 -0
  56. package/interaction/DragRotate.d.ts.map +1 -0
  57. package/interaction/DragRotate.js +8 -0
  58. package/interaction/DragRotateAndZoom.d.ts +24 -0
  59. package/interaction/DragRotateAndZoom.d.ts.map +1 -0
  60. package/interaction/DragRotateAndZoom.js +8 -0
  61. package/interaction/DragZoom.d.ts +24 -0
  62. package/interaction/DragZoom.d.ts.map +1 -0
  63. package/interaction/DragZoom.js +8 -0
  64. package/interaction/Draw.d.ts +24 -0
  65. package/interaction/Draw.d.ts.map +1 -0
  66. package/interaction/Draw.js +8 -0
  67. package/interaction/Extent.d.ts +24 -0
  68. package/interaction/Extent.d.ts.map +1 -0
  69. package/interaction/Extent.js +8 -0
  70. package/interaction/Interaction.d.ts +24 -0
  71. package/interaction/Interaction.d.ts.map +1 -0
  72. package/interaction/Interaction.js +8 -0
  73. package/interaction/KeyboardPan.d.ts +24 -0
  74. package/interaction/KeyboardPan.d.ts.map +1 -0
  75. package/interaction/KeyboardPan.js +8 -0
  76. package/interaction/KeyboardZoom.d.ts +24 -0
  77. package/interaction/KeyboardZoom.d.ts.map +1 -0
  78. package/interaction/KeyboardZoom.js +8 -0
  79. package/interaction/Link.d.ts +24 -0
  80. package/interaction/Link.d.ts.map +1 -0
  81. package/interaction/Link.js +8 -0
  82. package/interaction/Modify.d.ts +24 -0
  83. package/interaction/Modify.d.ts.map +1 -0
  84. package/interaction/Modify.js +8 -0
  85. package/interaction/MouseWheelZoom.d.ts +24 -0
  86. package/interaction/MouseWheelZoom.d.ts.map +1 -0
  87. package/interaction/MouseWheelZoom.js +8 -0
  88. package/interaction/PinchRotate.d.ts +24 -0
  89. package/interaction/PinchRotate.d.ts.map +1 -0
  90. package/interaction/PinchRotate.js +8 -0
  91. package/interaction/PinchZoom.d.ts +24 -0
  92. package/interaction/PinchZoom.d.ts.map +1 -0
  93. package/interaction/PinchZoom.js +8 -0
  94. package/interaction/Pointer.d.ts +24 -0
  95. package/interaction/Pointer.d.ts.map +1 -0
  96. package/interaction/Pointer.js +8 -0
  97. package/interaction/Select.d.ts +24 -0
  98. package/interaction/Select.d.ts.map +1 -0
  99. package/interaction/Select.js +8 -0
  100. package/interaction/Snap.d.ts +24 -0
  101. package/interaction/Snap.d.ts.map +1 -0
  102. package/interaction/Snap.js +8 -0
  103. package/interaction/Translate.d.ts +24 -0
  104. package/interaction/Translate.d.ts.map +1 -0
  105. package/interaction/Translate.js +8 -0
  106. package/internal/config.d.ts +18 -0
  107. package/internal/config.d.ts.map +1 -0
  108. package/internal/config.js +1 -0
  109. package/internal/render.d.ts +21 -0
  110. package/internal/render.d.ts.map +1 -0
  111. package/internal/render.js +129 -42
  112. package/internal/update.d.ts +40 -0
  113. package/internal/update.d.ts.map +1 -0
  114. package/internal/update.js +37 -4
  115. package/layer/Base.d.ts +29 -0
  116. package/layer/Base.d.ts.map +1 -0
  117. package/layer/Base.js +9 -5
  118. package/layer/BaseImage.d.ts +29 -0
  119. package/layer/BaseImage.d.ts.map +1 -0
  120. package/layer/BaseImage.js +9 -5
  121. package/layer/BaseTile.d.ts +29 -0
  122. package/layer/BaseTile.d.ts.map +1 -0
  123. package/layer/BaseTile.js +9 -5
  124. package/layer/BaseVector.d.ts +29 -0
  125. package/layer/BaseVector.d.ts.map +1 -0
  126. package/layer/BaseVector.js +9 -5
  127. package/layer/Flow.d.ts +29 -0
  128. package/layer/Flow.d.ts.map +1 -0
  129. package/layer/Flow.js +9 -5
  130. package/layer/Graticule.d.ts +29 -0
  131. package/layer/Graticule.d.ts.map +1 -0
  132. package/layer/Graticule.js +9 -5
  133. package/layer/Group.d.ts +29 -0
  134. package/layer/Group.d.ts.map +1 -0
  135. package/layer/Group.js +9 -5
  136. package/layer/Heatmap.d.ts +29 -0
  137. package/layer/Heatmap.d.ts.map +1 -0
  138. package/layer/Heatmap.js +9 -5
  139. package/layer/Image.d.ts +29 -0
  140. package/layer/Image.d.ts.map +1 -0
  141. package/layer/Image.js +9 -5
  142. package/layer/Layer.d.ts +29 -0
  143. package/layer/Layer.d.ts.map +1 -0
  144. package/layer/Layer.js +9 -5
  145. package/layer/MapboxVector.d.ts +20 -0
  146. package/layer/MapboxVector.d.ts.map +1 -0
  147. package/layer/MapboxVector.js +8 -5
  148. package/layer/Tile.d.ts +29 -0
  149. package/layer/Tile.d.ts.map +1 -0
  150. package/layer/Tile.js +9 -5
  151. package/layer/Vector.d.ts +29 -0
  152. package/layer/Vector.d.ts.map +1 -0
  153. package/layer/Vector.js +9 -5
  154. package/layer/VectorImage.d.ts +29 -0
  155. package/layer/VectorImage.d.ts.map +1 -0
  156. package/layer/VectorImage.js +9 -5
  157. package/layer/VectorTile.d.ts +29 -0
  158. package/layer/VectorTile.d.ts.map +1 -0
  159. package/layer/VectorTile.js +9 -5
  160. package/layer/WebGLPoints.d.ts +29 -0
  161. package/layer/WebGLPoints.d.ts.map +1 -0
  162. package/layer/WebGLPoints.js +9 -5
  163. package/layer/WebGLTile.d.ts +29 -0
  164. package/layer/WebGLTile.d.ts.map +1 -0
  165. package/layer/WebGLTile.js +9 -5
  166. package/layer/WebGLVector.d.ts +29 -0
  167. package/layer/WebGLVector.d.ts.map +1 -0
  168. package/layer/WebGLVector.js +9 -5
  169. package/layer/WebGLVectorTile.d.ts +29 -0
  170. package/layer/WebGLVectorTile.d.ts.map +1 -0
  171. package/layer/WebGLVectorTile.js +9 -5
  172. package/package.json +24 -15
  173. package/source/BingMaps.d.ts +24 -0
  174. package/source/BingMaps.d.ts.map +1 -0
  175. package/source/BingMaps.js +8 -0
  176. package/source/CartoDB.d.ts +24 -0
  177. package/source/CartoDB.d.ts.map +1 -0
  178. package/source/CartoDB.js +8 -0
  179. package/source/Cluster.d.ts +24 -0
  180. package/source/Cluster.d.ts.map +1 -0
  181. package/source/Cluster.js +8 -0
  182. package/source/DataTile.d.ts +24 -0
  183. package/source/DataTile.d.ts.map +1 -0
  184. package/source/DataTile.js +8 -0
  185. package/source/GeoTIFF.d.ts +24 -0
  186. package/source/GeoTIFF.d.ts.map +1 -0
  187. package/source/GeoTIFF.js +8 -0
  188. package/source/Google.d.ts +24 -0
  189. package/source/Google.d.ts.map +1 -0
  190. package/source/Google.js +8 -0
  191. package/source/IIIF.d.ts +24 -0
  192. package/source/IIIF.d.ts.map +1 -0
  193. package/source/IIIF.js +8 -0
  194. package/source/Image.d.ts +24 -0
  195. package/source/Image.d.ts.map +1 -0
  196. package/source/Image.js +8 -0
  197. package/source/ImageArcGISRest.d.ts +24 -0
  198. package/source/ImageArcGISRest.d.ts.map +1 -0
  199. package/source/ImageArcGISRest.js +8 -0
  200. package/source/ImageCanvas.d.ts +24 -0
  201. package/source/ImageCanvas.d.ts.map +1 -0
  202. package/source/ImageCanvas.js +8 -0
  203. package/source/ImageMapGuide.d.ts +24 -0
  204. package/source/ImageMapGuide.d.ts.map +1 -0
  205. package/source/ImageMapGuide.js +8 -0
  206. package/source/ImageStatic.d.ts +24 -0
  207. package/source/ImageStatic.d.ts.map +1 -0
  208. package/source/ImageStatic.js +8 -0
  209. package/source/ImageTile.d.ts +24 -0
  210. package/source/ImageTile.d.ts.map +1 -0
  211. package/source/ImageTile.js +8 -0
  212. package/source/ImageWMS.d.ts +24 -0
  213. package/source/ImageWMS.d.ts.map +1 -0
  214. package/source/ImageWMS.js +8 -0
  215. package/source/OGCMapTile.d.ts +24 -0
  216. package/source/OGCMapTile.d.ts.map +1 -0
  217. package/source/OGCMapTile.js +8 -0
  218. package/source/OGCVectorTile.d.ts +24 -0
  219. package/source/OGCVectorTile.d.ts.map +1 -0
  220. package/source/OGCVectorTile.js +8 -0
  221. package/source/OSM.d.ts +24 -0
  222. package/source/OSM.d.ts.map +1 -0
  223. package/source/OSM.js +8 -0
  224. package/source/Raster.d.ts +24 -0
  225. package/source/Raster.d.ts.map +1 -0
  226. package/source/Raster.js +8 -0
  227. package/source/SentinelHub.d.ts +24 -0
  228. package/source/SentinelHub.d.ts.map +1 -0
  229. package/source/SentinelHub.js +8 -0
  230. package/source/Source.d.ts +24 -0
  231. package/source/Source.d.ts.map +1 -0
  232. package/source/Source.js +8 -0
  233. package/source/StadiaMaps.d.ts +24 -0
  234. package/source/StadiaMaps.d.ts.map +1 -0
  235. package/source/StadiaMaps.js +8 -0
  236. package/source/Tile.d.ts +24 -0
  237. package/source/Tile.d.ts.map +1 -0
  238. package/source/Tile.js +8 -0
  239. package/source/TileArcGISRest.d.ts +24 -0
  240. package/source/TileArcGISRest.d.ts.map +1 -0
  241. package/source/TileArcGISRest.js +8 -0
  242. package/source/TileDebug.d.ts +24 -0
  243. package/source/TileDebug.d.ts.map +1 -0
  244. package/source/TileDebug.js +8 -0
  245. package/source/TileImage.d.ts +24 -0
  246. package/source/TileImage.d.ts.map +1 -0
  247. package/source/TileImage.js +8 -0
  248. package/source/TileJSON.d.ts +24 -0
  249. package/source/TileJSON.d.ts.map +1 -0
  250. package/source/TileJSON.js +8 -0
  251. package/source/TileWMS.d.ts +24 -0
  252. package/source/TileWMS.d.ts.map +1 -0
  253. package/source/TileWMS.js +8 -0
  254. package/source/UTFGrid.d.ts +24 -0
  255. package/source/UTFGrid.d.ts.map +1 -0
  256. package/source/UTFGrid.js +8 -0
  257. package/source/UrlTile.d.ts +24 -0
  258. package/source/UrlTile.d.ts.map +1 -0
  259. package/source/UrlTile.js +8 -0
  260. package/source/Vector.d.ts +24 -0
  261. package/source/Vector.d.ts.map +1 -0
  262. package/source/Vector.js +8 -0
  263. package/source/VectorTile.d.ts +24 -0
  264. package/source/VectorTile.d.ts.map +1 -0
  265. package/source/VectorTile.js +8 -0
  266. package/source/WMTS.d.ts +24 -0
  267. package/source/WMTS.d.ts.map +1 -0
  268. package/source/WMTS.js +8 -0
  269. package/source/XYZ.d.ts +24 -0
  270. package/source/XYZ.d.ts.map +1 -0
  271. package/source/XYZ.js +8 -0
  272. package/source/Zoomify.d.ts +24 -0
  273. package/source/Zoomify.d.ts.map +1 -0
  274. package/source/Zoomify.js +8 -0
  275. package/interaction/Property.js +0 -22
package/Map.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @typedef {Object} MapProps
3
+ * @property {ConstructorParameters<typeof OLMap>[0]} [options] Map constructor options.
4
+ * @property {React.ReactNode} children The map children.
5
+ * @property {React.Ref<OLMap> | (function(OLMap):void)} [ref] The map ref.
6
+ * @property {string} [id] The element id.
7
+ * @property {React.CSSProperties} [style] The element style.
8
+ * @property {string} [className] The element class name.
9
+ */
10
+ /**
11
+ * @param {MapProps | Object<string, any>} props Map props.
12
+ */
13
+ export default function Map({ id, style, className, children, ref, options, ...mapProps }: MapProps | {
14
+ [x: string]: any;
15
+ }): import("react").DetailedReactHTMLElement<{
16
+ ref: import("react").RefObject<HTMLElement | null>;
17
+ id: any;
18
+ style: any;
19
+ className: any;
20
+ }, HTMLElement>;
21
+ export type MapProps = {
22
+ /**
23
+ * Map constructor options.
24
+ */
25
+ options?: ConstructorParameters<typeof OLMap>[0];
26
+ /**
27
+ * The map children.
28
+ */
29
+ children: React.ReactNode;
30
+ /**
31
+ * The map ref.
32
+ */
33
+ ref?: import("react").Ref<OLMap> | ((arg0: OLMap) => void) | undefined;
34
+ /**
35
+ * The element id.
36
+ */
37
+ id?: string | undefined;
38
+ /**
39
+ * The element style.
40
+ */
41
+ style?: import("react").CSSProperties | undefined;
42
+ /**
43
+ * The element class name.
44
+ */
45
+ className?: string | undefined;
46
+ };
47
+ import OLMap from 'ol/Map.js';
48
+ //# sourceMappingURL=Map.d.ts.map
package/Map.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["Map.js"],"names":[],"mappings":"AAyBA;;;;;;;;GAQG;AAEH;;GAEG;AACH,2FAFW,QAAQ,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;gBA+CxC;;;;;cAxDa,qBAAqB,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;;;;cACtC,KAAK,CAAC,SAAS;;;;+CACc,KAAK,KAAE,IAAI;;;;;;;;;;;;;;kBAdpC,WAAW"}
package/Map.js CHANGED
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import OLMap from 'ol/Map.js';
17
- import propTypes from 'prop-types';
18
17
  import {createElement, useCallback, useEffect, useRef} from 'react';
19
18
  import {MAP} from './internal/config.js';
20
19
  import {render, updateInstanceFromProps} from './internal/render.js';
@@ -24,6 +23,19 @@ const defaultDivStyle = {
24
23
  width: '100%',
25
24
  };
26
25
 
26
+ /**
27
+ * @typedef {Object} MapProps
28
+ * @property {ConstructorParameters<typeof OLMap>[0]} [options] Map constructor options.
29
+ * @property {React.ReactNode} children The map children.
30
+ * @property {React.Ref<OLMap> | (function(OLMap):void)} [ref] The map ref.
31
+ * @property {string} [id] The element id.
32
+ * @property {React.CSSProperties} [style] The element style.
33
+ * @property {string} [className] The element class name.
34
+ */
35
+
36
+ /**
37
+ * @param {MapProps | Object<string, any>} props Map props.
38
+ */
27
39
  export default function Map({
28
40
  id,
29
41
  style = defaultDivStyle,
@@ -33,8 +45,8 @@ export default function Map({
33
45
  options,
34
46
  ...mapProps
35
47
  }) {
36
- const targetRef = useRef();
37
- const mapRef = useRef();
48
+ const targetRef = useRef(/** @type {HTMLElement?} */ (null));
49
+ const mapRef = useRef(/** @type {OLMap?} */ (null));
38
50
 
39
51
  const getMap = useCallback(() => {
40
52
  // avoid creating new map when options object is different
@@ -49,7 +61,7 @@ export default function Map({
49
61
 
50
62
  useEffect(() => {
51
63
  const map = getMap();
52
- map.setTarget(targetRef.current);
64
+ map.setTarget(targetRef.current ?? undefined);
53
65
  }, [getMap]);
54
66
 
55
67
  useEffect(() => {
@@ -70,15 +82,3 @@ export default function Map({
70
82
 
71
83
  return createElement('div', {ref: targetRef, id, style, className});
72
84
  }
73
-
74
- Map.propTypes = {
75
- className: propTypes.string,
76
- id: propTypes.string,
77
- style: propTypes.object,
78
- children: propTypes.node,
79
- options: propTypes.object,
80
- ref: propTypes.oneOfType([
81
- propTypes.func,
82
- propTypes.shape({current: propTypes.any}),
83
- ]),
84
- };
package/Overlay.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @typedef {Object} OverlayProps
3
+ * @property {ConstructorParameters<typeof OLOverlay>[0]} options Overlay constructor options.
4
+ */
5
+ /**
6
+ * @param {OverlayProps | Object<string, any>} props Overlay props.
7
+ */
8
+ export default function Overlay(props: OverlayProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * Overlay constructor options.
13
+ */
14
+ options: ConstructorParameters<typeof OLOverlay>[0];
15
+ cls: typeof OLOverlay;
16
+ } | {
17
+ cls: typeof OLOverlay;
18
+ }, string | import("react").JSXElementConstructor<any>>;
19
+ export type OverlayProps = {
20
+ /**
21
+ * Overlay constructor options.
22
+ */
23
+ options: ConstructorParameters<typeof OLOverlay>[0];
24
+ };
25
+ import OLOverlay from 'ol/Overlay.js';
26
+ //# sourceMappingURL=Overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["Overlay.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;aAJ/B,qBAAqB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;;;;wDAQvD;;;;;aARa,qBAAqB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;;sBANlC,eAAe"}
package/Overlay.js CHANGED
@@ -17,6 +17,14 @@ import OLOverlay from 'ol/Overlay.js';
17
17
  import {createElement} from 'react';
18
18
  import {OVERLAY} from './internal/config.js';
19
19
 
20
+ /**
21
+ * @typedef {Object} OverlayProps
22
+ * @property {ConstructorParameters<typeof OLOverlay>[0]} options Overlay constructor options.
23
+ */
24
+
25
+ /**
26
+ * @param {OverlayProps | Object<string, any>} props Overlay props.
27
+ */
20
28
  export default function Overlay(props) {
21
29
  return createElement(OVERLAY, {cls: OLOverlay, ...props});
22
30
  }
package/View.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @typedef {Object} ViewProps
3
+ * @property {ConstructorParameters<typeof OLView>[0]} options View constructor options.
4
+ */
5
+ /**
6
+ * @param {ViewProps | Object<string, any>} props View props.
7
+ */
8
+ export default function View(props: ViewProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * View constructor options.
13
+ */
14
+ options: ConstructorParameters<typeof OLView>[0];
15
+ cls: typeof OLView;
16
+ } | {
17
+ cls: typeof OLView;
18
+ }, string | import("react").JSXElementConstructor<any>>;
19
+ export type ViewProps = {
20
+ /**
21
+ * View constructor options.
22
+ */
23
+ options: ConstructorParameters<typeof OLView>[0];
24
+ };
25
+ import OLView from 'ol/View.js';
26
+ //# sourceMappingURL=View.d.ts.map
package/View.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["View.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,oCAFW,SAAS,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;aAJ5B,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;;;;wDAQpD;;;;;aARa,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;;mBANlC,YAAY"}
package/View.js CHANGED
@@ -17,6 +17,14 @@ import OLView from 'ol/View.js';
17
17
  import {createElement} from 'react';
18
18
  import {VIEW} from './internal/config.js';
19
19
 
20
+ /**
21
+ * @typedef {Object} ViewProps
22
+ * @property {ConstructorParameters<typeof OLView>[0]} options View constructor options.
23
+ */
24
+
25
+ /**
26
+ * @param {ViewProps | Object<string, any>} props View props.
27
+ */
20
28
  export default function View(props) {
21
29
  return createElement(VIEW, {cls: OLView, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} AttributionProps
3
+ * @property {ConstructorParameters<typeof OLAttribution>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {AttributionProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function Attribution(props: AttributionProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLAttribution>[0];
15
+ cls: typeof OLAttribution;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type AttributionProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLAttribution>[0];
22
+ };
23
+ import OLAttribution from 'ol/control/Attribution.js';
24
+ //# sourceMappingURL=Attribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attribution.d.ts","sourceRoot":"","sources":["Attribution.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,2CAFW,gBAAgB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJnC,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;wDAQ3D;;;;;cARa,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;0BALlC,2BAA2B"}
@@ -17,6 +17,14 @@
17
17
  import OLAttribution from 'ol/control/Attribution.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} AttributionProps
22
+ * @property {ConstructorParameters<typeof OLAttribution>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {AttributionProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Attribution(props) {
21
29
  return createElement('control', {cls: OLAttribution, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} ControlProps
3
+ * @property {ConstructorParameters<typeof OLControl>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {ControlProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function Control(props: ControlProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: import("ol/control/Control.js").Options | undefined;
15
+ cls: typeof OLControl;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type ControlProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: import("ol/control/Control.js").Options | undefined;
22
+ };
23
+ import OLControl from 'ol/control/Control.js';
24
+ //# sourceMappingURL=Control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Control.d.ts","sourceRoot":"","sources":["Control.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI5C;;;;;;;sBAbqB,uBAAuB"}
@@ -17,6 +17,14 @@
17
17
  import OLControl from 'ol/control/Control.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ControlProps
22
+ * @property {ConstructorParameters<typeof OLControl>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ControlProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Control(props) {
21
29
  return createElement('control', {cls: OLControl, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} FullScreenProps
3
+ * @property {ConstructorParameters<typeof OLFullScreen>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {FullScreenProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function FullScreen(props: FullScreenProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLFullScreen>[0];
15
+ cls: typeof OLFullScreen;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type FullScreenProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLFullScreen>[0];
22
+ };
23
+ import OLFullScreen from 'ol/control/FullScreen.js';
24
+ //# sourceMappingURL=FullScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["FullScreen.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,0CAFW,eAAe,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJlC,qBAAqB,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;;wDAQ1D;;;;;cARa,qBAAqB,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;;yBALlC,0BAA0B"}
@@ -17,6 +17,14 @@
17
17
  import OLFullScreen from 'ol/control/FullScreen.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} FullScreenProps
22
+ * @property {ConstructorParameters<typeof OLFullScreen>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {FullScreenProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function FullScreen(props) {
21
29
  return createElement('control', {cls: OLFullScreen, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} MousePositionProps
3
+ * @property {ConstructorParameters<typeof OLMousePosition>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {MousePositionProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function MousePosition(props: MousePositionProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLMousePosition>[0];
15
+ cls: typeof OLMousePosition;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type MousePositionProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLMousePosition>[0];
22
+ };
23
+ import OLMousePosition from 'ol/control/MousePosition.js';
24
+ //# sourceMappingURL=MousePosition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MousePosition.d.ts","sourceRoot":"","sources":["MousePosition.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,6CAFW,kBAAkB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJrC,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;;wDAQ7D;;;;;cARa,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;;4BALlC,6BAA6B"}
@@ -17,6 +17,14 @@
17
17
  import OLMousePosition from 'ol/control/MousePosition.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} MousePositionProps
22
+ * @property {ConstructorParameters<typeof OLMousePosition>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {MousePositionProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function MousePosition(props) {
21
29
  return createElement('control', {cls: OLMousePosition, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} OverviewMapProps
3
+ * @property {ConstructorParameters<typeof OLOverviewMap>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {OverviewMapProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function OverviewMap(props: OverviewMapProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLOverviewMap>[0];
15
+ cls: typeof OLOverviewMap;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type OverviewMapProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLOverviewMap>[0];
22
+ };
23
+ import OLOverviewMap from 'ol/control/OverviewMap.js';
24
+ //# sourceMappingURL=OverviewMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,2CAFW,gBAAgB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJnC,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;wDAQ3D;;;;;cARa,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;0BALlC,2BAA2B"}
@@ -17,6 +17,14 @@
17
17
  import OLOverviewMap from 'ol/control/OverviewMap.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} OverviewMapProps
22
+ * @property {ConstructorParameters<typeof OLOverviewMap>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {OverviewMapProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function OverviewMap(props) {
21
29
  return createElement('control', {cls: OLOverviewMap, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} RotateProps
3
+ * @property {ConstructorParameters<typeof OLRotate>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {RotateProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function Rotate(props: RotateProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLRotate>[0];
15
+ cls: typeof OLRotate;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type RotateProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLRotate>[0];
22
+ };
23
+ import OLRotate from 'ol/control/Rotate.js';
24
+ //# sourceMappingURL=Rotate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rotate.d.ts","sourceRoot":"","sources":["Rotate.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,sBAAsB"}
package/control/Rotate.js CHANGED
@@ -17,6 +17,14 @@
17
17
  import OLRotate from 'ol/control/Rotate.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} RotateProps
22
+ * @property {ConstructorParameters<typeof OLRotate>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {RotateProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Rotate(props) {
21
29
  return createElement('control', {cls: OLRotate, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} ScaleLineProps
3
+ * @property {ConstructorParameters<typeof OLScaleLine>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {ScaleLineProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function ScaleLine(props: ScaleLineProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLScaleLine>[0];
15
+ cls: typeof OLScaleLine;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type ScaleLineProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLScaleLine>[0];
22
+ };
23
+ import OLScaleLine from 'ol/control/ScaleLine.js';
24
+ //# sourceMappingURL=ScaleLine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScaleLine.d.ts","sourceRoot":"","sources":["ScaleLine.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,yCAFW,cAAc,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJjC,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;;wDAQzD;;;;;cARa,qBAAqB,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;;wBALlC,yBAAyB"}
@@ -17,6 +17,14 @@
17
17
  import OLScaleLine from 'ol/control/ScaleLine.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ScaleLineProps
22
+ * @property {ConstructorParameters<typeof OLScaleLine>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ScaleLineProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ScaleLine(props) {
21
29
  return createElement('control', {cls: OLScaleLine, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} ZoomProps
3
+ * @property {ConstructorParameters<typeof OLZoom>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {ZoomProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function Zoom(props: ZoomProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLZoom>[0];
15
+ cls: typeof OLZoom;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type ZoomProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLZoom>[0];
22
+ };
23
+ import OLZoom from 'ol/control/Zoom.js';
24
+ //# sourceMappingURL=Zoom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Zoom.d.ts","sourceRoot":"","sources":["Zoom.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,oCAFW,SAAS,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJ5B,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;;wDAQpD;;;;;cARa,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;;mBALlC,oBAAoB"}
package/control/Zoom.js CHANGED
@@ -17,6 +17,14 @@
17
17
  import OLZoom from 'ol/control/Zoom.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomProps
22
+ * @property {ConstructorParameters<typeof OLZoom>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function Zoom(props) {
21
29
  return createElement('control', {cls: OLZoom, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} ZoomSliderProps
3
+ * @property {ConstructorParameters<typeof OLZoomSlider>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {ZoomSliderProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function ZoomSlider(props: ZoomSliderProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLZoomSlider>[0];
15
+ cls: typeof OLZoomSlider;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type ZoomSliderProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLZoomSlider>[0];
22
+ };
23
+ import OLZoomSlider from 'ol/control/ZoomSlider.js';
24
+ //# sourceMappingURL=ZoomSlider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,0CAFW,eAAe,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJlC,qBAAqB,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;;wDAQ1D;;;;;cARa,qBAAqB,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;;yBALlC,0BAA0B"}
@@ -17,6 +17,14 @@
17
17
  import OLZoomSlider from 'ol/control/ZoomSlider.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomSliderProps
22
+ * @property {ConstructorParameters<typeof OLZoomSlider>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomSliderProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ZoomSlider(props) {
21
29
  return createElement('control', {cls: OLZoomSlider, ...props});
22
30
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @typedef {Object} ZoomToExtentProps
3
+ * @property {ConstructorParameters<typeof OLZoomToExtent>[0]} [options] The control options.
4
+ */
5
+ /**
6
+ * @param {ZoomToExtentProps | Object<string, any>} props The control props.
7
+ */
8
+ export default function ZoomToExtent(props: ZoomToExtentProps | {
9
+ [x: string]: any;
10
+ }): import("react").ReactElement<{
11
+ /**
12
+ * The control options.
13
+ */
14
+ options?: ConstructorParameters<typeof OLZoomToExtent>[0];
15
+ cls: typeof OLZoomToExtent;
16
+ }, string | import("react").JSXElementConstructor<any>>;
17
+ export type ZoomToExtentProps = {
18
+ /**
19
+ * The control options.
20
+ */
21
+ options?: ConstructorParameters<typeof OLZoomToExtent>[0];
22
+ };
23
+ import OLZoomToExtent from 'ol/control/ZoomToExtent.js';
24
+ //# sourceMappingURL=ZoomToExtent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoomToExtent.d.ts","sourceRoot":"","sources":["ZoomToExtent.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,4CAFW,iBAAiB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJpC,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC;;wDAQ5D;;;;;cARa,qBAAqB,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC;;2BALlC,4BAA4B"}
@@ -17,6 +17,14 @@
17
17
  import OLZoomToExtent from 'ol/control/ZoomToExtent.js';
18
18
  import {createElement} from 'react';
19
19
 
20
+ /**
21
+ * @typedef {Object} ZoomToExtentProps
22
+ * @property {ConstructorParameters<typeof OLZoomToExtent>[0]} [options] The control options.
23
+ */
24
+
25
+ /**
26
+ * @param {ZoomToExtentProps | Object<string, any>} props The control props.
27
+ */
20
28
  export default function ZoomToExtent(props) {
21
29
  return createElement('control', {cls: OLZoomToExtent, ...props});
22
30
  }