new ServerColor(options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.ServerColor(options);
  
  // 弃用的写法
  new SuperMap.ServerColor(options);
</script>
// ES6 Import
import { ServerColor } from '@supermap/iclient-leaflet';
new ServerColor(options);
        
        
        
            common/iServer/ServerColor.js, line 5
        
        
    | Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Object | 可选参数。 
 | 
Members
- 
    bluenumber
- 
    
    获取或设置蓝色值。 
- 
    greennumber
- 
    
    获取或设置绿色值。 
- 
    rednumber
- 
    
    获取或设置红色值。 - Default Value: 255
 
Methods
- 
    static formJson(jsonObject){ServerColor}common/iServer/ServerColor.js, line 53
- 
    
    将 JSON 对象转化为 ServerColor 对象。 Name Type Description jsonObjectObject 要转换的 JSON 对象。 Returns:Type Description ServerColor 转化后的 ServerColor 对象。 
- 
    destroy()common/iServer/ServerColor.js, line 41
- 
    
    释放资源,将引用资源的属性置空。