new ThemeMemoryData(srcData, targetData)
Usage
// 浏览器
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
new ol.supermap.ThemeMemoryData(srcData, targetData);
// 弃用的写法
new SuperMap.ThemeMemoryData(srcData, targetData);
</script>
// ES6 Import
import { ThemeMemoryData } from '@supermapgis/iclient-ol';
new ThemeMemoryData(srcData, targetData);
common/iServer/ThemeMemoryData.js, line 5
Name | Type | Description |
---|---|---|
srcData |
Array |
原始值数组。 |
targetData |
Array |
外部值数组。 |
Members
-
srcDataArray
-
原始值数组,该属性值将被 targetData 属性所指定的值替换掉,然后制作专题图,但数据库中的值并不会改变。
-
targetDataArray
-
外部值数组,即用于制作专题图的内存数据,设定该属性值后,会将 srcData 属性所指定的原始值替换掉制作专题图,但数据库中的值并不会改变。
Methods
-
destroy()
common/iServer/ThemeMemoryData.js, line 33 -
释放资源,将引用资源的属性置空。
-
toJSON(){string}
common/iServer/ThemeMemoryData.js, line 44 -
将 ThemeMemoryData 对象转化为 JSON 字符串。
Returns:
Type Description string 返回转换后的 JSON 字符串。