Skip to content

Commit 65a7cf3

Browse files
committed
new map attributes documentation
1 parent 797d704 commit 65a7cf3

File tree

1 file changed

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

1 file changed

+21
-2
lines changed

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,32 @@ VALUES (
8585
'TEXT',
8686
FALSE,
8787
TRUE
88-
);
88+
),
89+
(
90+
'map',
91+
'icon',
92+
'Name of the icon to use for the marker',
93+
'ICON',
94+
FALSE,
95+
TRUE
96+
),
97+
(
98+
'map',
99+
'color',
100+
'Background color of the marker on the map. Requires "icon" to be set.',
101+
'COLOR',
102+
FALSE,
103+
TRUE
104+
)
105+
;
89106
-- Insert an example usage of the map component into the example table
90107
INSERT INTO example (component, description, properties)
91108
VALUES (
92109
'map',
93110
'Basic example of a map with a marker',
94-
JSON('[{ "component": "map", "zoom": 2 }, { "title": "New Delhi", "latitude": 28.6139, "longitude": 77.2090 }]')
111+
JSON(
112+
'[{ "component": "map", "zoom": 2 }, { "title": "New Delhi", "latitude": 28.6139, "longitude": 77.2090 }]'
113+
)
95114
),
96115
(
97116
'map',

0 commit comments

Comments
 (0)