new CommonTheme(type, options)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.Theme(type, options);
// 弃用的写法
new SuperMap.Theme(type, options);
</script>
// ES6 Import
import { CommonTheme } from '@supermapgis/iclient-ol';
new CommonTheme(type, options);
common/iServer/Theme.js, line 6
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
type |
string |
专题图类型。 |
||||||
options |
Object |
可选参数。
|
Members
-
memoryDataThemeMemoryData
-
专题图内存数据。
用内存数据制作专题图的方式与表达式制作专题图的方式互斥,前者优先级较高。 第一个参数代表专题值,即数据集中用来做专题图的字段或表达式的值;第二个参数代表外部值。在制作专题图时,会用外部值代替专题值来制作相应的专题图。 -
typestring
-
专题图类型。
Methods
-
destroy()
common/iServer/Theme.js, line 45 -
释放资源,将引用资源的属性置空。
-
toServerJSONObject(){Object}
common/iServer/Theme.js, line 58 -
转换成对应的 JSON 格式对象。
Returns:
Type Description Object 对应的 JSON 格式对象。