Support Home > Map Block

Map Block

The Map Block allows you to add a map to any post or page on your site.

How to add Map block to your site.

Requirements

To use the map block, you need a Mapbox Access Token.

  1. If you don’t already have a Mapbox account, go to https://www.mapbox.com/signup/ and create a free account.
  2. Sign in to your Mapbox account.
  3. Go to https://www.mapbox.com/account/ and look for the Access Tokens section at the top menu.
  4. Copy the Default public token to your clipboard.
Getting your access token.

Adding the Map Block

You can add the Map Block to any post or page by selecting it from the Jetpack section of the block picker:

Search the block.

See our Jetpack Blocks page for more information on adding Jetpack blocks.

If this is the first Map block you’ve added to your site, you’ll see a prompt to enter your Mapbox access token.

  • Paste the Default public token you copied to your clipboard earlier into the token field in the Map block.
  • Click Set Token.
Add the token to the block.

The map will load with a text field for you to add a location marker.

Add a location marker.

Type the location you want to display on the map. This can be as general or specific as you wish, and the location will autocomplete as you type. Click the correct location to add it to your map.

You can then click on the red marker symbol to edit the title and caption of the marker.

Set the marker info.

Note that editing the address in the caption field here will not change the position of the marker, only what text is displayed on your map when the marker is clicked.

Adding Additional Location Markers

You can add additional location markers to the same map. For example, if you have a chain of restaurants and you want to display all of their locations on one map, you can add a marker for each.

To add a location marker, click Add a Marker and enter the location details as before.

Additional location marker.

When you add more than one location marker, the map will zoom out to display all markers.

Location marks .

Map Block Settings

When the Map block is selected, you’ll see some settings which can be customized in the sidebar.

To customize the appearance of your map, you can select the map theme, choose to show street names or not, edit the color of the location markers, set a height, add a zoom level, and include a full-screen option.

Map block settings.

The Markers section lets you edit all of your markers. Editing a marker here works exactly the same as if you click on the marker itself and edit there, but using these settings may be easier if you have a lot of markers to edit.

Marker info.

In the Mapbox Access Token settings, you can update or remove your Mapbox access token. If you have multiple maps on your site, removing an access token from one map will remove it from all of your maps, but your location markers will be saved, so they will still be there if you add a new access token.

Advanced

The Advanced settings allow you to add a custom CSS class to your map so that you can do your own custom CSS styling if desired.

Still having trouble?

Please contact support directly. We’re happy to lend a hand and answer any other questions that you may have.

Privacy Information

This feature is activated by default. It cannot be deactivated; the Map block is always available in the Block Selector.

The Map block uses Mapbox. Their privacy policy can be found here: https://www.mapbox.com/privacy/.

Data Used
Site Owners / Users

Mapbox API key. Search terms are sent to Mapbox when looking for locations. Map tiles are loaded from Mapbox.

Site Visitors

None.

Activity Tracked
Site Owners / Users

We don’t track anything. Refer to the Mapbox privacy policy for details of any activity they track.

Site Visitors

We don’t track anything. Refer to the Mapbox privacy policy for details of any activity they track.

Data Synced (Read More)
Site Owners / Users

Mapbox API key. Post contents.

We also sync options that identify how the feature’s available settings are configured.

Site Visitors

None.

  • Table Of Contents

  • Categories

  • Contact Us

    Need more help? Feel free to contact us.