mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Merge pull request #68 from utopia-os/antontranelis-patch-2
docs(docu): cleanup examples
This commit is contained in:
commit
ecab4ed3fb
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
@ -1,6 +1,6 @@
|
||||
# Tutorial 2: Static Layers
|
||||
|
||||
In [Tutorial 1](/j2dJaA3gw) we learnd how we create a basic map app with [utopia-ui](https://github.com/utopia-os/utopia-ui). Now we add some static layer.
|
||||
In [Tutorial 1](../1-basic-map) we learnd how we create a basic map app with [utopia-ui](https://github.com/utopia-os/utopia-ui). Now we add some static layer.
|
||||
|
||||
First we put some sample data in a new file called `src/sample-data.js`
|
||||
|
||||
@ -53,4 +53,10 @@ and than we create our two `<Layer>` inside of our `<UtopiaMap>` component
|
||||
markerDefaultColor='#007'
|
||||
data={places} />
|
||||
</UtopiaMap>
|
||||
```
|
||||
|
||||
And we see our map with two layers:
|
||||
|
||||
```shell=
|
||||
npm run dev
|
||||
```
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Loading…
x
Reference in New Issue
Block a user