Merge pull request #68 from utopia-os/antontranelis-patch-2

docs(docu): cleanup examples
This commit is contained in:
antontranelis 2025-01-24 12:31:25 +00:00 committed by GitHub
commit ecab4ed3fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
31 changed files with 7 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -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
```

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB