new LabelImageCell(options)
Usage
import { LabelImageCell } from '@supermapgis/iclient-leaflet';
new LabelImageCell(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.LabelImageCell({paramsNames});
// 弃用的写法
new SuperMap.LabelImageCell(options);
</script>
common/iServer/LabelImageCell.js, line 7
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
可选参数。
|
API Relations
As constructor parameter:
ThemeLabel.
Extends
LabelImageCell
-> LabelMatrixCell
Members
-
heightnumber
-
设置图片的高度,单位为毫米。
-
pathFieldstring
-
设置矩阵标签元素所使用的图片路径对应的字段名称。
-
rotationnumber
-
图片的旋转角度。逆时针方向为正方向,单位为度,精确到 0.1 度。
- Default Value: 0.0
sizeFixedboolean
是否固定图片的大小。
typestring
设置矩阵标签元素的类型,在制作矩阵标签元素时必须指定元素类型。
widthnumber
设置图片的宽度,单位为毫米。
Methods
-
destroy()
common/iServer/LabelImageCell.js, line 73 -
释放资源,将引用资源的属性置空。