new Property(key, value)
Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
new SuperMap.Plot.Property(key, value);
</script>
// ES6 Import
import { Property } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';
new Property(key, value);
common/plot/Property.js, line 3
Name | Type | Description |
---|---|---|
key |
string |
自定义属性的关键字。 |
value |
string |
自定义属性的值。 |
Methods
-
clone(){Property}
common/plot/Property.js, line 85 -
克隆属性对象。
Returns:
Type Description Property 克隆后的属性对象。 -
destroy()
common/plot/Property.js, line 76 -
销毁该类,释放相关资源。
-
getKey(){string}
common/plot/Property.js, line 49 -
获取自定义属性的关键字。
Returns:
Type Description string 返回自定义属性的关键字。 -
getValue(){Object}
common/plot/Property.js, line 67 -
获取自定义属性的值。
Returns:
Type Description Object 返回自定义属性的值。 -
setKey(key)
common/plot/Property.js, line 40 -
设置自定义属性的关键字。
Name Type Description key
string 自定义属性的关键字。
-
setValue(value)
common/plot/Property.js, line 58 -
设置自定义属性的值。
Name Type Description value
Object 自定义属性的值。