new ThemeGraphItem(options)
Usage
import { ThemeGraphItem } from '@supermapgis/iclient-leaflet';
new ThemeGraphItem(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeGraphItem({paramsNames});
// 弃用的写法
new SuperMap.ThemeGraphItem(options);
</script>
common/iServer/ThemeGraphItem.js, line 7
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
Returned by:
ThemeGraphItem.fromObj.
Members
-
captionstring
-
统计专题图子项的名称。
-
graphExpressionstring
-
统计专题图的专题变量。专题变量可以是一个字段或字段表达式。字段必须为数值型;表达式只能为数值型的字段间的运算。
-
memoryDoubleValuesArray.<number>
-
内存数组方式制作专题图时的值数组。
内存数组方式制作专题图时,只对 SmID 值在键数组(ThemeGraph#memoryKeys)中的记录制作专题图。 值数组的数值个数必须与键数组中数值的个数一致。值数组中的值将代替原来的专题值来制作统计专题图。 比如:利用面积字段和周长字段(即有两个统计专题图子项 )作为专题变量制作统计专题图。 -
uniformStyleServerStyle
-
统计专题图子项的显示风格。 每一个统计专题图子项都对应一种显示风格。
Methods
-
static fromObj(obj){ThemeGraphItem}
common/iServer/ThemeGraphItem.js, line 70 -
从传入对象获取统计专题图子项类。
Name Type Description objObject 传入对象。
Returns:
Type Description ThemeGraphItem ThemeGraphItem 对象。 -
destroy()
common/iServer/ThemeGraphItem.js, line 58 -
释放资源,将引用资源的属性置空。