Map Block
Display your locations and relevant information on a simple interactive map.
Quick links
Overview
In the Gutenberg editor, open the block section and click or drag the Map Block to the editor area. Main elements of the block are:
- Subtitle
- Title
- Paragraph
- Map
Note: Because of the frequency of use, the first three elements (Subtitle, title and paragraph) of the Text Block are integrated in almost every Sana block.
Settings
If the settings side panel is not visible while working on your page or post, click on the Settings icon in the top left corner of the editor toolbar. Once opened you will see all the available options of the selected block, organized into collapsible tabs.
General
- Content Align – Align the entire block content left, center or right
- Padding – Add top and bottom block padding
- Background – Choose a solid color or a background image
Note: Content Align positions containers within the block, while Text Align positions text within its own container.
Subtitle, Title, Paragraph
- On/Off toggle – Display or hide the element
- Text Align – Align text left, center or right within its own container
- Font Size – Choose from nine preset sizes or add a custom font size
- Text Color – Select a color for the subtitle, title and paragraph
Map
- Map Source – Choose Google Maps or OpenStreetMap as your default map
- Fit all Markers – Scales the map zoom level to include all markers
- Marker Color – Choose a color for the marker symbols
- Height – Set a fixed map height in pixels
Markers
1. Marker List – Manage your map locations by adding, deleting or editing existing markers.
2. Marker Configuration – Open the window by clicking the Edit button in the Marker list (1) . In the pop-up window you will see the following options:
- Location – Insert your address in the search field and select the location from the list
- Title – Give your location a name that will be visible when the user clicks on the marker
- Description – Use this short paragraph in the marker pop-up to provide essential info (address or working hours)
- Link – Display a link on the bottom of the marker pop-up by adding a label and URL
Responsive
- Hide on Desktop – Block is visible on mobile, but not on desktop screens
- Hide on Mobile – Block is visible on desktop, but not on mobile screens
Tip: You can create two separate blocks for a section of your page and load each block on a different screen size.