@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.
- package/Map.d.ts +48 -0
- package/Map.d.ts.map +1 -0
- package/Map.js +16 -16
- package/Overlay.d.ts +26 -0
- package/Overlay.d.ts.map +1 -0
- package/Overlay.js +8 -0
- package/View.d.ts +26 -0
- package/View.d.ts.map +1 -0
- package/View.js +8 -0
- package/control/Attribution.d.ts +24 -0
- package/control/Attribution.d.ts.map +1 -0
- package/control/Attribution.js +8 -0
- package/control/Control.d.ts +24 -0
- package/control/Control.d.ts.map +1 -0
- package/control/Control.js +8 -0
- package/control/FullScreen.d.ts +24 -0
- package/control/FullScreen.d.ts.map +1 -0
- package/control/FullScreen.js +8 -0
- package/control/MousePosition.d.ts +24 -0
- package/control/MousePosition.d.ts.map +1 -0
- package/control/MousePosition.js +8 -0
- package/control/OverviewMap.d.ts +24 -0
- package/control/OverviewMap.d.ts.map +1 -0
- package/control/OverviewMap.js +8 -0
- package/control/Rotate.d.ts +24 -0
- package/control/Rotate.d.ts.map +1 -0
- package/control/Rotate.js +8 -0
- package/control/ScaleLine.d.ts +24 -0
- package/control/ScaleLine.d.ts.map +1 -0
- package/control/ScaleLine.js +8 -0
- package/control/Zoom.d.ts +24 -0
- package/control/Zoom.d.ts.map +1 -0
- package/control/Zoom.js +8 -0
- package/control/ZoomSlider.d.ts +24 -0
- package/control/ZoomSlider.d.ts.map +1 -0
- package/control/ZoomSlider.js +8 -0
- package/control/ZoomToExtent.d.ts +24 -0
- package/control/ZoomToExtent.d.ts.map +1 -0
- package/control/ZoomToExtent.js +8 -0
- package/interaction/DblClickDragZoom.d.ts +24 -0
- package/interaction/DblClickDragZoom.d.ts.map +1 -0
- package/interaction/DblClickDragZoom.js +8 -0
- package/interaction/DoubleClickZoom.d.ts +24 -0
- package/interaction/DoubleClickZoom.d.ts.map +1 -0
- package/interaction/DoubleClickZoom.js +8 -0
- package/interaction/DragAndDrop.d.ts +24 -0
- package/interaction/DragAndDrop.d.ts.map +1 -0
- package/interaction/DragAndDrop.js +8 -0
- package/interaction/DragBox.d.ts +24 -0
- package/interaction/DragBox.d.ts.map +1 -0
- package/interaction/DragBox.js +8 -0
- package/interaction/DragPan.d.ts +24 -0
- package/interaction/DragPan.d.ts.map +1 -0
- package/interaction/DragPan.js +8 -0
- package/interaction/DragRotate.d.ts +24 -0
- package/interaction/DragRotate.d.ts.map +1 -0
- package/interaction/DragRotate.js +8 -0
- package/interaction/DragRotateAndZoom.d.ts +24 -0
- package/interaction/DragRotateAndZoom.d.ts.map +1 -0
- package/interaction/DragRotateAndZoom.js +8 -0
- package/interaction/DragZoom.d.ts +24 -0
- package/interaction/DragZoom.d.ts.map +1 -0
- package/interaction/DragZoom.js +8 -0
- package/interaction/Draw.d.ts +24 -0
- package/interaction/Draw.d.ts.map +1 -0
- package/interaction/Draw.js +8 -0
- package/interaction/Extent.d.ts +24 -0
- package/interaction/Extent.d.ts.map +1 -0
- package/interaction/Extent.js +8 -0
- package/interaction/Interaction.d.ts +24 -0
- package/interaction/Interaction.d.ts.map +1 -0
- package/interaction/Interaction.js +8 -0
- package/interaction/KeyboardPan.d.ts +24 -0
- package/interaction/KeyboardPan.d.ts.map +1 -0
- package/interaction/KeyboardPan.js +8 -0
- package/interaction/KeyboardZoom.d.ts +24 -0
- package/interaction/KeyboardZoom.d.ts.map +1 -0
- package/interaction/KeyboardZoom.js +8 -0
- package/interaction/Link.d.ts +24 -0
- package/interaction/Link.d.ts.map +1 -0
- package/interaction/Link.js +8 -0
- package/interaction/Modify.d.ts +24 -0
- package/interaction/Modify.d.ts.map +1 -0
- package/interaction/Modify.js +8 -0
- package/interaction/MouseWheelZoom.d.ts +24 -0
- package/interaction/MouseWheelZoom.d.ts.map +1 -0
- package/interaction/MouseWheelZoom.js +8 -0
- package/interaction/PinchRotate.d.ts +24 -0
- package/interaction/PinchRotate.d.ts.map +1 -0
- package/interaction/PinchRotate.js +8 -0
- package/interaction/PinchZoom.d.ts +24 -0
- package/interaction/PinchZoom.d.ts.map +1 -0
- package/interaction/PinchZoom.js +8 -0
- package/interaction/Pointer.d.ts +24 -0
- package/interaction/Pointer.d.ts.map +1 -0
- package/interaction/Pointer.js +8 -0
- package/interaction/Select.d.ts +24 -0
- package/interaction/Select.d.ts.map +1 -0
- package/interaction/Select.js +8 -0
- package/interaction/Snap.d.ts +24 -0
- package/interaction/Snap.d.ts.map +1 -0
- package/interaction/Snap.js +8 -0
- package/interaction/Translate.d.ts +24 -0
- package/interaction/Translate.d.ts.map +1 -0
- package/interaction/Translate.js +8 -0
- package/internal/config.d.ts +18 -0
- package/internal/config.d.ts.map +1 -0
- package/internal/config.js +1 -0
- package/internal/render.d.ts +21 -0
- package/internal/render.d.ts.map +1 -0
- package/internal/render.js +129 -42
- package/internal/update.d.ts +40 -0
- package/internal/update.d.ts.map +1 -0
- package/internal/update.js +37 -4
- package/layer/Base.d.ts +29 -0
- package/layer/Base.d.ts.map +1 -0
- package/layer/Base.js +9 -5
- package/layer/BaseImage.d.ts +29 -0
- package/layer/BaseImage.d.ts.map +1 -0
- package/layer/BaseImage.js +9 -5
- package/layer/BaseTile.d.ts +29 -0
- package/layer/BaseTile.d.ts.map +1 -0
- package/layer/BaseTile.js +9 -5
- package/layer/BaseVector.d.ts +29 -0
- package/layer/BaseVector.d.ts.map +1 -0
- package/layer/BaseVector.js +9 -5
- package/layer/Flow.d.ts +29 -0
- package/layer/Flow.d.ts.map +1 -0
- package/layer/Flow.js +9 -5
- package/layer/Graticule.d.ts +29 -0
- package/layer/Graticule.d.ts.map +1 -0
- package/layer/Graticule.js +9 -5
- package/layer/Group.d.ts +29 -0
- package/layer/Group.d.ts.map +1 -0
- package/layer/Group.js +9 -5
- package/layer/Heatmap.d.ts +29 -0
- package/layer/Heatmap.d.ts.map +1 -0
- package/layer/Heatmap.js +9 -5
- package/layer/Image.d.ts +29 -0
- package/layer/Image.d.ts.map +1 -0
- package/layer/Image.js +9 -5
- package/layer/Layer.d.ts +29 -0
- package/layer/Layer.d.ts.map +1 -0
- package/layer/Layer.js +9 -5
- package/layer/MapboxVector.d.ts +20 -0
- package/layer/MapboxVector.d.ts.map +1 -0
- package/layer/MapboxVector.js +8 -5
- package/layer/Tile.d.ts +29 -0
- package/layer/Tile.d.ts.map +1 -0
- package/layer/Tile.js +9 -5
- package/layer/Vector.d.ts +29 -0
- package/layer/Vector.d.ts.map +1 -0
- package/layer/Vector.js +9 -5
- package/layer/VectorImage.d.ts +29 -0
- package/layer/VectorImage.d.ts.map +1 -0
- package/layer/VectorImage.js +9 -5
- package/layer/VectorTile.d.ts +29 -0
- package/layer/VectorTile.d.ts.map +1 -0
- package/layer/VectorTile.js +9 -5
- package/layer/WebGLPoints.d.ts +29 -0
- package/layer/WebGLPoints.d.ts.map +1 -0
- package/layer/WebGLPoints.js +9 -5
- package/layer/WebGLTile.d.ts +29 -0
- package/layer/WebGLTile.d.ts.map +1 -0
- package/layer/WebGLTile.js +9 -5
- package/layer/WebGLVector.d.ts +29 -0
- package/layer/WebGLVector.d.ts.map +1 -0
- package/layer/WebGLVector.js +9 -5
- package/layer/WebGLVectorTile.d.ts +29 -0
- package/layer/WebGLVectorTile.d.ts.map +1 -0
- package/layer/WebGLVectorTile.js +9 -5
- package/package.json +24 -15
- package/source/BingMaps.d.ts +24 -0
- package/source/BingMaps.d.ts.map +1 -0
- package/source/BingMaps.js +8 -0
- package/source/CartoDB.d.ts +24 -0
- package/source/CartoDB.d.ts.map +1 -0
- package/source/CartoDB.js +8 -0
- package/source/Cluster.d.ts +24 -0
- package/source/Cluster.d.ts.map +1 -0
- package/source/Cluster.js +8 -0
- package/source/DataTile.d.ts +24 -0
- package/source/DataTile.d.ts.map +1 -0
- package/source/DataTile.js +8 -0
- package/source/GeoTIFF.d.ts +24 -0
- package/source/GeoTIFF.d.ts.map +1 -0
- package/source/GeoTIFF.js +8 -0
- package/source/Google.d.ts +24 -0
- package/source/Google.d.ts.map +1 -0
- package/source/Google.js +8 -0
- package/source/IIIF.d.ts +24 -0
- package/source/IIIF.d.ts.map +1 -0
- package/source/IIIF.js +8 -0
- package/source/Image.d.ts +24 -0
- package/source/Image.d.ts.map +1 -0
- package/source/Image.js +8 -0
- package/source/ImageArcGISRest.d.ts +24 -0
- package/source/ImageArcGISRest.d.ts.map +1 -0
- package/source/ImageArcGISRest.js +8 -0
- package/source/ImageCanvas.d.ts +24 -0
- package/source/ImageCanvas.d.ts.map +1 -0
- package/source/ImageCanvas.js +8 -0
- package/source/ImageMapGuide.d.ts +24 -0
- package/source/ImageMapGuide.d.ts.map +1 -0
- package/source/ImageMapGuide.js +8 -0
- package/source/ImageStatic.d.ts +24 -0
- package/source/ImageStatic.d.ts.map +1 -0
- package/source/ImageStatic.js +8 -0
- package/source/ImageTile.d.ts +24 -0
- package/source/ImageTile.d.ts.map +1 -0
- package/source/ImageTile.js +8 -0
- package/source/ImageWMS.d.ts +24 -0
- package/source/ImageWMS.d.ts.map +1 -0
- package/source/ImageWMS.js +8 -0
- package/source/OGCMapTile.d.ts +24 -0
- package/source/OGCMapTile.d.ts.map +1 -0
- package/source/OGCMapTile.js +8 -0
- package/source/OGCVectorTile.d.ts +24 -0
- package/source/OGCVectorTile.d.ts.map +1 -0
- package/source/OGCVectorTile.js +8 -0
- package/source/OSM.d.ts +24 -0
- package/source/OSM.d.ts.map +1 -0
- package/source/OSM.js +8 -0
- package/source/Raster.d.ts +24 -0
- package/source/Raster.d.ts.map +1 -0
- package/source/Raster.js +8 -0
- package/source/SentinelHub.d.ts +24 -0
- package/source/SentinelHub.d.ts.map +1 -0
- package/source/SentinelHub.js +8 -0
- package/source/Source.d.ts +24 -0
- package/source/Source.d.ts.map +1 -0
- package/source/Source.js +8 -0
- package/source/StadiaMaps.d.ts +24 -0
- package/source/StadiaMaps.d.ts.map +1 -0
- package/source/StadiaMaps.js +8 -0
- package/source/Tile.d.ts +24 -0
- package/source/Tile.d.ts.map +1 -0
- package/source/Tile.js +8 -0
- package/source/TileArcGISRest.d.ts +24 -0
- package/source/TileArcGISRest.d.ts.map +1 -0
- package/source/TileArcGISRest.js +8 -0
- package/source/TileDebug.d.ts +24 -0
- package/source/TileDebug.d.ts.map +1 -0
- package/source/TileDebug.js +8 -0
- package/source/TileImage.d.ts +24 -0
- package/source/TileImage.d.ts.map +1 -0
- package/source/TileImage.js +8 -0
- package/source/TileJSON.d.ts +24 -0
- package/source/TileJSON.d.ts.map +1 -0
- package/source/TileJSON.js +8 -0
- package/source/TileWMS.d.ts +24 -0
- package/source/TileWMS.d.ts.map +1 -0
- package/source/TileWMS.js +8 -0
- package/source/UTFGrid.d.ts +24 -0
- package/source/UTFGrid.d.ts.map +1 -0
- package/source/UTFGrid.js +8 -0
- package/source/UrlTile.d.ts +24 -0
- package/source/UrlTile.d.ts.map +1 -0
- package/source/UrlTile.js +8 -0
- package/source/Vector.d.ts +24 -0
- package/source/Vector.d.ts.map +1 -0
- package/source/Vector.js +8 -0
- package/source/VectorTile.d.ts +24 -0
- package/source/VectorTile.d.ts.map +1 -0
- package/source/VectorTile.js +8 -0
- package/source/WMTS.d.ts +24 -0
- package/source/WMTS.d.ts.map +1 -0
- package/source/WMTS.js +8 -0
- package/source/XYZ.d.ts +24 -0
- package/source/XYZ.d.ts.map +1 -0
- package/source/XYZ.js +8 -0
- package/source/Zoomify.d.ts +24 -0
- package/source/Zoomify.d.ts.map +1 -0
- package/source/Zoomify.js +8 -0
- package/interaction/Property.js +0 -22
package/layer/WebGLPoints.js
CHANGED
|
@@ -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
|
-
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} WebGLTileProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLWebGLTile>[0]} [options] The layer options.
|
|
4
|
+
* @property {React.ReactNode} children The layer source.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {WebGLTileProps | Object<string, any>} props The layer props.
|
|
8
|
+
*/
|
|
9
|
+
export default function WebGLTile({ children, ...props }: WebGLTileProps | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}): import("react").ReactElement<{
|
|
12
|
+
/**
|
|
13
|
+
* The layer options.
|
|
14
|
+
*/
|
|
15
|
+
options?: import("ol/layer/WebGLTile.js").Options | undefined;
|
|
16
|
+
cls: typeof OLWebGLTile;
|
|
17
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
18
|
+
export type WebGLTileProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The layer options.
|
|
21
|
+
*/
|
|
22
|
+
options?: import("ol/layer/WebGLTile.js").Options | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The layer source.
|
|
25
|
+
*/
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
import OLWebGLTile from 'ol/layer/WebGLTile.js';
|
|
29
|
+
//# sourceMappingURL=WebGLTile.d.ts.map
|
|
@@ -0,0 +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"}
|
package/layer/WebGLTile.js
CHANGED
|
@@ -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
|
-
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} WebGLVectorProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLWebGLVector>[0]} [options] The layer options.
|
|
4
|
+
* @property {React.ReactNode} children The layer source.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {WebGLVectorProps | Object<string, any>} props The layer props.
|
|
8
|
+
*/
|
|
9
|
+
export default function WebGLVector({ children, ...props }: WebGLVectorProps | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}): import("react").ReactElement<{
|
|
12
|
+
/**
|
|
13
|
+
* The layer options.
|
|
14
|
+
*/
|
|
15
|
+
options?: ConstructorParameters<typeof OLWebGLVector>[0];
|
|
16
|
+
cls: typeof OLWebGLVector;
|
|
17
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
18
|
+
export type WebGLVectorProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The layer options.
|
|
21
|
+
*/
|
|
22
|
+
options?: ConstructorParameters<typeof OLWebGLVector>[0];
|
|
23
|
+
/**
|
|
24
|
+
* The layer source.
|
|
25
|
+
*/
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
import OLWebGLVector from 'ol/layer/WebGLVector.js';
|
|
29
|
+
//# sourceMappingURL=WebGLVector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebGLVector.d.ts","sourceRoot":"","sources":["WebGLVector.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,4DAFW,gBAAgB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cALnC,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;wDAS3D;;;;;cATa,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;;;cAC9C,KAAK,CAAC,SAAS;;0BANH,yBAAyB"}
|
package/layer/WebGLVector.js
CHANGED
|
@@ -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
|
-
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} WebGLVectorTileProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLWebGLVectorTile>[0]} [options] The layer options.
|
|
4
|
+
* @property {React.ReactNode} children The layer source.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {WebGLVectorTileProps | Object<string, any>} props The layer props.
|
|
8
|
+
*/
|
|
9
|
+
export default function WebGLVectorTile({ children, ...props }: WebGLVectorTileProps | {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}): import("react").ReactElement<{
|
|
12
|
+
/**
|
|
13
|
+
* The layer options.
|
|
14
|
+
*/
|
|
15
|
+
options?: ConstructorParameters<typeof OLWebGLVectorTile>[0];
|
|
16
|
+
cls: typeof OLWebGLVectorTile;
|
|
17
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
18
|
+
export type WebGLVectorTileProps = {
|
|
19
|
+
/**
|
|
20
|
+
* The layer options.
|
|
21
|
+
*/
|
|
22
|
+
options?: ConstructorParameters<typeof OLWebGLVectorTile>[0];
|
|
23
|
+
/**
|
|
24
|
+
* The layer source.
|
|
25
|
+
*/
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
import OLWebGLVectorTile from 'ol/layer/WebGLVectorTile.js';
|
|
29
|
+
//# sourceMappingURL=WebGLVectorTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebGLVectorTile.d.ts","sourceRoot":"","sources":["WebGLVectorTile.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AAEH;;GAEG;AACH,gEAFW,oBAAoB,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cALvC,qBAAqB,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC;;wDAS/D;;;;;cATa,qBAAqB,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC;;;;cAClD,KAAK,CAAC,SAAS;;8BANC,6BAA6B"}
|
package/layer/WebGLVectorTile.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "11.1.0",
|
|
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
|
|
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:
|
|
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
|
-
"
|
|
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.
|
|
39
|
-
"@types/react-dom": "^19.0.
|
|
40
|
-
"@
|
|
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
|
-
"
|
|
52
|
-
"ol
|
|
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.
|
|
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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} BingMapsProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLBingMaps>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {BingMapsProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function BingMaps(props: BingMapsProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/BingMaps.js").Options | undefined;
|
|
15
|
+
cls: typeof OLBingMaps;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type BingMapsProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/BingMaps.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLBingMaps from 'ol/source/BingMaps.js';
|
|
24
|
+
//# sourceMappingURL=BingMaps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BingMaps.d.ts","sourceRoot":"","sources":["BingMaps.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,wCAFW,aAAa,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI7C;;;;;;;uBAbsB,uBAAuB"}
|
package/source/BingMaps.js
CHANGED
|
@@ -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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} CartoDBProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLCartoDB>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {CartoDBProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function CartoDB(props: CartoDBProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/CartoDB.js").Options | undefined;
|
|
15
|
+
cls: typeof OLCartoDB;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type CartoDBProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/CartoDB.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLCartoDB from 'ol/source/CartoDB.js';
|
|
24
|
+
//# sourceMappingURL=CartoDB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartoDB.d.ts","sourceRoot":"","sources":["CartoDB.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI5C;;;;;;;sBAbqB,sBAAsB"}
|
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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} ClusterProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLCluster>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {ClusterProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function Cluster(props: ClusterProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: ConstructorParameters<typeof OLCluster>[0];
|
|
15
|
+
cls: typeof OLCluster;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type ClusterProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: ConstructorParameters<typeof OLCluster>[0];
|
|
22
|
+
};
|
|
23
|
+
import OLCluster from 'ol/source/Cluster.js';
|
|
24
|
+
//# sourceMappingURL=Cluster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["Cluster.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;cAJ/B,qBAAqB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;;wDAQvD;;;;;cARa,qBAAqB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;;sBALlC,sBAAsB"}
|
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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} DataTileProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLDataTile>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {DataTileProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function DataTile(props: DataTileProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/DataTile.js").Options | undefined;
|
|
15
|
+
cls: typeof OLDataTile;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type DataTileProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/DataTile.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLDataTile from 'ol/source/DataTile.js';
|
|
24
|
+
//# sourceMappingURL=DataTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTile.d.ts","sourceRoot":"","sources":["DataTile.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,wCAFW,aAAa,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI7C;;;;;;;uBAbsB,uBAAuB"}
|
package/source/DataTile.js
CHANGED
|
@@ -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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} GeoTIFFProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLGeoTIFF>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {GeoTIFFProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function GeoTIFF(props: GeoTIFFProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/GeoTIFF.js").Options | undefined;
|
|
15
|
+
cls: typeof OLGeoTIFF;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type GeoTIFFProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/GeoTIFF.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLGeoTIFF from 'ol/source/GeoTIFF.js';
|
|
24
|
+
//# sourceMappingURL=GeoTIFF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoTIFF.d.ts","sourceRoot":"","sources":["GeoTIFF.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,uCAFW,YAAY,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI5C;;;;;;;sBAbqB,sBAAsB"}
|
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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} GoogleProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLGoogle>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {GoogleProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function Google(props: GoogleProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/Google.js").Options | undefined;
|
|
15
|
+
cls: typeof OLGoogle;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type GoogleProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/Google.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLGoogle from 'ol/source/Google.js';
|
|
24
|
+
//# sourceMappingURL=Google.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["Google.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,sCAFW,WAAW,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI3C;;;;;;;qBAboB,qBAAqB"}
|
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.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} IIIFProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLIIIF>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {IIIFProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function IIIF(props: IIIFProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: ConstructorParameters<typeof OLIIIF>[0];
|
|
15
|
+
cls: typeof OLIIIF;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type IIIFProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: ConstructorParameters<typeof OLIIIF>[0];
|
|
22
|
+
};
|
|
23
|
+
import OLIIIF from 'ol/source/IIIF.js';
|
|
24
|
+
//# sourceMappingURL=IIIF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IIIF.d.ts","sourceRoot":"","sources":["IIIF.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,mBAAmB"}
|
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
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} ImageProps
|
|
3
|
+
* @property {ConstructorParameters<typeof OLImage>[0]} [options] The source options.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @param {ImageProps | Object<string, any>} props The source props.
|
|
7
|
+
*/
|
|
8
|
+
export default function Image(props: ImageProps | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}): import("react").ReactElement<{
|
|
11
|
+
/**
|
|
12
|
+
* The source options.
|
|
13
|
+
*/
|
|
14
|
+
options?: import("ol/source/Image.js").Options | undefined;
|
|
15
|
+
cls: typeof OLImage;
|
|
16
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export type ImageProps = {
|
|
18
|
+
/**
|
|
19
|
+
* The source options.
|
|
20
|
+
*/
|
|
21
|
+
options?: import("ol/source/Image.js").Options | undefined;
|
|
22
|
+
};
|
|
23
|
+
import OLImage from 'ol/source/Image.js';
|
|
24
|
+
//# sourceMappingURL=Image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH;;GAEG;AACH,qCAFW,UAAU,GAAG;QAAO,MAAM,GAAE,GAAG;CAAC;;;;;;wDAI1C;;;;;;;oBAbmB,oBAAoB"}
|
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
|
}
|