new ThemeDotDensity(options)
Usage
import { ThemeDotDensity } from '@supermapgis/iclient-leaflet';
new ThemeDotDensity(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeDotDensity({paramsNames});
// 弃用的写法
new SuperMap.ThemeDotDensity(options);
</script>
common/iServer/ThemeDotDensity.js, line 8
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
Returned by:
ThemeDotDensity.fromObj.
Extends
ThemeDotDensity
-> CommonTheme
Members
-
dotExpressionstring
-
创建点密度专题图的字段或字段表达式。同时也是点的数目或密集程度的来源。
-
memoryDataThemeMemoryData
-
专题图内存数据。
用内存数据制作专题图的方式与表达式制作专题图的方式互斥,前者优先级较高。 第一个参数代表专题值,即数据集中用来做专题图的字段或表达式的值;第二个参数代表外部值。在制作专题图时,会用外部值代替专题值来制作相应的专题图。 -
styleServerStyle
-
点密度专题图中点的风格。
-
typestring
-
专题图类型。
-
valuenumber
-
专题图中每一个点所代表的数值。
点值的确定与地图比例尺以及点的大小有关。地图比例尺越大,相应的图面范围也越大, 点相应就可以越多,此时点值就可以设置相对小一些。点形状越大, 点值相应就应该设置的小一些。点值过大或过小都是不合适的。
Methods
-
static fromObj(obj){ThemeDotDensity}
common/iServer/ThemeDotDensity.js, line 89 -
从传入对象获取点密度专题图中点的风格。
Name Type Description objObject 传入对象。
Returns:
Type Description ThemeDotDensity ThemeDotDensity 对象。 -
destroy()
common/iServer/ThemeDotDensity.js, line 57 -
释放资源,将引用资源的属性置空。
-
toServerJSONObject(){Object}
common/iServer/ThemeDotDensity.js, line 73 -
转换成对应的 JSON 格式对象。
Returns:
Type Description Object 对应的 JSON 格式对象。