fixed examples

This commit is contained in:
Anton Tranelis 2025-08-19 21:40:25 +02:00
parent fcec0b046a
commit 3186fd85f9
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { UtopiaMap, Layer } from "utopia-ui"
import { events, places } from "./sample-data"
const itemTypeEvent = {
id: "a6dbf1a7-adf2-4ff5-8e20-d3aad66635fb",
name: "event",
show_name_input: false,
show_profile_button: false,
@ -39,6 +40,7 @@ function App() {
return (
<UtopiaMap center={[50.6, 15.5]} zoom={5} height='100dvh' width="100dvw">
<Layer
id="8b6892ea-4ca3-4b86-8060-b0371a8dd375"
name='events'
markerIcon={
{image: "calendar.svg",
@ -54,6 +56,7 @@ function App() {
itemType={itemTypeEvent}
/>
<Layer
id="eea49637-1232-42f9-aec9-77b3187d5d7c"
name='places'
markerIcon={
{image: "point.svg"}

View File

@ -5,12 +5,14 @@ function App() {
return (
<UtopiaMap center={[50.6, 15.5]} zoom={5} height='100dvh' width="100dvw">
<Layer
id="eea49637-1232-42f9-aec9-77b3187d5d7c"
name='events'
markerIcon='calendar'
markerShape='square'
markerDefaultColor='#700'
data={events} />
<Layer
id="9b880bc6-2ad0-439a-b3b6-e7907d1d824a"
name='places'
markerIcon='point'
markerShape='circle'