@lowdefy/docs-content 0.0.0-experimental-20260710073520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
# GoogleMaps
|
|
2
|
+
|
|
3
|
+
Interactive Google Map with markers, info windows, marker clusterers, and heatmap layer. Must be wrapped in a `GoogleMapsScript` block. Supports auto-bounding, custom map styles, and events for clicks, zoom changes, and marker interactions.
|
|
4
|
+
|
|
5
|
+
> The GoogleMaps block must be wrapped in a GoogleMapsScript block with a valid Google Maps API key. The examples on this page require a configured API key to render maps.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
- id: gm_default
|
|
9
|
+
type: GoogleMaps
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```yaml
|
|
13
|
+
- id: gm_center_paris
|
|
14
|
+
type: GoogleMaps
|
|
15
|
+
properties:
|
|
16
|
+
map:
|
|
17
|
+
center:
|
|
18
|
+
lat: 48.8566
|
|
19
|
+
lng: 2.3522
|
|
20
|
+
zoom: 14
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
- id: gm_type_satellite
|
|
25
|
+
type: GoogleMaps
|
|
26
|
+
properties:
|
|
27
|
+
map:
|
|
28
|
+
center:
|
|
29
|
+
lat: 37.7749
|
|
30
|
+
lng: -122.4194
|
|
31
|
+
zoom: 13
|
|
32
|
+
mapTypeId: satellite
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
- id: gm_no_default_ui
|
|
37
|
+
type: GoogleMaps
|
|
38
|
+
properties:
|
|
39
|
+
map:
|
|
40
|
+
center:
|
|
41
|
+
lat: 34.0522
|
|
42
|
+
lng: -118.2437
|
|
43
|
+
zoom: 10
|
|
44
|
+
disableDefaultUI: true
|
|
45
|
+
- id: gm_selective_controls
|
|
46
|
+
type: GoogleMaps
|
|
47
|
+
properties:
|
|
48
|
+
map:
|
|
49
|
+
center:
|
|
50
|
+
lat: 34.0522
|
|
51
|
+
lng: -118.2437
|
|
52
|
+
zoom: 10
|
|
53
|
+
zoomControl: false
|
|
54
|
+
streetViewControl: false
|
|
55
|
+
fullscreenControl: true
|
|
56
|
+
mapTypeControl: false
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
- id: gm_single_marker
|
|
61
|
+
type: GoogleMaps
|
|
62
|
+
properties:
|
|
63
|
+
map:
|
|
64
|
+
center:
|
|
65
|
+
lat: 48.8566
|
|
66
|
+
lng: 2.3522
|
|
67
|
+
zoom: 14
|
|
68
|
+
markers:
|
|
69
|
+
- position:
|
|
70
|
+
lat: 48.8584
|
|
71
|
+
lng: 2.2945
|
|
72
|
+
label: E
|
|
73
|
+
title: Eiffel Tower
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
- id: gm_multi_markers
|
|
78
|
+
type: GoogleMaps
|
|
79
|
+
properties:
|
|
80
|
+
map:
|
|
81
|
+
center:
|
|
82
|
+
lat: 40.7484
|
|
83
|
+
lng: -73.9857
|
|
84
|
+
zoom: 12
|
|
85
|
+
markers:
|
|
86
|
+
- position:
|
|
87
|
+
lat: 40.6892
|
|
88
|
+
lng: -74.0445
|
|
89
|
+
label: A
|
|
90
|
+
title: Statue of Liberty
|
|
91
|
+
- position:
|
|
92
|
+
lat: 40.7484
|
|
93
|
+
lng: -73.9857
|
|
94
|
+
label: B
|
|
95
|
+
title: Empire State Building
|
|
96
|
+
- position:
|
|
97
|
+
lat: 40.7589
|
|
98
|
+
lng: -73.9851
|
|
99
|
+
label: C
|
|
100
|
+
title: Times Square
|
|
101
|
+
- position:
|
|
102
|
+
lat: 40.7527
|
|
103
|
+
lng: -73.9772
|
|
104
|
+
label: D
|
|
105
|
+
title: Grand Central Terminal
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
- id: gm_clusterer_basic
|
|
110
|
+
type: GoogleMaps
|
|
111
|
+
properties:
|
|
112
|
+
map:
|
|
113
|
+
center:
|
|
114
|
+
lat: 51.51
|
|
115
|
+
lng: -0.13
|
|
116
|
+
zoom: 12
|
|
117
|
+
markerClusterers:
|
|
118
|
+
- markers:
|
|
119
|
+
- position:
|
|
120
|
+
lat: 51.5074
|
|
121
|
+
lng: -0.1278
|
|
122
|
+
- position:
|
|
123
|
+
lat: 51.5155
|
|
124
|
+
lng: -0.1419
|
|
125
|
+
- position:
|
|
126
|
+
lat: 51.5014
|
|
127
|
+
lng: -0.1419
|
|
128
|
+
- position:
|
|
129
|
+
lat: 51.5194
|
|
130
|
+
lng: -0.127
|
|
131
|
+
- position:
|
|
132
|
+
lat: 51.5033
|
|
133
|
+
lng: -0.1195
|
|
134
|
+
- id: gm_clusterer_options
|
|
135
|
+
type: GoogleMaps
|
|
136
|
+
properties:
|
|
137
|
+
map:
|
|
138
|
+
center:
|
|
139
|
+
lat: 51.51
|
|
140
|
+
lng: -0.13
|
|
141
|
+
zoom: 10
|
|
142
|
+
markerClusterers:
|
|
143
|
+
- markers:
|
|
144
|
+
- position:
|
|
145
|
+
lat: 51.5074
|
|
146
|
+
lng: -0.1278
|
|
147
|
+
- position:
|
|
148
|
+
lat: 51.5155
|
|
149
|
+
lng: -0.1419
|
|
150
|
+
- position:
|
|
151
|
+
lat: 51.5014
|
|
152
|
+
lng: -0.1419
|
|
153
|
+
- position:
|
|
154
|
+
lat: 51.5194
|
|
155
|
+
lng: -0.127
|
|
156
|
+
- position:
|
|
157
|
+
lat: 51.5033
|
|
158
|
+
lng: -0.1195
|
|
159
|
+
- position:
|
|
160
|
+
lat: 51.49
|
|
161
|
+
lng: -0.14
|
|
162
|
+
- position:
|
|
163
|
+
lat: 51.525
|
|
164
|
+
lng: -0.11
|
|
165
|
+
options:
|
|
166
|
+
averageCenter: true
|
|
167
|
+
gridSize: 60
|
|
168
|
+
minimumClusterSize: 3
|
|
169
|
+
zoomOnClick: true
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
```yaml
|
|
173
|
+
- id: gm_info_window
|
|
174
|
+
type: GoogleMaps
|
|
175
|
+
properties:
|
|
176
|
+
map:
|
|
177
|
+
center:
|
|
178
|
+
lat: -33.8568
|
|
179
|
+
lng: 151.2153
|
|
180
|
+
zoom: 15
|
|
181
|
+
markers:
|
|
182
|
+
- position:
|
|
183
|
+
lat: -33.8568
|
|
184
|
+
lng: 151.2153
|
|
185
|
+
title: Sydney Opera House
|
|
186
|
+
infoWindow:
|
|
187
|
+
position:
|
|
188
|
+
lat: -33.8568
|
|
189
|
+
lng: 151.2153
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
```yaml
|
|
193
|
+
- id: gm_auto_bounds_enabled
|
|
194
|
+
type: GoogleMaps
|
|
195
|
+
properties:
|
|
196
|
+
markers:
|
|
197
|
+
- position:
|
|
198
|
+
lat: 48.8566
|
|
199
|
+
lng: 2.3522
|
|
200
|
+
label: Paris
|
|
201
|
+
- position:
|
|
202
|
+
lat: 35.6762
|
|
203
|
+
lng: 139.6503
|
|
204
|
+
label: Tokyo
|
|
205
|
+
- position:
|
|
206
|
+
lat: -33.8688
|
|
207
|
+
lng: 151.2093
|
|
208
|
+
label: Sydney
|
|
209
|
+
- id: gm_auto_bounds_disabled
|
|
210
|
+
type: GoogleMaps
|
|
211
|
+
properties:
|
|
212
|
+
autoBounds: false
|
|
213
|
+
map:
|
|
214
|
+
center:
|
|
215
|
+
lat: 0
|
|
216
|
+
lng: 0
|
|
217
|
+
zoom: 2
|
|
218
|
+
markers:
|
|
219
|
+
- position:
|
|
220
|
+
lat: 48.8566
|
|
221
|
+
lng: 2.3522
|
|
222
|
+
- position:
|
|
223
|
+
lat: 35.6762
|
|
224
|
+
lng: 139.6503
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
```yaml
|
|
228
|
+
- id: gm_custom_style_tall
|
|
229
|
+
type: GoogleMaps
|
|
230
|
+
properties:
|
|
231
|
+
style:
|
|
232
|
+
height: 500px
|
|
233
|
+
map:
|
|
234
|
+
center:
|
|
235
|
+
lat: 40.7128
|
|
236
|
+
lng: -74.006
|
|
237
|
+
zoom: 12
|
|
238
|
+
- id: gm_custom_style_compact
|
|
239
|
+
type: GoogleMaps
|
|
240
|
+
properties:
|
|
241
|
+
style:
|
|
242
|
+
height: 200px
|
|
243
|
+
map:
|
|
244
|
+
center:
|
|
245
|
+
lat: 51.5074
|
|
246
|
+
lng: -0.1278
|
|
247
|
+
zoom: 10
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
```yaml
|
|
251
|
+
- id: gm_heatmap
|
|
252
|
+
type: GoogleMaps
|
|
253
|
+
properties:
|
|
254
|
+
map:
|
|
255
|
+
center:
|
|
256
|
+
lat: 37.775
|
|
257
|
+
lng: -122.434
|
|
258
|
+
zoom: 13
|
|
259
|
+
heatmap:
|
|
260
|
+
data:
|
|
261
|
+
- lat: 37.782
|
|
262
|
+
lng: -122.447
|
|
263
|
+
weight: 3
|
|
264
|
+
- lat: 37.782
|
|
265
|
+
lng: -122.445
|
|
266
|
+
weight: 2
|
|
267
|
+
- lat: 37.782
|
|
268
|
+
lng: -122.443
|
|
269
|
+
weight: 5
|
|
270
|
+
- lat: 37.78
|
|
271
|
+
lng: -122.44
|
|
272
|
+
weight: 1
|
|
273
|
+
- lat: 37.779
|
|
274
|
+
lng: -122.438
|
|
275
|
+
weight: 4
|
|
276
|
+
- lat: 37.774
|
|
277
|
+
lng: -122.43
|
|
278
|
+
weight: 2
|
|
279
|
+
- lat: 37.77
|
|
280
|
+
lng: -122.425
|
|
281
|
+
weight: 3
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
```yaml
|
|
285
|
+
- id: gm_events_click
|
|
286
|
+
type: GoogleMaps
|
|
287
|
+
properties:
|
|
288
|
+
map:
|
|
289
|
+
center:
|
|
290
|
+
lat: 51.5074
|
|
291
|
+
lng: -0.1278
|
|
292
|
+
zoom: 12
|
|
293
|
+
markers:
|
|
294
|
+
- position:
|
|
295
|
+
lat: 51.5074
|
|
296
|
+
lng: -0.1278
|
|
297
|
+
label: A
|
|
298
|
+
title: Central London
|
|
299
|
+
events:
|
|
300
|
+
onClick:
|
|
301
|
+
- id: gm_click_action
|
|
302
|
+
type: DisplayMessage
|
|
303
|
+
params:
|
|
304
|
+
content: Map clicked!
|
|
305
|
+
duration: 3
|
|
306
|
+
onMarkerClick:
|
|
307
|
+
- id: gm_marker_click_action
|
|
308
|
+
type: DisplayMessage
|
|
309
|
+
params:
|
|
310
|
+
content: Marker clicked!
|
|
311
|
+
duration: 3
|
|
312
|
+
onZoomChanged:
|
|
313
|
+
- id: gm_zoom_action
|
|
314
|
+
type: SetState
|
|
315
|
+
params:
|
|
316
|
+
lastZoomEvent: zoom level changed
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
```yaml
|
|
320
|
+
- id: gm_tailwind_rounded
|
|
321
|
+
type: GoogleMaps
|
|
322
|
+
class: rounded-xl overflow-hidden shadow-lg
|
|
323
|
+
properties:
|
|
324
|
+
map:
|
|
325
|
+
center:
|
|
326
|
+
lat: 48.8566
|
|
327
|
+
lng: 2.3522
|
|
328
|
+
zoom: 13
|
|
329
|
+
- id: gm_tailwind_bordered
|
|
330
|
+
type: GoogleMaps
|
|
331
|
+
class: rounded-lg border-2 border-blue-400 shadow-md
|
|
332
|
+
properties:
|
|
333
|
+
map:
|
|
334
|
+
center:
|
|
335
|
+
lat: 35.6762
|
|
336
|
+
lng: 139.6503
|
|
337
|
+
zoom: 12
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
```yaml
|
|
341
|
+
- id: gm_css_key_element
|
|
342
|
+
type: GoogleMaps
|
|
343
|
+
class:
|
|
344
|
+
element: rounded-2xl overflow-hidden shadow-xl border border-gray-200
|
|
345
|
+
properties:
|
|
346
|
+
map:
|
|
347
|
+
center:
|
|
348
|
+
lat: 40.4168
|
|
349
|
+
lng: -3.7038
|
|
350
|
+
zoom: 13
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Coffee Shop Locations
|
|
354
|
+
|
|
355
|
+
Find your nearest branch. Click a marker for details.
|
|
356
|
+
|
|
357
|
+
```yaml
|
|
358
|
+
- id: gm_store_locator_title
|
|
359
|
+
type: Title
|
|
360
|
+
properties:
|
|
361
|
+
content: Coffee Shop Locations
|
|
362
|
+
level: 4
|
|
363
|
+
- id: gm_store_locator_description
|
|
364
|
+
type: Paragraph
|
|
365
|
+
properties:
|
|
366
|
+
content: Find your nearest branch. Click a marker for details.
|
|
367
|
+
- id: gm_store_locator_map
|
|
368
|
+
type: GoogleMaps
|
|
369
|
+
class: rounded-lg overflow-hidden shadow-md
|
|
370
|
+
properties:
|
|
371
|
+
style:
|
|
372
|
+
height: 400px
|
|
373
|
+
map:
|
|
374
|
+
center:
|
|
375
|
+
lat: 40.758
|
|
376
|
+
lng: -73.9855
|
|
377
|
+
zoom: 14
|
|
378
|
+
markers:
|
|
379
|
+
- position:
|
|
380
|
+
lat: 40.7614
|
|
381
|
+
lng: -73.9776
|
|
382
|
+
label: "1"
|
|
383
|
+
title: 5th Avenue Branch
|
|
384
|
+
- position:
|
|
385
|
+
lat: 40.7549
|
|
386
|
+
lng: -73.984
|
|
387
|
+
label: "2"
|
|
388
|
+
title: Times Square Branch
|
|
389
|
+
- position:
|
|
390
|
+
lat: 40.7527
|
|
391
|
+
lng: -73.9772
|
|
392
|
+
label: "3"
|
|
393
|
+
title: Grand Central Branch
|
|
394
|
+
events:
|
|
395
|
+
onMarkerClick:
|
|
396
|
+
- id: gm_store_locator_marker_click
|
|
397
|
+
type: DisplayMessage
|
|
398
|
+
params:
|
|
399
|
+
content: Loading branch details...
|
|
400
|
+
duration: 2
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
Active Deliveries
|
|
404
|
+
|
|
405
|
+
```yaml
|
|
406
|
+
- id: gm_delivery_header
|
|
407
|
+
type: Box
|
|
408
|
+
layout:
|
|
409
|
+
gap: 16
|
|
410
|
+
align: center
|
|
411
|
+
blocks:
|
|
412
|
+
- id: gm_delivery_title
|
|
413
|
+
type: Title
|
|
414
|
+
layout:
|
|
415
|
+
flex: 1 1 0
|
|
416
|
+
properties:
|
|
417
|
+
content: Active Deliveries
|
|
418
|
+
level: 4
|
|
419
|
+
- id: gm_delivery_count
|
|
420
|
+
type: Tag
|
|
421
|
+
layout:
|
|
422
|
+
flex: 0 0 auto
|
|
423
|
+
properties:
|
|
424
|
+
title: 4 in transit
|
|
425
|
+
color: processing
|
|
426
|
+
- id: gm_delivery_map
|
|
427
|
+
type: GoogleMaps
|
|
428
|
+
class: rounded-lg overflow-hidden border border-gray-200
|
|
429
|
+
properties:
|
|
430
|
+
style:
|
|
431
|
+
height: 450px
|
|
432
|
+
map:
|
|
433
|
+
center:
|
|
434
|
+
lat: 51.51
|
|
435
|
+
lng: -0.12
|
|
436
|
+
zoom: 12
|
|
437
|
+
markers:
|
|
438
|
+
- position:
|
|
439
|
+
lat: 51.5225
|
|
440
|
+
lng: -0.0835
|
|
441
|
+
label: "1"
|
|
442
|
+
title: "Order #1042 - En route"
|
|
443
|
+
- position:
|
|
444
|
+
lat: 51.5074
|
|
445
|
+
lng: -0.1278
|
|
446
|
+
label: "2"
|
|
447
|
+
title: "Order #1043 - Arriving soon"
|
|
448
|
+
- position:
|
|
449
|
+
lat: 51.4975
|
|
450
|
+
lng: -0.1357
|
|
451
|
+
label: "3"
|
|
452
|
+
title: "Order #1044 - Picked up"
|
|
453
|
+
- position:
|
|
454
|
+
lat: 51.5155
|
|
455
|
+
lng: -0.1419
|
|
456
|
+
label: "4"
|
|
457
|
+
title: "Order #1045 - En route"
|
|
458
|
+
events:
|
|
459
|
+
onMarkerClick:
|
|
460
|
+
- id: gm_delivery_marker_action
|
|
461
|
+
type: DisplayMessage
|
|
462
|
+
params:
|
|
463
|
+
content: Opening delivery details...
|
|
464
|
+
duration: 2
|
|
465
|
+
- id: gm_delivery_legend
|
|
466
|
+
type: Box
|
|
467
|
+
layout:
|
|
468
|
+
gap: 16
|
|
469
|
+
blocks:
|
|
470
|
+
- id: gm_delivery_tag1
|
|
471
|
+
type: Tag
|
|
472
|
+
properties:
|
|
473
|
+
title: En route
|
|
474
|
+
color: blue
|
|
475
|
+
- id: gm_delivery_tag2
|
|
476
|
+
type: Tag
|
|
477
|
+
properties:
|
|
478
|
+
title: Arriving soon
|
|
479
|
+
color: green
|
|
480
|
+
- id: gm_delivery_tag3
|
|
481
|
+
type: Tag
|
|
482
|
+
properties:
|
|
483
|
+
title: Picked up
|
|
484
|
+
color: orange
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
| Property | Type | Default | Description |
|
|
488
|
+
| --- | --- | --- | --- |
|
|
489
|
+
| `autoBounds` | boolean | `true` | Automatically fit the map bounds to include all markers, clusterers, and info windows. |
|
|
490
|
+
| `map` | object | - | Map settings object. |
|
|
491
|
+
| `map.center` | object | - | A coordinate position object by which to center the map. |
|
|
492
|
+
| `map.center.lat` | number | - | Lateral coordinate. |
|
|
493
|
+
| `map.center.lng` | number | - | Longitudinal coordinate. |
|
|
494
|
+
| `map.zoom` | number | - | Map zoom level. |
|
|
495
|
+
| `map.options` | object | - | Map options. See [Google Maps MapOptions](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions). |
|
|
496
|
+
| `heatmap` | object | - | Add a heatmap layer. This will automatically load the visualization library. See [heatmap options](https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions). |
|
|
497
|
+
| `heatmap.data` | array | - | A list of heatmap data points. |
|
|
498
|
+
| `heatmap.data.$.lat` | number | - | Lateral coordinate. |
|
|
499
|
+
| `heatmap.data.$.lng` | number | - | Longitudinal coordinate. |
|
|
500
|
+
| `heatmap.data.$.weight` | number | - | Item weight on heatmap. |
|
|
501
|
+
| `markers` | array | - | A list of markers with marker options. See [Google Maps Markers](https://developers.google.com/maps/documentation/javascript/markers). |
|
|
502
|
+
| `markers.$.position` | object | - | |
|
|
503
|
+
| `markers.$.position.lat` | number | - | Lateral coordinate. |
|
|
504
|
+
| `markers.$.position.lng` | number | - | Longitudinal coordinate. |
|
|
505
|
+
| `markers.$.label` | string | - | Label displayed on marker. |
|
|
506
|
+
| `markers.$.title` | string | - | Marker title shown on hover. |
|
|
507
|
+
| `markerClusterers` | array | - | A list of marker clusterers with marker clusterer options. |
|
|
508
|
+
| `markerClusterers.$.markers` | array | - | A list of markers with marker options. |
|
|
509
|
+
| `markerClusterers.$.markers.$.position` | object | - | |
|
|
510
|
+
| `markerClusterers.$.markers.$.position.lat` | number | - | Lateral coordinate. |
|
|
511
|
+
| `markerClusterers.$.markers.$.position.lng` | number | - | Longitudinal coordinate. |
|
|
512
|
+
| `markerClusterers.$.markers.$.label` | string | - | Label displayed on marker. |
|
|
513
|
+
| `markerClusterers.$.options` | object | - | Marker clusterer options. See [MarkerClusterer](https://react-google-maps-api-docs.netlify.app/#markerclusterer). |
|
|
514
|
+
| `markerClusterers.$.options.averageCenter` | boolean | - | Whether the position of a cluster marker should be the average position of all markers in the cluster. |
|
|
515
|
+
| `markerClusterers.$.options.gridSize` | number | - | The grid size of a cluster in pixels. |
|
|
516
|
+
| `markerClusterers.$.options.maxZoom` | number | - | The maximum zoom level at which clustering is enabled. |
|
|
517
|
+
| `markerClusterers.$.options.minimumClusterSize` | number | - | The minimum number of markers needed to form a cluster. |
|
|
518
|
+
| `markerClusterers.$.options.styles` | array | - | Styles of the cluster markers to be used. |
|
|
519
|
+
| `markerClusterers.$.options.zoomOnClick` | boolean | - | Whether to zoom the map when a cluster marker is clicked. |
|
|
520
|
+
| `infoWindow` | object | - | Info window options. See [InfoWindowOptions](https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions). |
|
|
521
|
+
| `infoWindow.visible` | boolean | - | When visible is true, blocks inside the infoWindow content area will be rendered. |
|
|
522
|
+
| `infoWindow.position` | object | - | |
|
|
523
|
+
| `infoWindow.position.lat` | number | - | Lateral coordinate. |
|
|
524
|
+
| `infoWindow.position.lng` | number | - | Longitudinal coordinate. |
|
|
525
|
+
|
|
526
|
+
| Event | Event Data | Description |
|
|
527
|
+
| --- | --- | --- |
|
|
528
|
+
| `onBoundsChanged` | \- | Trigger actions when the bounds of the map are changed. |
|
|
529
|
+
| `onCenterChanged` | \- | Trigger actions when the center of the map is changed. |
|
|
530
|
+
| `onClick` | \- | Trigger actions when the map is clicked. |
|
|
531
|
+
| `onClusterClick` | \- | Trigger actions when a marker cluster is clicked. |
|
|
532
|
+
| `onMarkerClick` | \- | Trigger actions when a marker is clicked. |
|
|
533
|
+
| `onZoomChanged` | \- | Trigger actions when the zoom on the map is changed. |
|
|
534
|
+
| `onInfoWindowCloseClick` | \- | Trigger actions when the info window close button is clicked. |
|
|
535
|
+
| `onInfoWindowPositionChanged` | \- | Trigger actions when the info window position changes. |
|
|
536
|
+
| `onLoad` | \- | Trigger actions when the map is loaded. |
|
|
537
|
+
|
|
538
|
+
| Key | Target |
|
|
539
|
+
| --- | --- |
|
|
540
|
+
| `/block` | Outer block wrapper (always available). |
|
|
541
|
+
| `/element` | The map container element. |
|
|
542
|
+
|
|
543
|
+
| Slot | Description |
|
|
544
|
+
| --- | --- |
|
|
545
|
+
| `content` | Marker blocks on the map. |
|
|
546
|
+
| `infoWindow` | Info window popup content. |
|