@planet/maps 10.3.0-dev.1735324946128 → 10.3.0-dev.1735518484139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Map.js +42 -32
- package/Overlay.js +4 -6
- package/View.js +4 -6
- package/control/Attribution.js +4 -6
- package/control/Control.js +4 -6
- package/control/FullScreen.js +4 -6
- package/control/MousePosition.js +4 -6
- package/control/OverviewMap.js +4 -6
- package/control/Rotate.js +4 -6
- package/control/ScaleLine.js +4 -6
- package/control/Zoom.js +4 -6
- package/control/ZoomSlider.js +4 -6
- package/control/ZoomToExtent.js +4 -6
- package/interaction/DblClickDragZoom.js +4 -6
- package/interaction/DoubleClickZoom.js +4 -6
- package/interaction/DragAndDrop.js +4 -6
- package/interaction/DragBox.js +4 -6
- package/interaction/DragPan.js +4 -6
- package/interaction/DragRotate.js +4 -6
- package/interaction/DragRotateAndZoom.js +4 -10
- package/interaction/DragZoom.js +4 -6
- package/interaction/Draw.js +4 -6
- package/interaction/Extent.js +4 -6
- package/interaction/Interaction.js +4 -6
- package/interaction/KeyboardPan.js +4 -6
- package/interaction/KeyboardZoom.js +4 -6
- package/interaction/Link.js +4 -6
- package/interaction/Modify.js +4 -6
- package/interaction/MouseWheelZoom.js +4 -6
- package/interaction/PinchRotate.js +4 -6
- package/interaction/PinchZoom.js +4 -6
- package/interaction/Pointer.js +4 -6
- package/interaction/Property.js +4 -6
- package/interaction/Select.js +4 -6
- package/interaction/Snap.js +4 -6
- package/interaction/Translate.js +4 -6
- package/layer/Base.js +4 -6
- package/layer/BaseImage.js +4 -6
- package/layer/BaseTile.js +4 -6
- package/layer/BaseVector.js +4 -6
- package/layer/Flow.js +4 -6
- package/layer/Graticule.js +4 -6
- package/layer/Group.js +4 -6
- package/layer/Heatmap.js +4 -6
- package/layer/Image.js +4 -6
- package/layer/Layer.js +4 -6
- package/layer/MapboxVector.js +4 -10
- package/layer/Tile.js +4 -6
- package/layer/Vector.js +4 -6
- package/layer/VectorImage.js +4 -6
- package/layer/VectorTile.js +4 -6
- package/layer/WebGLPoints.js +4 -6
- package/layer/WebGLTile.js +4 -6
- package/layer/WebGLVector.js +4 -6
- package/package.json +17 -4
- package/source/BingMaps.js +4 -6
- package/source/CartoDB.js +4 -6
- package/source/Cluster.js +4 -6
- package/source/DataTile.js +4 -6
- package/source/GeoTIFF.js +4 -6
- package/source/Google.js +4 -6
- package/source/IIIF.js +4 -6
- package/source/Image.js +4 -6
- package/source/ImageArcGISRest.js +4 -6
- package/source/ImageCanvas.js +4 -6
- package/source/ImageMapGuide.js +4 -6
- package/source/ImageStatic.js +4 -6
- package/source/ImageTile.js +4 -6
- package/source/ImageWMS.js +4 -6
- package/source/OGCMapTile.js +4 -6
- package/source/OGCVectorTile.js +4 -6
- package/source/OSM.js +4 -6
- package/source/Raster.js +4 -6
- package/source/SentinelHub.js +4 -6
- package/source/Source.js +4 -6
- package/source/StadiaMaps.js +4 -6
- package/source/Tile.js +4 -6
- package/source/TileArcGISRest.js +4 -6
- package/source/TileDebug.js +4 -6
- package/source/TileImage.js +4 -6
- package/source/TileJSON.js +4 -6
- package/source/TileWMS.js +4 -6
- package/source/UTFGrid.js +4 -6
- package/source/UrlTile.js +4 -6
- package/source/Vector.js +4 -6
- package/source/VectorTile.js +4 -6
- package/source/WMTS.js +4 -6
- package/source/XYZ.js +4 -6
- package/source/Zoomify.js +4 -6
package/interaction/Snap.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLSnap from 'ol/interaction/Snap.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('interaction', {cls: OLSnap,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Snap;
|
|
20
|
+
export default function Snap(props) {
|
|
21
|
+
return createElement('interaction', {cls: OLSnap, ...props});
|
|
22
|
+
}
|
package/interaction/Translate.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLTranslate from 'ol/interaction/Translate.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('interaction', {cls: OLTranslate,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Translate;
|
|
20
|
+
export default function Translate(props) {
|
|
21
|
+
return createElement('interaction', {cls: OLTranslate, ...props});
|
|
22
|
+
}
|
package/layer/Base.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLBase from 'ol/layer/Base.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLBase,
|
|
23
|
-
}
|
|
21
|
+
export default function Base({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLBase, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Base.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Base;
|
package/layer/BaseImage.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLBaseImage from 'ol/layer/BaseImage.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLBaseImage,
|
|
23
|
-
}
|
|
21
|
+
export default function BaseImage({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLBaseImage, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
BaseImage.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default BaseImage;
|
package/layer/BaseTile.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLBaseTile from 'ol/layer/BaseTile.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLBaseTile,
|
|
23
|
-
}
|
|
21
|
+
export default function BaseTile({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLBaseTile, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
BaseTile.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default BaseTile;
|
package/layer/BaseVector.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLBaseVector from 'ol/layer/BaseVector.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLBaseVector,
|
|
23
|
-
}
|
|
21
|
+
export default function BaseVector({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLBaseVector, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
BaseVector.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default BaseVector;
|
package/layer/Flow.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLFlow from 'ol/layer/Flow.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLFlow,
|
|
23
|
-
}
|
|
21
|
+
export default function Flow({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLFlow, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Flow.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Flow;
|
package/layer/Graticule.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLGraticule from 'ol/layer/Graticule.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLGraticule,
|
|
23
|
-
}
|
|
21
|
+
export default function Graticule({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLGraticule, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Graticule.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Graticule;
|
package/layer/Group.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLGroup from 'ol/layer/Group.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLGroup,
|
|
23
|
-
}
|
|
21
|
+
export default function Group({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLGroup, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Group.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Group;
|
package/layer/Heatmap.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLHeatmap from 'ol/layer/Heatmap.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLHeatmap,
|
|
23
|
-
}
|
|
21
|
+
export default function Heatmap({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLHeatmap, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Heatmap.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Heatmap;
|
package/layer/Image.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLImage from 'ol/layer/Image.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLImage,
|
|
23
|
-
}
|
|
21
|
+
export default function Image({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLImage, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Image.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Image;
|
package/layer/Layer.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLLayer from 'ol/layer/Layer.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLLayer,
|
|
23
|
-
}
|
|
21
|
+
export default function Layer({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLLayer, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Layer.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Layer;
|
package/layer/MapboxVector.js
CHANGED
|
@@ -16,18 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import propTypes from 'prop-types';
|
|
18
18
|
import {MapboxVectorLayer as OLMBVectorLayer} from 'ol-mapbox-style';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement(
|
|
23
|
-
|
|
24
|
-
{cls: OLMBVectorLayer, ref, ...props},
|
|
25
|
-
children,
|
|
26
|
-
);
|
|
27
|
-
});
|
|
21
|
+
export default function MapboxVector({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLMBVectorLayer, ...props}, children);
|
|
23
|
+
}
|
|
28
24
|
|
|
29
25
|
MapboxVector.propTypes = {
|
|
30
26
|
children: propTypes.node,
|
|
31
27
|
};
|
|
32
|
-
|
|
33
|
-
export default MapboxVector;
|
package/layer/Tile.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLTile from 'ol/layer/Tile.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLTile,
|
|
23
|
-
}
|
|
21
|
+
export default function Tile({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLTile, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Tile.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Tile;
|
package/layer/Vector.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLVector from 'ol/layer/Vector.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLVector,
|
|
23
|
-
}
|
|
21
|
+
export default function Vector({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLVector, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
Vector.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default Vector;
|
package/layer/VectorImage.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLVectorImage from 'ol/layer/VectorImage.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLVectorImage,
|
|
23
|
-
}
|
|
21
|
+
export default function VectorImage({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLVectorImage, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
VectorImage.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default VectorImage;
|
package/layer/VectorTile.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLVectorTile from 'ol/layer/VectorTile.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLVectorTile,
|
|
23
|
-
}
|
|
21
|
+
export default function VectorTile({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLVectorTile, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
VectorTile.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default VectorTile;
|
package/layer/WebGLPoints.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLPoints from 'ol/layer/WebGLPoints.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLWebGLPoints,
|
|
23
|
-
}
|
|
21
|
+
export default function WebGLPoints({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLWebGLPoints, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
WebGLPoints.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default WebGLPoints;
|
package/layer/WebGLTile.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLTile from 'ol/layer/WebGLTile.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLWebGLTile,
|
|
23
|
-
}
|
|
21
|
+
export default function WebGLTile({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLWebGLTile, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
WebGLTile.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default WebGLTile;
|
package/layer/WebGLVector.js
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import OLWebGLVector from 'ol/layer/WebGLVector.js';
|
|
18
18
|
import propTypes from 'prop-types';
|
|
19
|
-
import {createElement
|
|
19
|
+
import {createElement} from 'react';
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return createElement('layer', {cls: OLWebGLVector,
|
|
23
|
-
}
|
|
21
|
+
export default function WebGLVector({children, ...props}) {
|
|
22
|
+
return createElement('layer', {cls: OLWebGLVector, ...props}, children);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
25
|
WebGLVector.propTypes = {
|
|
26
26
|
children: propTypes.node,
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
export default WebGLVector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planet/maps",
|
|
3
|
-
"version": "10.3.0-dev.
|
|
3
|
+
"version": "10.3.0-dev.1735518484139",
|
|
4
4
|
"description": "Declarative mapping components for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"ol": "*",
|
|
29
29
|
"ol-mapbox-style": "*",
|
|
30
|
-
"react": "
|
|
30
|
+
"react": ">=19"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@astrojs/mdx": "^4.0.3",
|
|
@@ -100,13 +100,26 @@
|
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"files": [
|
|
103
|
-
"*.jsx"
|
|
103
|
+
"*.jsx",
|
|
104
|
+
"*.js"
|
|
104
105
|
],
|
|
105
106
|
"extends": [
|
|
106
107
|
"planet/react"
|
|
107
108
|
],
|
|
108
109
|
"rules": {
|
|
109
|
-
"import/named": "off"
|
|
110
|
+
"import/named": "off",
|
|
111
|
+
"import/default": "off",
|
|
112
|
+
"import/no-unresolved": [
|
|
113
|
+
"error",
|
|
114
|
+
{
|
|
115
|
+
"ignore": [
|
|
116
|
+
"astro:content",
|
|
117
|
+
"astro/config",
|
|
118
|
+
"@astrojs/*",
|
|
119
|
+
"@octokit/rest"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
110
123
|
}
|
|
111
124
|
},
|
|
112
125
|
{
|
package/source/BingMaps.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLBingMaps from 'ol/source/BingMaps.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLBingMaps,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default BingMaps;
|
|
20
|
+
export default function BingMaps(props) {
|
|
21
|
+
return createElement('source', {cls: OLBingMaps, ...props});
|
|
22
|
+
}
|
package/source/CartoDB.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLCartoDB from 'ol/source/CartoDB.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLCartoDB,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default CartoDB;
|
|
20
|
+
export default function CartoDB(props) {
|
|
21
|
+
return createElement('source', {cls: OLCartoDB, ...props});
|
|
22
|
+
}
|
package/source/Cluster.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLCluster from 'ol/source/Cluster.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLCluster,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Cluster;
|
|
20
|
+
export default function Cluster(props) {
|
|
21
|
+
return createElement('source', {cls: OLCluster, ...props});
|
|
22
|
+
}
|
package/source/DataTile.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLDataTile from 'ol/source/DataTile.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLDataTile,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default DataTile;
|
|
20
|
+
export default function DataTile(props) {
|
|
21
|
+
return createElement('source', {cls: OLDataTile, ...props});
|
|
22
|
+
}
|
package/source/GeoTIFF.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLGeoTIFF from 'ol/source/GeoTIFF.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLGeoTIFF,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default GeoTIFF;
|
|
20
|
+
export default function GeoTIFF(props) {
|
|
21
|
+
return createElement('source', {cls: OLGeoTIFF, ...props});
|
|
22
|
+
}
|
package/source/Google.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLGoogle from 'ol/source/Google.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLGoogle,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Google;
|
|
20
|
+
export default function Google(props) {
|
|
21
|
+
return createElement('source', {cls: OLGoogle, ...props});
|
|
22
|
+
}
|
package/source/IIIF.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLIIIF from 'ol/source/IIIF.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLIIIF,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default IIIF;
|
|
20
|
+
export default function IIIF(props) {
|
|
21
|
+
return createElement('source', {cls: OLIIIF, ...props});
|
|
22
|
+
}
|
package/source/Image.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImage from 'ol/source/Image.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImage,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default Image;
|
|
20
|
+
export default function Image(props) {
|
|
21
|
+
return createElement('source', {cls: OLImage, ...props});
|
|
22
|
+
}
|
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageArcGISRest from 'ol/source/ImageArcGISRest.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageArcGISRest,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageArcGISRest;
|
|
20
|
+
export default function ImageArcGISRest(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageArcGISRest, ...props});
|
|
22
|
+
}
|
package/source/ImageCanvas.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageCanvas from 'ol/source/ImageCanvas.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageCanvas,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageCanvas;
|
|
20
|
+
export default function ImageCanvas(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageCanvas, ...props});
|
|
22
|
+
}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageMapGuide from 'ol/source/ImageMapGuide.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageMapGuide,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageMapGuide;
|
|
20
|
+
export default function ImageMapGuide(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageMapGuide, ...props});
|
|
22
|
+
}
|
package/source/ImageStatic.js
CHANGED
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import OLImageStatic from 'ol/source/ImageStatic.js';
|
|
18
|
-
import {createElement
|
|
18
|
+
import {createElement} from 'react';
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
return createElement('source', {cls: OLImageStatic,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export default ImageStatic;
|
|
20
|
+
export default function ImageStatic(props) {
|
|
21
|
+
return createElement('source', {cls: OLImageStatic, ...props});
|
|
22
|
+
}
|