Location block

The Location block renders a map centered on a coordinate pair, with optional GeoJSON overlays for points, routes, and polygons.

Block fields

Map view

FieldTypeRequiredNotes
titlestringYesMap title
latitudenumberYesCenter latitude
longitudenumberYesCenter longitude
zoomnumberYesZoom level between 0 and 22

GeoJSON features (optional)

The geojson field accepts a GeoJSON FeatureCollection.

Feature typeGeometryUse for
Point[longitude, latitude]Markers and cities
LineStringArray of [longitude, latitude]Routes and paths
PolygonRings of [longitude, latitude]Areas and boundaries

Each feature should expose properties.name and properties.description.

Zoom reference

ZoomTypical view
0-1Whole Earth
3Continent
4-5Large country
6-7Region
10City district
12-13City
15Neighborhood
22Maximum detail

Tips

  • GeoJSON order is lon-lat. Use [longitude, latitude], not the reverse.
  • Fit to content. When overlays exist, center and zoom should include all features.
  • Keep labels short. Marker titles should stay readable at multiple zoom levels.