new ThemeLabelBackground(options)
Usage
import { ThemeLabelBackground } from '@supermapgis/iclient-leaflet';
new ThemeLabelBackground(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeLabelBackground({paramsNames});
// 弃用的写法
new SuperMap.ThemeLabelBackground(options);
</script>
common/iServer/ThemeLabelBackground.js, line 8
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
可选参数。
|
API Relations
Returned by:
ThemeLabelBackground.fromObj.
Members
-
backStyleServerStyle
-
标签专题图中标签背景风格。当背景形状 labelBackShape 属性设为 NONE(即无背景形状)时,backStyle 属性无效。
-
labelBackShapeLabelBackShape
-
标签专题图中标签背景的形状枚举类。背景类型可以是矩形、圆角矩形、菱形、椭圆形、三角形和符号等,即不使用任何的形状作为标签的背景。
- Default Value: LabelBackShape.NONE
Methods
-
static fromObj(obj){ThemeLabelBackground}
common/iServer/ThemeLabelBackground.js, line 54 -
从传入对象获取标签背景风格类。
Name Type Description objObject 传入对象。
Returns:
Type Description ThemeLabelBackground ThemeLabelBackground 对象。 -
destroy()
common/iServer/ThemeLabelBackground.js, line 41 -
释放资源,将引用资源的属性置空。