PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
b-blocks / build / google-map / block.json

block.json in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.8, at build/google-map/block.json

416 lines 8.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "b-blocks/google-map",
5 "title": "Google Map",
6 "category": "bBlocks",
7 "description": "A fully interactive Google Map: custom markers with rich info windows, clustering, category filtering, map themes, traffic/transit/KML/GeoJSON layers, shapes, directions, search and geolocation — plus the classic embed-URL mode.",
8 "keywords": [
9 "google map",
10 "map",
11 "marker",
12 "location",
13 "directions",
14 "store locator",
15 "embed",
16 "contact"
17 ],
18 "textdomain": "b-blocks",
19 "attributes": {
20 "align": {
21 "type": "string",
22 "default": ""
23 },
24 "source": {
25 "type": "object",
26 "default": {
27 "type": "interactive",
28 "embedUrl": "",
29 "center": {
30 "lat": "",
31 "lng": "",
32 "address": ""
33 },
34 "mapId": "",
35 "language": "",
36 "region": ""
37 }
38 },
39 "map": {
40 "type": "object",
41 "default": {
42 "zoom": 12,
43 "minZoom": "",
44 "maxZoom": "",
45 "mapType": "roadmap",
46 "allowTypeSwitch": true,
47 "gestureHandling": "cooperative",
48 "draggable": true,
49 "scrollwheel": false,
50 "fitBounds": false,
51 "desktop": {
52 "height": "450px",
53 "maxWidth": "",
54 "align": "center"
55 },
56 "tablet": {
57 "height": "350px",
58 "maxWidth": "",
59 "align": ""
60 },
61 "mobile": {
62 "height": "250px",
63 "maxWidth": "",
64 "align": ""
65 },
66 "useAspectRatio": false,
67 "aspectRatio": {
68 "desktop": "16/9",
69 "tablet": "",
70 "mobile": ""
71 },
72 "borderRadius": {
73 "desktop": {
74 "top": "",
75 "right": "",
76 "bottom": "",
77 "left": ""
78 },
79 "tablet": {},
80 "mobile": {}
81 },
82 "shadow": []
83 }
84 },
85 "controls": {
86 "type": "object",
87 "default": {
88 "disableDefaultUI": false,
89 "zoom": true,
90 "zoomPosition": "RIGHT_BOTTOM",
91 "mapType": true,
92 "streetView": true,
93 "fullscreen": true,
94 "scale": false,
95 "rotate": false,
96 "keyboardShortcuts": true
97 }
98 },
99 "markers": {
100 "type": "array",
101 "default": [
102 {
103 "id": "marker-1",
104 "title": "Our Office",
105 "content": "<p>Drop by any weekday between 9am and 5pm.</p>",
106 "address": "",
107 "lat": 23.8103,
108 "lng": 90.4125,
109 "category": "",
110 "icon": {
111 "type": "default",
112 "url": {
113 "library": "",
114 "upload": ""
115 }
116 },
117 "image": {
118 "url": "",
119 "alt": ""
120 },
121 "pinColor": "",
122 "glyphColor": "",
123 "animation": "",
124 "draggable": true,
125 "openByDefault": false
126 }
127 ]
128 },
129 "marker": {
130 "type": "object",
131 "default": {
132 "pinColor": "#8a2be2",
133 "glyphColor": "#ffffff",
134 "borderColor": "#ffffff",
135 "scale": 1,
136 "animation": "none",
137 "desktop": {
138 "size": "40px"
139 },
140 "tablet": {
141 "size": ""
142 },
143 "mobile": {
144 "size": ""
145 }
146 }
147 },
148 "infoWindow": {
149 "type": "object",
150 "default": {
151 "trigger": "click",
152 "singleOpen": true,
153 "bgColor": "#ffffff",
154 "textColor": "#1e1e1e",
155 "typo": {
156 "fontSize": {
157 "desktop": "14px"
158 }
159 },
160 "border": {
161 "width": "0px"
162 },
163 "shadow": [],
164 "desktop": {
165 "maxWidth": "280px",
166 "padding": {
167 "top": "",
168 "right": "",
169 "bottom": "",
170 "left": ""
171 },
172 "radius": {
173 "top": "",
174 "right": "",
175 "bottom": "",
176 "left": ""
177 }
178 },
179 "tablet": {
180 "maxWidth": "",
181 "padding": {},
182 "radius": {}
183 },
184 "mobile": {
185 "maxWidth": "",
186 "padding": {},
187 "radius": {}
188 }
189 }
190 },
191 "clustering": {
192 "type": "object",
193 "default": {
194 "enabled": false,
195 "background": {
196 "type": "solid",
197 "color": "#8a2be2"
198 },
199 "color": "#8a2be2",
200 "size": "40px",
201 "textColor": "#ffffff",
202 "clickToZoom": true
203 }
204 },
205 "categories": {
206 "type": "array",
207 "default": []
208 },
209 "filterBar": {
210 "type": "object",
211 "default": {
212 "show": false,
213 "align": "left",
214 "showAll": true,
215 "allLabel": "All",
216 "activeColor": "#8a2be2",
217 "color": "#1e1e1e",
218 "bgColor": "#f0f0f0",
219 "activeTextColor": "#ffffff",
220 "typo": {
221 "fontSize": {
222 "desktop": "13px"
223 }
224 },
225 "desktop": {
226 "gap": "8px",
227 "padding": {
228 "top": "6px",
229 "right": "14px",
230 "bottom": "6px",
231 "left": "14px"
232 },
233 "radius": {
234 "top": "999px",
235 "right": "999px",
236 "bottom": "999px",
237 "left": "999px"
238 }
239 },
240 "tablet": {
241 "gap": "",
242 "padding": {},
243 "radius": {}
244 },
245 "mobile": {
246 "gap": "",
247 "padding": {},
248 "radius": {}
249 }
250 }
251 },
252 "theme": {
253 "type": "object",
254 "default": {
255 "preset": "default",
256 "customJson": "",
257 "grayscale": 0,
258 "saturation": 0,
259 "hue": ""
260 }
261 },
262 "layers": {
263 "type": "object",
264 "default": {
265 "traffic": false,
266 "transit": false,
267 "bicycling": false,
268 "kmlUrl": "",
269 "geoJson": "",
270 "fitGeoJson": true,
271 "heatmap": {
272 "enabled": false,
273 "radius": 20,
274 "opacity": 0.6
275 }
276 }
277 },
278 "shapes": {
279 "type": "array",
280 "default": []
281 },
282 "directions": {
283 "type": "object",
284 "default": {
285 "enabled": false,
286 "mode": "DRIVING",
287 "origin": {
288 "address": "",
289 "lat": "",
290 "lng": ""
291 },
292 "destination": {
293 "address": "",
294 "lat": "",
295 "lng": ""
296 },
297 "waypoints": [],
298 "showPanel": false,
299 "routeColor": "#2A6DF0"
300 }
301 },
302 "tools": {
303 "type": "object",
304 "default": {
305 "searchBox": false,
306 "geolocation": false,
307 "nearbyRadius": 0
308 }
309 },
310 "performance": {
311 "type": "object",
312 "default": {
313 "lazyLoad": "onView"
314 }
315 },
316 "caption": {
317 "type": "object",
318 "default": {
319 "text": "",
320 "align": "center",
321 "color": "",
322 "typo": {
323 "fontSize": {
324 "desktop": "14px"
325 }
326 }
327 }
328 },
329 "advanced": {
330 "type": "object",
331 "default": {
332 "dimension": {
333 "padding": {
334 "desktop": {
335 "top": "0px",
336 "right": "0px",
337 "bottom": "0px",
338 "left": "0px"
339 },
340 "tablet": {
341 "top": "0px",
342 "right": "0px",
343 "bottom": "0px",
344 "left": "0px"
345 },
346 "mobile": {
347 "top": "0px",
348 "right": "0px",
349 "bottom": "0px",
350 "left": "0px"
351 }
352 }
353 },
354 "borderShadow": {
355 "normal": {
356 "radius": {
357 "top": "0px",
358 "right": "0px",
359 "bottom": "0px",
360 "left": "0px"
361 },
362 "shadow": [
363 {
364 "hOffset": "0px",
365 "vOffset": "0px",
366 "blur": "0px",
367 "spreed": "0px",
368 "color": "#7090b000",
369 "isInset": false
370 }
371 ]
372 }
373 },
374 "background": {
375 "normal": {
376 "type": "color",
377 "color": "",
378 "gradient": {
379 "type": "linear",
380 "colors": [
381 {
382 "color": "rgba(58, 66, 222, 1)",
383 "position": "0"
384 },
385 {
386 "color": "rgba(176, 195, 235, 1)",
387 "position": "80"
388 }
389 ],
390 "angel": 90
391 },
392 "img": {
393 "url": ""
394 }
395 }
396 }
397 }
398 }
399 },
400 "supports": {
401 "align": [
402 "wide",
403 "full"
404 ],
405 "html": false
406 },
407 "example": {
408 "attributes": {
409 "preview": true
410 }
411 },
412 "editorScript": "file:../index.js",
413 "style": "file:./view.css",
414 "viewScript": "file:./view.js",
415 "render": "file:./render.php"
416 }