@planet/maps 8.0.0-dev.1666714337006 → 8.0.0-dev.1666730533438

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/lib/Map.js CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import OLMap from 'ol/Map';
16
+ import OLMap from 'ol/Map.js';
17
17
  import {Component, createElement, createRef, forwardRef} from 'react';
18
18
  import {any, func, node, object, oneOfType, shape, string} from 'prop-types';
19
19
  import {render, updateInstanceFromProps} from '../renderer/render.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planet/maps",
3
- "version": "8.0.0-dev.1666714337006",
3
+ "version": "8.0.0-dev.1666730533438",
4
4
  "description": "Declarative mapping components for React",
5
5
  "type": "module",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @planet/maps
2
2
 
3
+ ![Test Status](https://github.com/planetlabs/maps/actions/workflows/test.yml/badge.svg)
4
+
3
5
  Declarative mapping components
4
6
 
5
7
  ## Use
@@ -12,10 +14,10 @@ Import the components you need for your map. Provide an `options` prop to pass
12
14
 
13
15
  ```js
14
16
  import Map from '@planet/maps/lib/Map';
15
- import OSM from '@planet/maps/source/OSM';
16
- import ScaleLine from '@planet/maps/control/ScaleLine';
17
+ import OSM from '@planet/maps/lib/source/OSM';
18
+ import ScaleLine from '@planet/maps/lib/control/ScaleLine';
17
19
  import View from '@planet/maps/lib/View';
18
- import WebGLTile from '@planet/maps/layer/WebGLTile';
20
+ import WebGLTile from '@planet/maps/lib/layer/WebGLTile';
19
21
 
20
22
  function MyApp() {
21
23
  return (
@@ -7,7 +7,10 @@ import ReactReconciler from 'react-reconciler';
7
7
  import Source from 'ol/source/Source.js';
8
8
  import View from 'ol/View.js';
9
9
  import {CONTROL, INTERACTION, LAYER, OVERLAY, SOURCE, VIEW} from '../config.js';
10
- import {ConcurrentRoot, DefaultEventPriority} from 'react-reconciler/constants';
10
+ import {
11
+ ConcurrentRoot,
12
+ DefaultEventPriority,
13
+ } from 'react-reconciler/constants.js';
11
14
  import {
12
15
  prepareControlUpdate,
13
16
  prepareInteractionUpdate,