bottomMap


URI

<maps_uri>/bottommap[.<format>]

Supported methods

PUT

Parent resource

maps

Introduction

Whether to update in batch with default base map.

Supported Methods:

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

Resource hierarchy

HTTP request methods

Execute the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/maps/bottommap.rjson

PUT request

Whether to update in batch with default base map.

Request parameter

Following arguments need to be passed in the request sent.

Name Type Description
ids List<Integer> Map ID list.
isBottomMap Boolean Whether it is base map.

Response structure

The structure of the response resource representation is as follows:

Field Type Description
succeed boolean Whether the base map is successfully updated in batch.
error Httperror Error information. The field will not display if the base map is successfully updated in batch.

Response example

Execute PUT request on bootomMap resource http://localhost:8090/iportal/web/maps/bottommap.rjson. The batch update base map is the default map. The request body is as follows:

{

    "isBottomMap": true,

    "ids": [

        1,

        2

    ]

}

The response result in rjson format returned is as follows:

{"succeed": true}

See