Skip to main content
Basic Map

Examples

Basic Map

Basic Map

Map with Title

Map with Title

Custom Height

Custom Height

Custom Zoom Level

Custom Zoom Level

Map with Choropleth Layer

Map with Choropleth Layer

Map with Point Layer

Map with Point Layer

Map with Heatmap Layer

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
initial_position
array
Initial map center position as [latitude, longitude]. Overrides auto-zoom to data bounds
zoom
number
Zoom level (0-22, where higher is more zoomed in). When provided without initial_position, centers on data at this zoom level. When provided with initial_position, uses this zoom at that position
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 theme-aware 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