new ThemeGridUnique(options)
Usage
import { ThemeGridUnique } from '@supermapgis/iclient-leaflet';
new ThemeGridUnique(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeGridUnique({paramsNames});
// 弃用的写法
new SuperMap.ThemeGridUnique(options);
</script>
common/iServer/ThemeGridUnique.js, line 17
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
Returned by:
ThemeGridUnique.fromObj.
Extends
ThemeGridUnique
-> CommonTheme
Members
-
defaultcolorServerColor
-
栅格单值专题图的默认颜色。 对于那些未在格网单值专题图子项之内的要素使用该颜色显示。
-
itemsArray.<ThemeGridUniqueItem>
-
栅格单值专题图子项数组。 栅格单值专题图将值相同的单元格归为一类,每一类是一个专题图子项。
-
memoryDataThemeMemoryData
-
专题图内存数据。
用内存数据制作专题图的方式与表达式制作专题图的方式互斥,前者优先级较高。 第一个参数代表专题值,即数据集中用来做专题图的字段或表达式的值;第二个参数代表外部值。在制作专题图时,会用外部值代替专题值来制作相应的专题图。 -
typestring
-
专题图类型。
Methods
-
static fromObj(obj){ThemeGridUnique}
common/iServer/ThemeGridUnique.js, line 101 -
从传入对象获取栅格单值专题图类。
Name Type Description objObject 传入对象
Returns:
Type Description ThemeGridUnique ThemeGridUnique 对象 -
inherited destroy()
common/iServer/ThemeGridUnique.js, line 54 -
释放资源,将引用资源的属性置空。
-
toServerJSONObject(){Object}
common/iServer/ThemeGridUnique.js, line 77 -
转换成对应的 JSON 格式对象。
Returns:
Type Description Object 对应的 JSON 格式对象