Google Maps
Below you can view an example of the Google Maps embed block in JSON format.
{
"type": "codex_google_map_embed",
"attrs": {
"blockId": "blockId",
"zoom": 15,
"lng": 21,
"lat": 42,
"mapType": "satellite",
"align": "left",
"width": "100%",
"app_key": "app_key",
"caption": null
},
"content": [],
"contentHTML": "-"
}
Below you can read details about each attribute of the Google Maps embed block.
type
A string that represents the type of the block. Google Map Embeds blocks will always display codex_google_map_embed
as their type.
attrs
An object that represents the attributes of the block.
attrs.blockId
A string that represents the unique block ID of the Google Maps embed.
attrs.zoom
A number that represents the zoom percentage on the Google Maps embed.
attrs.lng
A number that represents the longitude on the Google Maps embed.
attrs.lat
A number that represents the latitude on the Google Maps embed.
attrs.mapType
A string that represents the map type on the Google Maps embed.
attrs.align
A string that represents the embed alignment. This value can be left
, center
, or right
.
attrs.width
A string that represents the width of the embed.
attrs.app_key
A string that represents the app key of the Google Maps embed.
attrs.caption
A string that represents the caption of the embed.
content
An array that represents the content of the Google Maps embed.
contentHTML
A string that represents the generated HTML of the block.