PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / trunk
bBlocks – Essential Gutenberg Blocks & Patterns Collection vtrunk
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 1.5.4 1.5.5 All 106 releases
b-blocks / build / google-map / block.json

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

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