Class: ServerInfo

ServerInfo

服务器信息(安全相关),包含服务器类型,服务地址,token服务地址等。

new ServerInfo(type, options)

Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/mapboxgl/iclient-mapboxgl.js"></script>
<script>
  new mapboxgl.supermap.ServerInfo(type, options);
  
  // 弃用的写法
  new SuperMap.ServerInfo(type, options);

</script>

// ES6 Import
import { ServerInfo } from '@supermap/iclient-mapboxgl';

new ServerInfo(type, options);

common/security/ServerInfo.js, line 7
Name Type Description
type string

服务器类型。

options Object

参数。

Name Type Description
server string

服务器地址,如:http://supermapiserver:8090/iserver。

tokenServiceUrl string 可选

如:http://supermapiserver:8090/iserver/services/security/tokens.json。

keyServiceUrl string 可选

如:http://supermapiserver:8092/web/mycontent/keys/register.json。

Members

keyServiceUrlstring

如:http://supermapiserver:8092/web/mycontent/keys/register.json。

serverstring

服务器地址。

tokenServiceUrlstring

如:http://supermapiserver:8090/iserver/services/security/tokens.json。

服务器类型。