Extends
Methods
# addTo(layer) → {Graphic}
将实体加入图层
Parameters:
| Name | Type | Description |
|---|---|---|
layer |
Layer
|
图层 |
- Overrides:
- See:
this - 当前实体对象
# setLabel(text, textStyle) → {RectangleEntity}
设置文字
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string
|
文字 |
textStyle |
Object
|
文字样式,css |
- 当前实体,链式调用