Class: ThemeGridUniqueItem

ThemeGridUniqueItem

栅格单值专题图子项类。 栅格单值专题图是将值相同的单元格归为一类,每一类是一个专题图子项。

new ThemeGridUniqueItem(options)

Usage
import { ThemeGridUniqueItem } from '@supermapgis/iclient-leaflet';

new ThemeGridUniqueItem(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
  new L.supermap.ThemeGridUniqueItem({paramsNames});
  // 弃用的写法
  new SuperMap.ThemeGridUniqueItem(options);
</script>
common/iServer/ThemeGridUniqueItem.js, line 7
Name Type Description
options Object

可选参数。

Name Type Default Description
caption string 可选

子项的名称。

color ServerColor 可选

子项的显示颜色。

unique number

子项的专题值,即单元格的值,值相同的单元格位于一个子项内。

visible boolean true 可选

子项是否可见。

API Relations

Returned by: ThemeGridUniqueItem.fromObj.

Members

captionstring

栅格单值专题图子项的名称。

栅格单值专题图子项的显示颜色。

uniquenumber

栅格单值专题图子项的专题值,即单元格的值,值相同的单元格位于一个子项内。

visibleboolean

栅格单值专题图子项是否可见。

Default Value:
true

Methods

static fromObj(obj){ThemeGridUniqueItem}

common/iServer/ThemeGridUniqueItem.js, line 86

从传入对象获取栅格单值专题图子项类。

Name Type Description
obj Object

传入对象。

Returns:
Type Description
ThemeGridUniqueItem ThemeGridUniqueItem 对象。

destroy()

common/iServer/ThemeGridUniqueItem.js, line 54

释放资源,将引用资源的属性置空。

toServerJSONObject(){Object}

common/iServer/ThemeGridUniqueItem.js, line 70

转换成对应的 JSON 格式对象。

Returns:
Type Description
Object 对应的 JSON 格式对象。