@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,607 @@
|
|
|
1
|
+
# GoogleMapsHeatmap
|
|
2
|
+
|
|
3
|
+
Google Map with a heatmap visualization layer for displaying data density. Must be wrapped in a `GoogleMapsScript` block with `libraries: [visualization]`. Supports weighted data points, configurable radius and opacity, markers, and info windows.
|
|
4
|
+
|
|
5
|
+
> The GoogleMapsHeatmap block must be wrapped in a GoogleMapsScript block with a valid Google Maps API key and the visualization library. The examples on this page require a configured API key to render maps.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
- id: heatmap_basic
|
|
9
|
+
type: GoogleMapsHeatmap
|
|
10
|
+
properties:
|
|
11
|
+
map:
|
|
12
|
+
center:
|
|
13
|
+
lat: 37.775
|
|
14
|
+
lng: -122.434
|
|
15
|
+
zoom: 13
|
|
16
|
+
heatmap:
|
|
17
|
+
data:
|
|
18
|
+
- lat: 37.782
|
|
19
|
+
lng: -122.447
|
|
20
|
+
- lat: 37.782
|
|
21
|
+
lng: -122.445
|
|
22
|
+
- lat: 37.782
|
|
23
|
+
lng: -122.443
|
|
24
|
+
- lat: 37.784
|
|
25
|
+
lng: -122.441
|
|
26
|
+
- lat: 37.786
|
|
27
|
+
lng: -122.439
|
|
28
|
+
- lat: 37.786
|
|
29
|
+
lng: -122.435
|
|
30
|
+
- lat: 37.77
|
|
31
|
+
lng: -122.432
|
|
32
|
+
- lat: 37.768
|
|
33
|
+
lng: -122.43
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```yaml
|
|
37
|
+
- id: heatmap_zoomed_out
|
|
38
|
+
type: GoogleMapsHeatmap
|
|
39
|
+
properties:
|
|
40
|
+
map:
|
|
41
|
+
center:
|
|
42
|
+
lat: 51.509
|
|
43
|
+
lng: -0.118
|
|
44
|
+
zoom: 10
|
|
45
|
+
heatmap:
|
|
46
|
+
data:
|
|
47
|
+
- lat: 51.512
|
|
48
|
+
lng: -0.091
|
|
49
|
+
- lat: 51.507
|
|
50
|
+
lng: -0.076
|
|
51
|
+
- lat: 51.503
|
|
52
|
+
lng: -0.119
|
|
53
|
+
- lat: 51.515
|
|
54
|
+
lng: -0.142
|
|
55
|
+
- id: heatmap_zoomed_in
|
|
56
|
+
type: GoogleMapsHeatmap
|
|
57
|
+
properties:
|
|
58
|
+
map:
|
|
59
|
+
center:
|
|
60
|
+
lat: 51.509
|
|
61
|
+
lng: -0.118
|
|
62
|
+
zoom: 15
|
|
63
|
+
heatmap:
|
|
64
|
+
data:
|
|
65
|
+
- lat: 51.512
|
|
66
|
+
lng: -0.091
|
|
67
|
+
- lat: 51.507
|
|
68
|
+
lng: -0.076
|
|
69
|
+
- lat: 51.503
|
|
70
|
+
lng: -0.119
|
|
71
|
+
- lat: 51.515
|
|
72
|
+
lng: -0.142
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
```yaml
|
|
76
|
+
- id: heatmap_map_options
|
|
77
|
+
type: GoogleMapsHeatmap
|
|
78
|
+
properties:
|
|
79
|
+
map:
|
|
80
|
+
center:
|
|
81
|
+
lat: 40.7128
|
|
82
|
+
lng: -74.006
|
|
83
|
+
zoom: 12
|
|
84
|
+
options:
|
|
85
|
+
mapTypeId: satellite
|
|
86
|
+
disableDefaultUI: true
|
|
87
|
+
heatmap:
|
|
88
|
+
data:
|
|
89
|
+
- lat: 40.7128
|
|
90
|
+
lng: -74.006
|
|
91
|
+
- lat: 40.72
|
|
92
|
+
lng: -73.998
|
|
93
|
+
- lat: 40.706
|
|
94
|
+
lng: -74.01
|
|
95
|
+
- lat: 40.718
|
|
96
|
+
lng: -73.99
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```yaml
|
|
100
|
+
- id: heatmap_weighted
|
|
101
|
+
type: GoogleMapsHeatmap
|
|
102
|
+
properties:
|
|
103
|
+
autoBounds: false
|
|
104
|
+
map:
|
|
105
|
+
center:
|
|
106
|
+
lat: 51.509
|
|
107
|
+
lng: -0.118
|
|
108
|
+
zoom: 13
|
|
109
|
+
heatmap:
|
|
110
|
+
data:
|
|
111
|
+
- location:
|
|
112
|
+
lat: 51.512
|
|
113
|
+
lng: -0.091
|
|
114
|
+
weight: 10
|
|
115
|
+
- location:
|
|
116
|
+
lat: 51.507
|
|
117
|
+
lng: -0.076
|
|
118
|
+
weight: 5
|
|
119
|
+
- location:
|
|
120
|
+
lat: 51.503
|
|
121
|
+
lng: -0.119
|
|
122
|
+
weight: 8
|
|
123
|
+
- location:
|
|
124
|
+
lat: 51.515
|
|
125
|
+
lng: -0.142
|
|
126
|
+
weight: 3
|
|
127
|
+
- location:
|
|
128
|
+
lat: 51.52
|
|
129
|
+
lng: -0.105
|
|
130
|
+
weight: 7
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```yaml
|
|
134
|
+
- id: heatmap_radius_small
|
|
135
|
+
type: GoogleMapsHeatmap
|
|
136
|
+
properties:
|
|
137
|
+
map:
|
|
138
|
+
center:
|
|
139
|
+
lat: 40.7128
|
|
140
|
+
lng: -74.006
|
|
141
|
+
zoom: 12
|
|
142
|
+
heatmap:
|
|
143
|
+
radius: 15
|
|
144
|
+
data:
|
|
145
|
+
- lat: 40.7128
|
|
146
|
+
lng: -74.006
|
|
147
|
+
- lat: 40.72
|
|
148
|
+
lng: -73.998
|
|
149
|
+
- lat: 40.706
|
|
150
|
+
lng: -74.01
|
|
151
|
+
- lat: 40.718
|
|
152
|
+
lng: -73.99
|
|
153
|
+
- lat: 40.71
|
|
154
|
+
lng: -74.015
|
|
155
|
+
- id: heatmap_radius_large
|
|
156
|
+
type: GoogleMapsHeatmap
|
|
157
|
+
properties:
|
|
158
|
+
map:
|
|
159
|
+
center:
|
|
160
|
+
lat: 40.7128
|
|
161
|
+
lng: -74.006
|
|
162
|
+
zoom: 12
|
|
163
|
+
heatmap:
|
|
164
|
+
radius: 50
|
|
165
|
+
data:
|
|
166
|
+
- lat: 40.7128
|
|
167
|
+
lng: -74.006
|
|
168
|
+
- lat: 40.72
|
|
169
|
+
lng: -73.998
|
|
170
|
+
- lat: 40.706
|
|
171
|
+
lng: -74.01
|
|
172
|
+
- lat: 40.718
|
|
173
|
+
lng: -73.99
|
|
174
|
+
- lat: 40.71
|
|
175
|
+
lng: -74.015
|
|
176
|
+
- id: heatmap_opacity_low
|
|
177
|
+
type: GoogleMapsHeatmap
|
|
178
|
+
properties:
|
|
179
|
+
map:
|
|
180
|
+
center:
|
|
181
|
+
lat: 34.0522
|
|
182
|
+
lng: -118.2437
|
|
183
|
+
zoom: 12
|
|
184
|
+
heatmap:
|
|
185
|
+
opacity: 0.3
|
|
186
|
+
data:
|
|
187
|
+
- lat: 34.0522
|
|
188
|
+
lng: -118.2437
|
|
189
|
+
- lat: 34.06
|
|
190
|
+
lng: -118.25
|
|
191
|
+
- lat: 34.048
|
|
192
|
+
lng: -118.235
|
|
193
|
+
- lat: 34.055
|
|
194
|
+
lng: -118.26
|
|
195
|
+
- id: heatmap_opacity_full
|
|
196
|
+
type: GoogleMapsHeatmap
|
|
197
|
+
properties:
|
|
198
|
+
map:
|
|
199
|
+
center:
|
|
200
|
+
lat: 34.0522
|
|
201
|
+
lng: -118.2437
|
|
202
|
+
zoom: 12
|
|
203
|
+
heatmap:
|
|
204
|
+
opacity: 1
|
|
205
|
+
data:
|
|
206
|
+
- lat: 34.0522
|
|
207
|
+
lng: -118.2437
|
|
208
|
+
- lat: 34.06
|
|
209
|
+
lng: -118.25
|
|
210
|
+
- lat: 34.048
|
|
211
|
+
lng: -118.235
|
|
212
|
+
- lat: 34.055
|
|
213
|
+
lng: -118.26
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
- id: heatmap_no_auto_bounds
|
|
218
|
+
type: GoogleMapsHeatmap
|
|
219
|
+
properties:
|
|
220
|
+
autoBounds: false
|
|
221
|
+
map:
|
|
222
|
+
center:
|
|
223
|
+
lat: 35.6762
|
|
224
|
+
lng: 139.6503
|
|
225
|
+
zoom: 11
|
|
226
|
+
heatmap:
|
|
227
|
+
data:
|
|
228
|
+
- lat: 35.6812
|
|
229
|
+
lng: 139.7671
|
|
230
|
+
- lat: 35.6595
|
|
231
|
+
lng: 139.7005
|
|
232
|
+
- lat: 35.6938
|
|
233
|
+
lng: 139.7034
|
|
234
|
+
- lat: 35.6586
|
|
235
|
+
lng: 139.7454
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
```yaml
|
|
239
|
+
- id: heatmap_with_markers
|
|
240
|
+
type: GoogleMapsHeatmap
|
|
241
|
+
properties:
|
|
242
|
+
map:
|
|
243
|
+
center:
|
|
244
|
+
lat: 48.8566
|
|
245
|
+
lng: 2.3522
|
|
246
|
+
zoom: 13
|
|
247
|
+
markers:
|
|
248
|
+
- position:
|
|
249
|
+
lat: 48.8584
|
|
250
|
+
lng: 2.2945
|
|
251
|
+
label: A
|
|
252
|
+
- position:
|
|
253
|
+
lat: 48.8606
|
|
254
|
+
lng: 2.3376
|
|
255
|
+
label: B
|
|
256
|
+
- position:
|
|
257
|
+
lat: 48.853
|
|
258
|
+
lng: 2.3499
|
|
259
|
+
label: C
|
|
260
|
+
heatmap:
|
|
261
|
+
radius: 25
|
|
262
|
+
data:
|
|
263
|
+
- lat: 48.8584
|
|
264
|
+
lng: 2.2945
|
|
265
|
+
- lat: 48.8606
|
|
266
|
+
lng: 2.3376
|
|
267
|
+
- lat: 48.853
|
|
268
|
+
lng: 2.3499
|
|
269
|
+
- lat: 48.862
|
|
270
|
+
lng: 2.332
|
|
271
|
+
- lat: 48.8566
|
|
272
|
+
lng: 2.3522
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
```yaml
|
|
276
|
+
- id: heatmap_custom_style
|
|
277
|
+
type: GoogleMapsHeatmap
|
|
278
|
+
properties:
|
|
279
|
+
style:
|
|
280
|
+
width: 100%
|
|
281
|
+
height: 500px
|
|
282
|
+
map:
|
|
283
|
+
center:
|
|
284
|
+
lat: -33.8688
|
|
285
|
+
lng: 151.2093
|
|
286
|
+
zoom: 12
|
|
287
|
+
heatmap:
|
|
288
|
+
radius: 30
|
|
289
|
+
data:
|
|
290
|
+
- lat: -33.8688
|
|
291
|
+
lng: 151.2093
|
|
292
|
+
- lat: -33.856
|
|
293
|
+
lng: 151.2153
|
|
294
|
+
- lat: -33.875
|
|
295
|
+
lng: 151.2
|
|
296
|
+
- lat: -33.861
|
|
297
|
+
lng: 151.21
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
```yaml
|
|
301
|
+
- id: heatmap_events
|
|
302
|
+
type: GoogleMapsHeatmap
|
|
303
|
+
properties:
|
|
304
|
+
map:
|
|
305
|
+
center:
|
|
306
|
+
lat: 48.8566
|
|
307
|
+
lng: 2.3522
|
|
308
|
+
zoom: 13
|
|
309
|
+
markers:
|
|
310
|
+
- position:
|
|
311
|
+
lat: 48.8584
|
|
312
|
+
lng: 2.2945
|
|
313
|
+
label: A
|
|
314
|
+
- position:
|
|
315
|
+
lat: 48.8606
|
|
316
|
+
lng: 2.3376
|
|
317
|
+
label: B
|
|
318
|
+
heatmap:
|
|
319
|
+
data:
|
|
320
|
+
- lat: 48.8584
|
|
321
|
+
lng: 2.2945
|
|
322
|
+
- lat: 48.8606
|
|
323
|
+
lng: 2.3376
|
|
324
|
+
- lat: 48.8566
|
|
325
|
+
lng: 2.3522
|
|
326
|
+
events:
|
|
327
|
+
onClick:
|
|
328
|
+
- id: heatmap_click_display
|
|
329
|
+
type: DisplayMessage
|
|
330
|
+
params:
|
|
331
|
+
content: Map clicked!
|
|
332
|
+
status: info
|
|
333
|
+
onMarkerClick:
|
|
334
|
+
- id: heatmap_marker_click_msg
|
|
335
|
+
type: DisplayMessage
|
|
336
|
+
params:
|
|
337
|
+
content: Marker clicked!
|
|
338
|
+
status: success
|
|
339
|
+
onZoomChanged:
|
|
340
|
+
- id: heatmap_zoom_set_state
|
|
341
|
+
type: SetState
|
|
342
|
+
params:
|
|
343
|
+
currentZoom:
|
|
344
|
+
_event: zoom
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
```yaml
|
|
348
|
+
- id: heatmap_css_element
|
|
349
|
+
type: GoogleMapsHeatmap
|
|
350
|
+
class:
|
|
351
|
+
element: rounded-xl shadow-lg border-2 border-blue-300
|
|
352
|
+
properties:
|
|
353
|
+
map:
|
|
354
|
+
center:
|
|
355
|
+
lat: 37.775
|
|
356
|
+
lng: -122.434
|
|
357
|
+
zoom: 13
|
|
358
|
+
heatmap:
|
|
359
|
+
data:
|
|
360
|
+
- lat: 37.782
|
|
361
|
+
lng: -122.447
|
|
362
|
+
- lat: 37.782
|
|
363
|
+
lng: -122.445
|
|
364
|
+
- lat: 37.784
|
|
365
|
+
lng: -122.441
|
|
366
|
+
- lat: 37.786
|
|
367
|
+
lng: -122.435
|
|
368
|
+
- id: heatmap_css_rounded_shadow
|
|
369
|
+
type: GoogleMapsHeatmap
|
|
370
|
+
class:
|
|
371
|
+
element: rounded-2xl shadow-2xl overflow-hidden
|
|
372
|
+
properties:
|
|
373
|
+
style:
|
|
374
|
+
height: 350px
|
|
375
|
+
map:
|
|
376
|
+
center:
|
|
377
|
+
lat: 51.509
|
|
378
|
+
lng: -0.118
|
|
379
|
+
zoom: 13
|
|
380
|
+
heatmap:
|
|
381
|
+
data:
|
|
382
|
+
- lat: 51.512
|
|
383
|
+
lng: -0.091
|
|
384
|
+
- lat: 51.507
|
|
385
|
+
lng: -0.076
|
|
386
|
+
- lat: 51.503
|
|
387
|
+
lng: -0.119
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Store Foot Traffic Analysis
|
|
391
|
+
|
|
392
|
+
Visualizing customer activity density across downtown locations. Higher intensity areas indicate more foot traffic during peak hours.
|
|
393
|
+
|
|
394
|
+
```yaml
|
|
395
|
+
- id: store_dashboard_title
|
|
396
|
+
type: Title
|
|
397
|
+
properties:
|
|
398
|
+
content: Store Foot Traffic Analysis
|
|
399
|
+
level: 3
|
|
400
|
+
- id: store_dashboard_desc
|
|
401
|
+
type: Paragraph
|
|
402
|
+
properties:
|
|
403
|
+
content: Visualizing customer activity density across downtown locations. Higher
|
|
404
|
+
intensity areas indicate more foot traffic during peak hours.
|
|
405
|
+
- id: store_dashboard_map
|
|
406
|
+
type: GoogleMapsHeatmap
|
|
407
|
+
class:
|
|
408
|
+
element: rounded-lg shadow-md
|
|
409
|
+
properties:
|
|
410
|
+
style:
|
|
411
|
+
height: 450px
|
|
412
|
+
map:
|
|
413
|
+
center:
|
|
414
|
+
lat: 40.758
|
|
415
|
+
lng: -73.9855
|
|
416
|
+
zoom: 14
|
|
417
|
+
markers:
|
|
418
|
+
- position:
|
|
419
|
+
lat: 40.7614
|
|
420
|
+
lng: -73.9776
|
|
421
|
+
label: S1
|
|
422
|
+
- position:
|
|
423
|
+
lat: 40.7549
|
|
424
|
+
lng: -73.984
|
|
425
|
+
label: S2
|
|
426
|
+
- position:
|
|
427
|
+
lat: 40.7587
|
|
428
|
+
lng: -73.99
|
|
429
|
+
label: S3
|
|
430
|
+
heatmap:
|
|
431
|
+
radius: 35
|
|
432
|
+
opacity: 0.7
|
|
433
|
+
data:
|
|
434
|
+
- lat: 40.7614
|
|
435
|
+
lng: -73.9776
|
|
436
|
+
- lat: 40.76
|
|
437
|
+
lng: -73.979
|
|
438
|
+
- lat: 40.759
|
|
439
|
+
lng: -73.98
|
|
440
|
+
- lat: 40.7549
|
|
441
|
+
lng: -73.984
|
|
442
|
+
- lat: 40.756
|
|
443
|
+
lng: -73.983
|
|
444
|
+
- lat: 40.7587
|
|
445
|
+
lng: -73.99
|
|
446
|
+
- lat: 40.7575
|
|
447
|
+
lng: -73.987
|
|
448
|
+
events:
|
|
449
|
+
onMarkerClick:
|
|
450
|
+
- id: store_marker_click_msg
|
|
451
|
+
type: DisplayMessage
|
|
452
|
+
params:
|
|
453
|
+
content: Click a store marker to view detailed foot traffic analytics.
|
|
454
|
+
status: info
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
Real-time air quality index readings from distributed sensor stations. Warmer areas on the heatmap indicate higher pollutant concentrations. Markers show individual sensor locations.
|
|
458
|
+
|
|
459
|
+
```yaml
|
|
460
|
+
- id: sensor_network_card
|
|
461
|
+
type: Card
|
|
462
|
+
properties:
|
|
463
|
+
title: Air Quality Monitoring - San Francisco Bay Area
|
|
464
|
+
slots:
|
|
465
|
+
extra:
|
|
466
|
+
blocks:
|
|
467
|
+
- id: sensor_network_refresh_btn
|
|
468
|
+
type: Button
|
|
469
|
+
layout:
|
|
470
|
+
flex: 0 0 auto
|
|
471
|
+
properties:
|
|
472
|
+
title: Refresh Data
|
|
473
|
+
icon: AiOutlineReload
|
|
474
|
+
color: primary
|
|
475
|
+
variant: outlined
|
|
476
|
+
size: small
|
|
477
|
+
events:
|
|
478
|
+
onClick:
|
|
479
|
+
- id: sensor_refresh_msg
|
|
480
|
+
type: DisplayMessage
|
|
481
|
+
params:
|
|
482
|
+
content: Sensor data refreshed.
|
|
483
|
+
status: success
|
|
484
|
+
blocks:
|
|
485
|
+
- id: sensor_network_desc
|
|
486
|
+
type: Paragraph
|
|
487
|
+
properties:
|
|
488
|
+
content: Real-time air quality index readings from distributed sensor stations.
|
|
489
|
+
Warmer areas on the heatmap indicate higher pollutant concentrations.
|
|
490
|
+
Markers show individual sensor locations.
|
|
491
|
+
- id: sensor_network_map
|
|
492
|
+
type: GoogleMapsHeatmap
|
|
493
|
+
class:
|
|
494
|
+
element: rounded-lg
|
|
495
|
+
properties:
|
|
496
|
+
autoBounds: false
|
|
497
|
+
style:
|
|
498
|
+
height: 500px
|
|
499
|
+
map:
|
|
500
|
+
center:
|
|
501
|
+
lat: 37.775
|
|
502
|
+
lng: -122.418
|
|
503
|
+
zoom: 12
|
|
504
|
+
options:
|
|
505
|
+
mapTypeControl: false
|
|
506
|
+
streetViewControl: false
|
|
507
|
+
markers:
|
|
508
|
+
- position:
|
|
509
|
+
lat: 37.7849
|
|
510
|
+
lng: -122.4094
|
|
511
|
+
label: "1"
|
|
512
|
+
- position:
|
|
513
|
+
lat: 37.7694
|
|
514
|
+
lng: -122.4862
|
|
515
|
+
label: "2"
|
|
516
|
+
- position:
|
|
517
|
+
lat: 37.7599
|
|
518
|
+
lng: -122.4148
|
|
519
|
+
label: "3"
|
|
520
|
+
- position:
|
|
521
|
+
lat: 37.7909
|
|
522
|
+
lng: -122.4
|
|
523
|
+
label: "4"
|
|
524
|
+
- position:
|
|
525
|
+
lat: 37.775
|
|
526
|
+
lng: -122.435
|
|
527
|
+
label: "5"
|
|
528
|
+
heatmap:
|
|
529
|
+
radius: 40
|
|
530
|
+
opacity: 0.6
|
|
531
|
+
data:
|
|
532
|
+
- lat: 37.7849
|
|
533
|
+
lng: -122.4094
|
|
534
|
+
- lat: 37.7694
|
|
535
|
+
lng: -122.4862
|
|
536
|
+
- lat: 37.7599
|
|
537
|
+
lng: -122.4148
|
|
538
|
+
- lat: 37.7909
|
|
539
|
+
lng: -122.4
|
|
540
|
+
- lat: 37.775
|
|
541
|
+
lng: -122.435
|
|
542
|
+
- lat: 37.78
|
|
543
|
+
lng: -122.42
|
|
544
|
+
- lat: 37.772
|
|
545
|
+
lng: -122.45
|
|
546
|
+
events:
|
|
547
|
+
onMarkerClick:
|
|
548
|
+
- id: sensor_marker_click_msg
|
|
549
|
+
type: DisplayMessage
|
|
550
|
+
params:
|
|
551
|
+
content: Select a sensor station to view detailed air quality readings.
|
|
552
|
+
status: info
|
|
553
|
+
onClick:
|
|
554
|
+
- id: sensor_map_click_set
|
|
555
|
+
type: SetState
|
|
556
|
+
params:
|
|
557
|
+
selectedLocation:
|
|
558
|
+
_event: latLng
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
| Property | Type | Default | Description |
|
|
562
|
+
| --- | --- | --- | --- |
|
|
563
|
+
| `autoBounds` | boolean | `true` | Automatically fit the map bounds to include all markers and heatmap data points. |
|
|
564
|
+
| `map` | object | - | Map settings object. |
|
|
565
|
+
| `map.center` | object | - | A coordinate position object by which to center the map. |
|
|
566
|
+
| `map.center.lat` | number | - | Lateral coordinate. |
|
|
567
|
+
| `map.center.lng` | number | - | Longitudinal coordinate. |
|
|
568
|
+
| `map.zoom` | number | - | Map zoom level. |
|
|
569
|
+
| `map.options` | object | - | Map options. See [Google Maps MapOptions](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions). |
|
|
570
|
+
| `heatmap` | object | - | Heatmap layer options. See [heatmap options](https://developers.google.com/maps/documentation/javascript/reference/visualization#HeatmapLayerOptions). |
|
|
571
|
+
| `heatmap.data` | array | - | A list of heatmap data points. |
|
|
572
|
+
| `heatmap.data.$.lat` | number | - | Lateral coordinate. |
|
|
573
|
+
| `heatmap.data.$.lng` | number | - | Longitudinal coordinate. |
|
|
574
|
+
| `heatmap.data.$.weight` | number | - | Item weight on heatmap. |
|
|
575
|
+
| `heatmap.radius` | number | - | The radius of influence for each data point, in pixels. |
|
|
576
|
+
| `heatmap.opacity` | number | - | The opacity of the heatmap, from 0 to 1. |
|
|
577
|
+
| `markers` | array | - | A list of markers with marker options. See [Google Maps Markers](https://developers.google.com/maps/documentation/javascript/markers). |
|
|
578
|
+
| `markers.$.position` | object | - | |
|
|
579
|
+
| `markers.$.position.lat` | number | - | Lateral coordinate. |
|
|
580
|
+
| `markers.$.position.lng` | number | - | Longitudinal coordinate. |
|
|
581
|
+
| `markers.$.label` | string | - | Label displayed on marker. |
|
|
582
|
+
| `infoWindow` | object | - | Info window options. See [InfoWindowOptions](https://developers.google.com/maps/documentation/javascript/reference/info-window#InfoWindowOptions). |
|
|
583
|
+
| `infoWindow.visible` | boolean | - | When visible is true, blocks inside the infoWindow content area will be rendered. |
|
|
584
|
+
| `infoWindow.position` | object | - | |
|
|
585
|
+
| `infoWindow.position.lat` | number | - | Lateral coordinate. |
|
|
586
|
+
| `infoWindow.position.lng` | number | - | Longitudinal coordinate. |
|
|
587
|
+
|
|
588
|
+
| Event | Event Data | Description |
|
|
589
|
+
| --- | --- | --- |
|
|
590
|
+
| `onClick` | \- | Trigger actions when the map is clicked. |
|
|
591
|
+
| `onMarkerClick` | \- | Trigger actions when a marker is clicked. |
|
|
592
|
+
| `onZoomChanged` | \- | Trigger actions when the zoom on the map is changed. |
|
|
593
|
+
| `onBoundsChanged` | \- | Trigger actions when the bounds of the map are changed. |
|
|
594
|
+
| `onCenterChanged` | \- | Trigger actions when the center of the map is changed. |
|
|
595
|
+
| `onInfoWindowCloseClick` | \- | Trigger actions when the info window close button is clicked. |
|
|
596
|
+
| `onInfoWindowPositionChanged` | \- | Trigger actions when the info window position changes. |
|
|
597
|
+
| `onLoad` | \- | Trigger actions when the map is loaded. |
|
|
598
|
+
|
|
599
|
+
| Key | Target |
|
|
600
|
+
| --- | --- |
|
|
601
|
+
| `/block` | Outer block wrapper (always available). |
|
|
602
|
+
| `/element` | The map container element. |
|
|
603
|
+
|
|
604
|
+
| Slot | Description |
|
|
605
|
+
| --- | --- |
|
|
606
|
+
| `content` | Marker blocks on the map. |
|
|
607
|
+
| `infoWindow` | Info window popup content. |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# GoogleMapsScript
|
|
2
|
+
|
|
3
|
+
Loads the Google Maps JavaScript API and wraps `GoogleMaps` and `GoogleMapsHeatmap` blocks as a parent container. Configure the API key, language, region, libraries, and API version.
|
|
4
|
+
|
|
5
|
+
> GoogleMapsScript loads the Google Maps JavaScript API. Only one GoogleMapsScript should be used per page. It must wrap GoogleMaps or GoogleMapsHeatmap blocks as a parent container. The examples below show configuration patterns — maps require a valid API key to render.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
- id: gms_full_config
|
|
9
|
+
type: GoogleMapsScript
|
|
10
|
+
properties:
|
|
11
|
+
apiKey: null
|
|
12
|
+
language: en
|
|
13
|
+
region: US
|
|
14
|
+
version: weekly
|
|
15
|
+
libraries:
|
|
16
|
+
- visualization
|
|
17
|
+
- places
|
|
18
|
+
channel: production
|
|
19
|
+
blocks:
|
|
20
|
+
- id: gms_full_config_map
|
|
21
|
+
type: GoogleMaps
|
|
22
|
+
properties:
|
|
23
|
+
map:
|
|
24
|
+
center:
|
|
25
|
+
lat: 40.7128
|
|
26
|
+
lng: -74.006
|
|
27
|
+
zoom: 12
|
|
28
|
+
markers:
|
|
29
|
+
- position:
|
|
30
|
+
lat: 40.7484
|
|
31
|
+
lng: -73.9857
|
|
32
|
+
label: A
|
|
33
|
+
title: Empire State Building
|
|
34
|
+
- position:
|
|
35
|
+
lat: 40.6892
|
|
36
|
+
lng: -74.0445
|
|
37
|
+
label: B
|
|
38
|
+
title: Statue of Liberty
|
|
39
|
+
- position:
|
|
40
|
+
lat: 40.7589
|
|
41
|
+
lng: -73.9851
|
|
42
|
+
label: C
|
|
43
|
+
title: Times Square
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
| Property | Type | Default | Description |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| `apiKey` | string | - | Your Google Maps API key. |
|
|
49
|
+
| `libraries` | array | - | A list of Google libraries to load. See [Google Maps Libraries](https://developers.google.com/maps/documentation/javascript/libraries). |
|
|
50
|
+
| `language` | string | - | The language code for the Google Maps API (e.g. "en", "fr", "ja"). |
|
|
51
|
+
| `region` | string | - | The region code to bias geocoding results (e.g. "US", "GB"). See [localization](https://developers.google.com/maps/documentation/javascript/localization). |
|
|
52
|
+
| `version` | string | - | The version of the Google Maps JavaScript API to load (e.g. "weekly", "3.50"). |
|
|
53
|
+
| `channel` | string | - | A channel parameter for tracking API usage. |
|
|
54
|
+
|
|
55
|
+
No events defined.
|
|
56
|
+
|
|
57
|
+
No CSS keys defined.
|
|
58
|
+
|
|
59
|
+
| Slot | Description |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| `content` | Child blocks wrapped by the script provider. |
|