@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.
- package/package.json +1 -1
- package/readme.md +1 -23
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -10,29 +10,7 @@ Declarative mapping components
|
|
|
10
10
|
npm install @planet/maps
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
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
|
|