v2

latestSwagger 2.02026-07-131451441001.2 KB
Map Legends

Get Legend

Generate a legend image for a given colormap.

If the colormap has non-contiguous values at the beginning or end, which aren't desired in the output image, they can be trimmed by specifying the number of values to trim.

get/data/legend/colormap/{colorMapName}

Path parameters

colorMapNamestring required

The name of the registered colormap to generate a legend for

Query parameters

api-versionstring required

The API version to use for this operation.

heightnumber float

The output height of the legend image

widthnumber float

The output width of the legend image

trim_startinteger

Number of items to trim from the start of the cmap

trim_endinteger

Number of items to trim from the end of the cmap

Response

Return an image.

string binary required