new ThemeGraphText(options)
Usage
import { ThemeGraphText } from '@supermapgis/iclient-leaflet';
new ThemeGraphText(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeGraphText({paramsNames});
// 弃用的写法
new SuperMap.ThemeGraphText(options);
</script>
common/iServer/ThemeGraphText.js, line 8
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
可选参数。
|
API Relations
Returned by:
ThemeGraphText.fromObj.
Members
-
graphTextDisplayedboolean
-
是否显示统计专题图上的文字标注。
-
graphTextFormatThemeGraphTextFormat
-
统计专题图文本显示格式。 文本显示格式包括百分数、真实数值、标题、标题+百分数、标题+真实数值。
- Default Value: ThemeGraphTextFormat.CAPTION
graphTextStyleServerTextStyle
统计专题图上的文字标注风格。
Methods
-
static fromObj(obj){ThemeGraphText}
common/iServer/ThemeGraphText.js, line 63 -
从传入对象获取统计专题图文字标注风格类。
Name Type Description objObject 传入对象。
Returns:
Type Description ThemeGraphText ThemeGraphText 对象。 -
destroy()
common/iServer/ThemeGraphText.js, line 49 -
释放资源,将引用资源的属性置空。