Skip to main content
{% map %}
{% /map %}

Examples

Map with Title

{% map title="Sales by Region" %}
{% /map %}

Custom Height

{% map height=500 %}
{% /map %}

Custom Zoom Level

{% map zoom=10 %}
{% /map %}

Map with Choropleth Layer

{% map title="Sales by State" %}
    {% area_layer
        geography="us_states"
        data="state_sales"
        area_id="state_name"
        value="sum(sales)"
    /%}
{% /map %}

Attributes

title
String
Title to display above the map
subtitle
String
Subtitle to display below the title
info
String
Information tooltip text (can only be used with title)
URL to link the info text to (can only be used with info)
Create a custom link title for the info link, placed after the info text (can only be used with info_link)
height
Number
default:"300"
Height of the map in pixels
zoom
Number
default:"3"
Initial zoom level (0-22, where higher is more zoomed in)
zoomable
Boolean
default:"true"
Allow users to zoom in/out on the map
pannable
Boolean
default:"true"
Allow users to pan/drag the map
base_style
String
default:"mono"
Base map style: “mono” for monochrome basemap, “blank” for solid background onlyAllowed values:
  • mono
  • blank
projection
String
default:"flat"
Map projection: “globe” for 3D globe view, “flat” for 2D flat mapAllowed values:
  • globe
  • flat
legend
Boolean
default:"true"
Show legends for map layers
legend_location
String
default:"bottom_right"
Location of the legend within the mapAllowed values:
  • top_left
  • top_right
  • bottom_left
  • bottom_right
width
Number
Set the width of this component (in percent) relative to the page width

Allowed Children