Skip to content

Commit 14cbbaf

Browse files
committed
add basic map example
1 parent b332159 commit 14cbbaf

File tree

1 file changed

+9
-2
lines changed
  • examples/official-site/sqlpage/migrations

1 file changed

+9
-2
lines changed

examples/official-site/sqlpage/migrations/10_map.sql

+9-2
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,18 @@ VALUES (
8989
-- Insert an example usage of the map component into the example table
9090
INSERT INTO example (component, description, properties)
9191
VALUES (
92+
'map',
93+
'Basic example of a map with a marker',
94+
JSON('[{ "component": "map", "zoom": 2 }, { "title": "New Delhi", "latitude": 28.6139, "longitude": 77.2090 }]')
95+
),
96+
(
9297
'map',
9398
'Map of Paris',
94-
JSON('[
99+
JSON(
100+
'[
95101
{ "component": "map", "title": "Paris", "zoom": 11, "latitude": 48.85, "longitude": 2.34, "height": 400 },
96102
{ "title": "Notre Dame", "latitude": 48.8530, "longitude": 2.3498, "description_md": "A beautiful cathedral.", "link": "https://en.wikipedia.org/wiki/Notre-Dame_de_Paris" },
97103
{ "title": "Eiffel Tower", "latitude": 48.8584, "longitude": 2.2945, "description_md": "A tall tower. [Wikipedia](https://en.wikipedia.org/wiki/Eiffel_Tower)" }
98-
]')
104+
]'
105+
)
99106
);

0 commit comments

Comments
 (0)