new HighlightPrimitive(options)
overlay/primitive/HighlightPrimitive.js, line 21
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* |
|
Extends
Classes
Members
-
attr
-
覆盖物的额外属性设置
-
readonlydelegate
-
覆盖物的代理对象
-
id
-
设置覆盖物的业务 id
-
readonlyoverlayEvent
-
覆盖物的事件对象
-
readonlyoverlayId
-
覆盖物唯一标识
-
show
-
覆盖物的可见性
-
readonlystate
-
覆盖物的状态
Methods
-
添加到指定图层
Name Type Description layerEntityLayer 指定图层
Returns:
Type Description Overlay -
触发事件
Name Type Description type* params* Returns:
Type Description Overlay -
注销事件
Name Type Description type* 事件类型
callback* 监听回调
context* Returns:
Type Description Overlay -
注册事件
Name Type Description type* 事件类型
callback* 监听回调
context* Returns:
Type Description Overlay -
从图层上移出
Returns:
Type Description Overlay -
设置文字标签
Name Type Description textProperty | string 指定文本的属性。支持显式换行符'\ n'。
textStyleObject text 样式
Returns:
Type Description Overlay -
设置样式
Name Type Description styleObject Returns:
Type Description Overlay