Map Widget

Modified on Fri, 18 Nov 2022 at 08:43 AM

Show your visitors a map of any location you like. Use the Map widget to show the location of your brick-and-mortar business or a special event. You can also use it to show customers where they will find parking.

To add the Map widget:

  1. In the left panel, click Widgets.
  2. Click and drag the Map widget into your site.

To learn more about adding widgets to your site, see Add Widgets.

Content Editor

To access the content editor:

  1. Right-click the widget, and click Edit Content.
  2. Type your business address in the field provided.
  3. Select the address from the drop-down that appears. If your address does not show up in the drop-down, it means we are unable to find it in Mapbox's API (sometimes different than their maps search). To get around this problem, try linking a button widget directly to the map URL in Google Maps instead. If your address is missing from MapBox, you can send a request directly to MapBox to add your address.
  4. You can choose to display a map button instead of a map image. To display a map button on specific devices, select the Use button on devices () where you want the button to appear. If no devices are chosen, the map image will be displayed.
  5. Type the text that you want to appear on the button in the Text on button field provided.

Display Location Info Popup

To display a location information popup on the map widget:

Type a title and description for the popup.

Select to display the popup On hoverOn click, or Always from the Popup display drop-down.

Design Editor

To access the design editor, right-click the widget, and click Edit Design.

Click the Layout tab to edit the design of the map that appears on your site.

For information about design options that are not specific to this widget (for example, layout, style, or spacing), see Widget Design.

Embed a Google Map Using an HTML Widget

To embed maps from Google Maps using the HTML widget:

  1. Navigate to Google Maps.
  2. Search for the location you want.
  3. Click on the menu on the top left, then click Share or embed map .
  4. Click the Embed map tab.
  5. Copy the URL in the quotes after <iframe src =". Make sure to copy the complete URL nested in the quotes.

  6. Navigate to your site and, in the left panel, click Widgets, and drag the HTML widget into a row or column.
  7. Use the following embed code and add the URL you obtained from Google Maps in the quotations after iframe src=:

    <div class="embed-container"><iframe src=" " frameborder="0" allowfullscreen></iframe></div>

  8. Go into Developer Mode.
  9. Click Site HTML/CSS, and then click site.css.
  10. Embed the following CSS into this section:

    .embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

    The map will resize appropriately for the different device views. If you use the normal Google Maps embed code, the size of the map widget will appear static on all devices and will cut off in the mobile view.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article