| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/map", |
| 6 |
"description": "Displays a Google Map with location markers.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Google Maps", |
| 9 |
"attributes": { |
| 10 |
"mapHeight": { |
| 11 |
"type": "number", |
| 12 |
"default": 600 |
| 13 |
}, |
| 14 |
"mapCenter": { |
| 15 |
"type": "object", |
| 16 |
"default": { |
| 17 |
"lat": 37.9106161839889, |
| 18 |
"lng": 25.1221243506071 |
| 19 |
} |
| 20 |
}, |
| 21 |
"mapZoom": { |
| 22 |
"type": "number", |
| 23 |
"default": 2 |
| 24 |
}, |
| 25 |
"interaction": { |
| 26 |
"type": "string", |
| 27 |
"source": "attribute", |
| 28 |
"default": "cooperative", |
| 29 |
"selector": ".wp-block-getwid-map", |
| 30 |
"attribute": "data-interaction" |
| 31 |
}, |
| 32 |
"zoomControl": { |
| 33 |
"type": "boolean", |
| 34 |
"default": true |
| 35 |
}, |
| 36 |
"mapTypeControl": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"streetViewControl": { |
| 41 |
"type": "boolean", |
| 42 |
"default": true |
| 43 |
}, |
| 44 |
"fullscreenControl": { |
| 45 |
"type": "boolean", |
| 46 |
"default": true |
| 47 |
}, |
| 48 |
"mapStyle": { |
| 49 |
"type": "string", |
| 50 |
"source": "attribute", |
| 51 |
"default": "default", |
| 52 |
"selector": ".wp-block-getwid-map", |
| 53 |
"attribute": "data-map-style" |
| 54 |
}, |
| 55 |
"customStyle": { |
| 56 |
"type": "string", |
| 57 |
"source": "attribute", |
| 58 |
"selector": ".wp-block-getwid-map", |
| 59 |
"attribute": "data-custom-style" |
| 60 |
}, |
| 61 |
"blockAlignment": { |
| 62 |
"type": "string" |
| 63 |
}, |
| 64 |
"mapMarkers": { |
| 65 |
"type": "string", |
| 66 |
"source": "attribute", |
| 67 |
"selector": ".wp-block-getwid-map", |
| 68 |
"attribute": "data-map-markers", |
| 69 |
"default": "" |
| 70 |
} |
| 71 |
}, |
| 72 |
"editorScript": [ |
| 73 |
"getwid-map-styles", |
| 74 |
"jquery", |
| 75 |
"file:./index.js" |
| 76 |
], |
| 77 |
"editorStyle": "file:./index.css", |
| 78 |
"style": "file:./style-index.css", |
| 79 |
"viewScript": [ |
| 80 |
"jquery", |
| 81 |
"file:./view.js" |
| 82 |
] |
| 83 |
} |