@planet/maps 8.0.0-dev.1675900981841 → 8.0.0-dev.1675901329705

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 (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +1 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planet/maps",
3
- "version": "8.0.0-dev.1675900981841",
3
+ "version": "8.0.0-dev.1675901329705",
4
4
  "description": "Declarative mapping components for React",
5
5
  "type": "module",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -10,29 +10,7 @@ Declarative mapping components
10
10
  npm install @planet/maps
11
11
  ```
12
12
 
13
- Import the components you need for your map. Provide an `options` prop to pass to the underlying OpenLayers constructor. Provide other props for values that you want to update with state changes.
14
-
15
- ```js
16
- import Map from '@planet/maps/lib/Map';
17
- import OSM from '@planet/maps/lib/source/OSM';
18
- import ScaleLine from '@planet/maps/lib/control/ScaleLine';
19
- import View from '@planet/maps/lib/View';
20
- import WebGLTile from '@planet/maps/lib/layer/WebGLTile';
21
-
22
- function MyApp() {
23
- return (
24
- <Map style={{width: '100%', height: '100%'}}>
25
- <View options={{center: [0, 0], zoom: 1}} />
26
- <WebGLTile>
27
- <OSM />
28
- </WebGLTile>
29
- <ScaleLine />
30
- </Map>
31
- );
32
- }
33
- ```
34
-
35
- You can also listen to any events on the map, view, controls, interactions, layers, or sources; use `ref`s to get access to the underlying OpenLayers instances; and more.
13
+ See the [planetlabs.github.io/maps](https://planetlabs.github.io/maps/) website for more details and examples using the library.
36
14
 
37
15
  ## Background
38
16