URI

<map_uri>/attributes[.<format>]

Supported Methods

PUT

Parent Resource

map

Description

The mapThumbnail resource is the map thumbnail resource. By sending a PUT request, you can update the thumbnail information of a map.

Supported Methods:

  • PUT: Update the thumbnail information of a map.

Supported output formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP Request Methods

Perform HTTP requests on the following URI. The rjson output format is used as an example, where supermapiportal is the server name.

http://supermapiportal:8190/iportal/web/maps/{id}/thumbnail.rjson

PUT Request

Update the thumbnail of the current map.

Request Parameters

To update the map thumbnail, the request body is the Base64 encoding of the map thumbnail image.

Response Structure

The returned resource representation structure is as follows:

Field Type Description
succeed boolean Whether the thumbnail update was successful.
error HttpError Error information. This field is not returned if the update is successful.

Response Example

Perform a PUT request on the mapThumbnail resource: http://localhost:8190/iportal/web/maps/418532371/thumbnail.rjson to update the thumbnail of the current map. The request body is as follows:

iVBORw0KGgoAAAANSUhEUgAAAQkAAACqCAYAAAC l7qQAAAFPklEQVR4Xu3WsRHDQAwEMav/ouUK7OAYLpQzIPizod93/fjI0CAwABRyS8DQIE/gmIhPdBgMBfAZHwQAgQEAlvgACBXcCfxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrHbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrHbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCIrBbmSSQEBCJxJktSWAXEIndziSBhIBIJM5sSQK7gEjsdiYJJAREInFmSxLYBURitzNJICEgEokzW5LALiASu51JAgkBkUic2ZIEdgGR2O1MEkgIiETizJYksAuIxG5nkkBCQCQSZ7YkgV1AJHY7kwQSAiKROLMlCewCzz5qkgCBgoBIFK5sRwIHAZE44BklUBAQicKV7UjgICASBzyjBAoCIlG4sh0JHARE4oBnlEBBQCQKV7YjgYOASBzwjBIoCIhE4cp2JHAQEIkDnlECBQGRKFzZjgQOAiJxwDNKoCAgEoUr25HAQUAkDnhGCRQERKJwZTsSOAiIxAHPKIGCwBfHMmJlhvppXAAAAABJRU5ErkJggg: =

The rjson format response is as follows:

{

    "succeed": true

}

See