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 '@supermapgis/iclient-mapboxgl';
new ServerInfo(type, options);
        
        
        
            common/security/ServerInfo.js, line 7
        
        
    | Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| type | string | 服务器类型。 | ||||||||||||
| options | Object | 参数。 
 | 
Members
- 
    keyServiceUrlstring
- 
    
    如:http://supermapiserver:8092/web/mycontent/keys/register.json。 
- 
    serverstring
- 
    
    服务器地址。 
- 
    tokenServiceUrlstring
- 
    
    如:http://supermapiserver:8090/iserver/services/security/tokens.json。 
- 
    typeServerType
- 
    
    服务器类型。