mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
23 lines
518 B
TypeScript
23 lines
518 B
TypeScript
import { UtopiaMap, Layer } from "utopia-ui"
|
|
import { events, places } from "./sample-data"
|
|
|
|
function App() {
|
|
return (
|
|
<UtopiaMap center={[50.6, 15.5]} zoom={5} height='100dvh' width="100dvw">
|
|
<Layer
|
|
name='events'
|
|
markerIcon='calendar'
|
|
markerShape='square'
|
|
markerDefaultColor='#700'
|
|
data={events} />
|
|
<Layer
|
|
name='places'
|
|
markerIcon='point'
|
|
markerShape='circle'
|
|
markerDefaultColor='#007'
|
|
data={places} />
|
|
</UtopiaMap>
|
|
)
|
|
}
|
|
|
|
export default App |