Open the BaseMapConfig.json file in the [SuperMap iPortal_HOME]\webapps\iportal\resources\web-ui\config directory and set a valid basemap. The default configuration is https://iserver.supermap.io/iserver/services/map-china400/rest/maps/China_4326. The configuration fields are described as follows:

  • baseLayerUrl:Map service address, if you configure a basemap of the Tianditu type, you don't need to fill in the map service address.
  • type:Map service type, including RESTMAP, TIANDITU_VEC(Tianditu vector map), TIANDITU_TER(Tianditu topographic map)、TIANDITU_IMG(Tianditu imagery).
  • epsgCode:Epsg code. Tianditu type basemap only supports 4326 and 3857.
  • key:If you are configuring a basemap of the Tianditu type, you need to set an accessible key.

After completing the above configuration, it takes effect without restarting iPortal.

Example 1: Configure a RESTMAP type map service as a basemap

{

    "baseLayerUrl": "http://192.168.17.199:8090/iserver/services/map-china400/rest/maps/China_4326",

    "type": "RESTMAP",

    "epsgCode": 4326,

    "key": ""

}

Example 2:Configure a TIANDITU_VEC type map service as a basemap

{

    "baseLayerUrl": "",

    "type": "TIANDITU_VEC",

    "epsgCode": 4326,

    "key": "a58f3713862426ec0b2927cb43da8065"

}