@planet/maps 8.0.0 → 8.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 (95) hide show
  1. package/LICENSE +202 -0
  2. package/config.js +32 -0
  3. package/lib/Map.js +73 -0
  4. package/lib/Overlay.js +24 -0
  5. package/lib/View.js +24 -0
  6. package/lib/control/Attribution.js +24 -0
  7. package/lib/control/Control.js +24 -0
  8. package/lib/control/FullScreen.js +24 -0
  9. package/lib/control/MousePosition.js +24 -0
  10. package/lib/control/OverviewMap.js +24 -0
  11. package/lib/control/Rotate.js +24 -0
  12. package/lib/control/ScaleLine.js +24 -0
  13. package/lib/control/Zoom.js +24 -0
  14. package/lib/control/ZoomSlider.js +24 -0
  15. package/lib/control/ZoomToExtent.js +24 -0
  16. package/lib/interaction/DoubleClickZoom.js +24 -0
  17. package/lib/interaction/DragAndDrop.js +24 -0
  18. package/lib/interaction/DragBox.js +24 -0
  19. package/lib/interaction/DragPan.js +24 -0
  20. package/lib/interaction/DragRotate.js +24 -0
  21. package/lib/interaction/DragRotateAndZoom.js +28 -0
  22. package/lib/interaction/DragZoom.js +24 -0
  23. package/lib/interaction/Draw.js +24 -0
  24. package/lib/interaction/Extent.js +24 -0
  25. package/lib/interaction/Interaction.js +24 -0
  26. package/lib/interaction/KeyboardPan.js +24 -0
  27. package/lib/interaction/KeyboardZoom.js +24 -0
  28. package/lib/interaction/Link.js +24 -0
  29. package/lib/interaction/Modify.js +24 -0
  30. package/lib/interaction/MouseWheelZoom.js +24 -0
  31. package/lib/interaction/PinchRotate.js +24 -0
  32. package/lib/interaction/PinchZoom.js +24 -0
  33. package/lib/interaction/Pointer.js +24 -0
  34. package/lib/interaction/Property.js +24 -0
  35. package/lib/interaction/Select.js +24 -0
  36. package/lib/interaction/Snap.js +24 -0
  37. package/lib/interaction/Translate.js +24 -0
  38. package/lib/layer/Base.js +29 -0
  39. package/lib/layer/BaseImage.js +29 -0
  40. package/lib/layer/BaseTile.js +29 -0
  41. package/lib/layer/BaseVector.js +29 -0
  42. package/lib/layer/Graticule.js +29 -0
  43. package/lib/layer/Group.js +29 -0
  44. package/lib/layer/Heatmap.js +29 -0
  45. package/lib/layer/Image.js +29 -0
  46. package/lib/layer/Layer.js +29 -0
  47. package/lib/layer/MapboxVector.js +29 -0
  48. package/lib/layer/Tile.js +29 -0
  49. package/lib/layer/Vector.js +29 -0
  50. package/lib/layer/VectorImage.js +29 -0
  51. package/lib/layer/VectorTile.js +29 -0
  52. package/lib/layer/WebGLPoints.js +29 -0
  53. package/lib/layer/WebGLTile.js +29 -0
  54. package/lib/source/BingMaps.js +24 -0
  55. package/lib/source/CartoDB.js +24 -0
  56. package/lib/source/Cluster.js +24 -0
  57. package/lib/source/DataTile.js +24 -0
  58. package/lib/source/GeoTIFF.js +24 -0
  59. package/lib/source/IIIF.js +24 -0
  60. package/lib/source/Image.js +24 -0
  61. package/lib/source/ImageArcGISRest.js +24 -0
  62. package/lib/source/ImageCanvas.js +24 -0
  63. package/lib/source/ImageMapGuide.js +24 -0
  64. package/lib/source/ImageStatic.js +24 -0
  65. package/lib/source/ImageWMS.js +24 -0
  66. package/lib/source/OGCMapTile.js +24 -0
  67. package/lib/source/OGCVectorTile.js +24 -0
  68. package/lib/source/OSM.js +24 -0
  69. package/lib/source/Raster.js +24 -0
  70. package/lib/source/Source.js +24 -0
  71. package/lib/source/Stamen.js +24 -0
  72. package/lib/source/Tile.js +24 -0
  73. package/lib/source/TileArcGISRest.js +24 -0
  74. package/lib/source/TileDebug.js +24 -0
  75. package/lib/source/TileImage.js +24 -0
  76. package/lib/source/TileJSON.js +24 -0
  77. package/lib/source/TileWMS.js +24 -0
  78. package/lib/source/UTFGrid.js +24 -0
  79. package/lib/source/UrlTile.js +24 -0
  80. package/lib/source/Vector.js +24 -0
  81. package/lib/source/VectorTile.js +24 -0
  82. package/lib/source/WMTS.js +24 -0
  83. package/lib/source/XYZ.js +24 -0
  84. package/lib/source/Zoomify.js +24 -0
  85. package/package.json +103 -17
  86. package/readme.md +44 -35
  87. package/renderer/render.js +313 -0
  88. package/renderer/update.js +98 -0
  89. package/.npmignore +0 -2
  90. package/common.js +0 -582
  91. package/debug.js +0 -91520
  92. package/embed.js +0 -376
  93. package/explorer.js +0 -517
  94. package/ol.css +0 -241
  95. package/ol.min.js +0 -1012
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLOGCVectorTile from 'ol/source/OGCVectorTile.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const OGCVectorTile = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLOGCVectorTile, ref, ...props});
22
+ });
23
+
24
+ export default OGCVectorTile;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLOSM from 'ol/source/OSM.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const OSM = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLOSM, ref, ...props});
22
+ });
23
+
24
+ export default OSM;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLRaster from 'ol/source/Raster.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Raster = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLRaster, ref, ...props});
22
+ });
23
+
24
+ export default Raster;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLSource from 'ol/source/Source.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Source = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLSource, ref, ...props});
22
+ });
23
+
24
+ export default Source;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLStamen from 'ol/source/Stamen.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Stamen = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLStamen, ref, ...props});
22
+ });
23
+
24
+ export default Stamen;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTile from 'ol/source/Tile.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Tile = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTile, ref, ...props});
22
+ });
23
+
24
+ export default Tile;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTileArcGISRest from 'ol/source/TileArcGISRest.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const TileArcGISRest = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTileArcGISRest, ref, ...props});
22
+ });
23
+
24
+ export default TileArcGISRest;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTileDebug from 'ol/source/TileDebug.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const TileDebug = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTileDebug, ref, ...props});
22
+ });
23
+
24
+ export default TileDebug;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTileImage from 'ol/source/TileImage.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const TileImage = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTileImage, ref, ...props});
22
+ });
23
+
24
+ export default TileImage;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTileJSON from 'ol/source/TileJSON.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const TileJSON = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTileJSON, ref, ...props});
22
+ });
23
+
24
+ export default TileJSON;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLTileWMS from 'ol/source/TileWMS.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const TileWMS = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLTileWMS, ref, ...props});
22
+ });
23
+
24
+ export default TileWMS;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLUTFGrid from 'ol/source/UTFGrid.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const UTFGrid = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLUTFGrid, ref, ...props});
22
+ });
23
+
24
+ export default UTFGrid;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLUrlTile from 'ol/source/UrlTile.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const UrlTile = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLUrlTile, ref, ...props});
22
+ });
23
+
24
+ export default UrlTile;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLVector from 'ol/source/Vector.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Vector = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLVector, ref, ...props});
22
+ });
23
+
24
+ export default Vector;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLVectorTile from 'ol/source/VectorTile.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const VectorTile = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLVectorTile, ref, ...props});
22
+ });
23
+
24
+ export default VectorTile;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLWMTS from 'ol/source/WMTS.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const WMTS = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLWMTS, ref, ...props});
22
+ });
23
+
24
+ export default WMTS;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLXYZ from 'ol/source/XYZ.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const XYZ = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLXYZ, ref, ...props});
22
+ });
23
+
24
+ export default XYZ;
@@ -0,0 +1,24 @@
1
+ // This file is generated by tools/generate.js. DO NOT EDIT.
2
+ /**
3
+ * Copyright 2022 Planet Labs PBC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import OLZoomify from 'ol/source/Zoomify.js';
18
+ import {createElement, forwardRef} from 'react';
19
+
20
+ const Zoomify = forwardRef((props, ref) => {
21
+ return createElement('source', {cls: OLZoomify, ref, ...props});
22
+ });
23
+
24
+ export default Zoomify;
package/package.json CHANGED
@@ -1,26 +1,112 @@
1
1
  {
2
2
  "name": "@planet/maps",
3
- "version": "8.0.0",
4
- "description": "Custom builds of OpenLayers 3",
5
- "homepage": "https://github.com/planetlabs/maps",
6
- "repository": {
7
- "type": "git",
8
- "url": "git://github.com/planetlabs/maps.git"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/planetlabs/maps/issues"
12
- },
13
- "main": "common.js",
3
+ "version": "8.1.0",
4
+ "description": "Declarative mapping components for React",
5
+ "type": "module",
14
6
  "scripts": {
15
- "prepublish": "in-publish && make || not-in-publish"
7
+ "pretest": "npm run lint",
8
+ "test": "npm run test:rendering",
9
+ "test:unit": "vitest run -r ./tests/unit",
10
+ "lint": "eslint .",
11
+ "test:rendering": "playwright test --config=tests/rendering/playwright.config.js",
12
+ "start": "astro dev --root ./site",
13
+ "start:rendering": "vite serve --config=tests/rendering/vite.config.js",
14
+ "build": "astro build --root ./site",
15
+ "generate": "node tools/generate.js && npm run lint -- --fix",
16
+ "clean": "node tools/clean.js"
16
17
  },
17
18
  "license": "Apache-2.0",
18
- "keywords": [
19
- "openlayers",
20
- "ol3"
19
+ "files": [
20
+ "config.js",
21
+ "lib",
22
+ "renderer"
21
23
  ],
24
+ "dependencies": {
25
+ "react-reconciler": "^0.29.0"
26
+ },
22
27
  "devDependencies": {
23
- "in-publish": "2.0.0",
24
- "openlayers": "4.0.0-beta.1"
28
+ "@astrojs/mdx": "^0.16.0",
29
+ "@astrojs/react": "^2.0.2",
30
+ "@octokit/rest": "^19.0.5",
31
+ "@playwright/test": "^1.25.2",
32
+ "@types/react": "^18.0.27",
33
+ "@types/react-dom": "^18.0.10",
34
+ "astro": "^2.0.8",
35
+ "c8": "^7.12.0",
36
+ "es-main": "^1.2.0",
37
+ "eslint": "^8.32.0",
38
+ "eslint-config-planet": "^20.0.3",
39
+ "eslint-plugin-astro": "^0.23.0",
40
+ "eslint-plugin-mdx": "^2.0.5",
41
+ "eslint-plugin-react": "^7.32.1",
42
+ "fs-extra": "^11.1.0",
43
+ "import-meta-resolve": "^2.0.2",
44
+ "jsdom": "^21.0.0",
45
+ "minimist": "^1.2.6",
46
+ "mustache": "^4.2.0",
47
+ "ol": "^7.1.0",
48
+ "prop-types": "^15.8.1",
49
+ "react": "^18.2.0",
50
+ "react-dom": "^18.2.0",
51
+ "remark-html": "^15.0.2",
52
+ "remark-parse": "^10.0.1",
53
+ "semapro": "^1.1.0",
54
+ "semver": "^7.3.7",
55
+ "shiki": "^0.11.0",
56
+ "unified": "^10.1.2",
57
+ "vite": "^4.0.4",
58
+ "vitest": "^0.28.3"
59
+ },
60
+ "eslintConfig": {
61
+ "extends": [
62
+ "planet"
63
+ ],
64
+ "parserOptions": {
65
+ "ecmaVersion": "latest",
66
+ "sourceType": "module"
67
+ },
68
+ "rules": {
69
+ "import/named": "off",
70
+ "import/default": "off",
71
+ "import/no-unresolved": [
72
+ "error",
73
+ {
74
+ "ignore": [
75
+ "astro:content",
76
+ "@astrojs/*"
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ "overrides": [
82
+ {
83
+ "files": [
84
+ "*.astro"
85
+ ],
86
+ "extends": [
87
+ "plugin:astro/recommended"
88
+ ]
89
+ },
90
+ {
91
+ "files": [
92
+ "*.jsx"
93
+ ],
94
+ "extends": [
95
+ "planet/react"
96
+ ],
97
+ "rules": {
98
+ "import/named": "off"
99
+ }
100
+ },
101
+ {
102
+ "files": [
103
+ "*.mdx"
104
+ ],
105
+ "extends": [
106
+ "plugin:mdx/recommended",
107
+ "planet/react"
108
+ ]
109
+ }
110
+ ]
25
111
  }
26
112
  }