Class: ThemeGraphText

ThemeGraphText

统计专题图文字标注风格类。该类用于设置统计专题图上的文本显示格式和文字标注风格,文本显示格式包括百分数、真实数值、标题、标题和百分数、标题和真实数值。

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

可选参数。

Name Type Default Description
graphTextDisplayed boolean false 可选

是否显示统计专题图上的文字标注。

graphTextFormat ThemeGraphTextFormat ThemeGraphTextFormat.CAPTION 可选

统计专题图文本显示格式。

graphTextStyle ServerTextStyle 可选

统计专题图上的文字标注风格。

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
obj Object

传入对象。

Returns:
Type Description
ThemeGraphText ThemeGraphText 对象。

destroy()

common/iServer/ThemeGraphText.js, line 49

释放资源,将引用资源的属性置空。