API and agentsAPI reference
ExportImageDefinition
object
An image export, fully resolved: exact output pixels (the aspect is entailed), the camera, how large the map is drawn, bounded placement and a size step for every element, the included widgets, an optional title, and an optional basemap override for this image alone. The builder's export card edits exactly this and the server renderer consumes exactly this, so the two roads cannot drift.
mapScalenumberminimum0.25maximum16Output pixels per composition pixel: how large the map itself is drawn. A smaller value lays the map out across more composition pixels, so its labels, roads and symbols take a smaller share of the image: the look of a screenshot of a very large screen. Output width is then only density: a wider image is the same picture more sharply. Required, unless the deprecated name overlayScale is given instead.
overlayScalenumberminimum0.25maximum16Deprecated name for mapScale, accepted so definitions written before the rename keep rendering. Give one or the other.
widgetSizestringHow large the widget rail is drawn. Absent means m.
One of
xs,s,m,lcreditobjectWhere the basemap attribution sits and how large. It has no visibility: the basemap licence requires it in every image, and it never renders below a legible floor whatever the step. Absent means bottom-right at m.
cornerstringrequiredOne of
top-left,top-right,bottom-left,bottom-rightsizestringrequiredOne of
xs,s,m,l
No other keys.
basemapLayersobjector nullThe basemap layer groups THIS image draws: resolved, not a difference from the map's stored choice, so the definition renders the same tomorrow as today. A missing key means visible. Null means every group is visible; absence means the map's own stored choice. Vector styles only: imagery has no groups to hide.
labelsbooleanroadsbooleanbordersbooleanbuildingsbooleanwaterbooleanlandboolean
No other keys.
appearancestringrequiredThe author's active theme at export: captured state, so the server renders exactly what the card's client capture always exported implicitly.
One of
light,darkviewportobjectrequiredlngnumberrequiredminimum-540maximum540latnumberrequiredminimum-85.051129maximum85.051129zoomnumberrequiredminimum0maximum24pitchnumberrequiredminimum0maximum60Degrees; 0 = flat.
bearingnumberrequiredminimum-360maximum360Degrees; 0 = north-up.
No other keys.
sizeobjectrequiredwidthintegerrequiredminimum480maximum4096At least the width a legible basemap credit needs: an image too narrow to carry its attribution is refused, not exported without it.
heightintegerrequiredminimum64maximum4096
No other keys.
legendobjectrequiredvisiblebooleanrequiredcornerstringrequiredOne of
top-left,top-right,bottom-left,bottom-rightsizestringrequiredOne of
xs,s,m,l
No other keys.
widgetsarray of stringrequiredIds of the included widgets, in rail order.
titleobjector nullrequiredtextstringrequiredmax length200sizestringrequiredOne of
xs,s,m,l
No other keys.
No other keys.
7439201b