Mapping Service: Render Maps

Render a named map image

Renders a map image for an existing named map, identified by name in the URL path, using query parameters. Returns image/png or image/jpeg based on the format parameter.

For an ad-hoc map defined by layers rather than a saved map, use Render a map image instead.

Map Extent Options:

  • Use centerX, centerY with zoom/scale for center-based rendering
  • Use bbox for bounding box rendering (no center needed)

Authorization: Requires EXECUTE permission on the named map.

get/v1/spatial/maps/{mapName}/image

Request

  • Base URL: https://api.cloud.precisely.com
  • URL: https://api.cloud.precisely.com/v1/spatial/maps/{mapName}/image
  • Auth: API key in header Authorization and HTTP bearer

Path parameters

mapNamestring required

Name of the named map (may contain forward slashes for hierarchical names). Example: Samples/NamedMaps/WorldMap

Query parameters

widthinteger required

Image width in pixels

heightinteger required

Image height in pixels

centerXnumber double

Center X coordinate (longitude). Required unless using 'bbox' parameter.

centerYnumber double

Center Y coordinate (latitude). Required unless using 'bbox' parameter.

crsstring

Coordinate reference system. Required when center coordinates or bbox are provided.

zoomnumber double

Zoom level value

zoomUnitstring

Zoom unit (e.g., mi, km, m)

scalenumber double

Map scale

minxnumber double

Bounding box minimum X (minx). Used together with miny,maxx,maxy.

minynumber double

Bounding box minimum Y (miny). Used together with minx,maxx,maxy.

maxxnumber double

Bounding box maximum X (maxx). Used together with minx,miny,maxy.

maxynumber double

Bounding box maximum Y (maxy). Used together with minx,miny,maxx.

resolutioninteger

Map resolution in DPI

backgroundColorstring

Background color (hex without #)

backgroundOpacitynumber double

Background opacity (0.0-1.0)

formatstring required

Output format (png or jpeg)

Response

Named map image rendered successfully. Returns PNG or JPEG based on the format parameter.

Changes

No recorded changes to this operation across all 1 revision of this API.