scomp_geomap_geomap_static

Render a static OpenStreetMap tile grid with a marker at a location.

{% geomap_static latitude=52.34322 longitude=4.33423 zoom=14 %}

Alternatively, use a resource's computed coordinates:

{% geomap_static id=id %}
ArgumentDescriptionDefault
latitude, longitudeExplicit center coordinates in degrees.Resource coordinates when latitude is absent.
idResource with computed_location_lat and computed_location_lng.None.
zoomTile zoom level.14
nDefault number of rows and columns.2
rowsNumber of tile rows.n
colsNumber of tile columns.n
sizeDisplay size of each tile in pixels.256

When explicit latitude is present, both explicit coordinates are used; a missing longitude does not fall back to the resource. A resource need not belong to a particular category, but must supply usable computed coordinates. The tag emits an empty result when it cannot resolve a pair of floating-point coordinates.

The component renders _geomap_static.tpl with tile coordinates, center coordinates, grid dimensions, and marker offsets. The default template loads tiles from https://tile.openstreetmap.org and displays a marker. Override it in the site to customize presentation. The component declares nocache and does not generate or store a combined map image.