Class

HtmlIcon

HtmlIcon(position, content)

Constructor

# new HtmlIcon(position, content)

自定义广告牌

Parameters:
Name Type Description
position Position

任意类型的坐标

content string

广告牌的内容

Author:
  • xyj

Extends

Members

# content

Element | String

# readonly content

Element字符串或者对象

# position

Position

# readonly position

图形坐标

# show

boolean

# readonly show

是否显示

string

# readonly type

类型

Methods

# addTo(layer) → {Graphic}

将实体加入图层

Parameters:
Name Type Description
layer Layer

图层

Overrides:
See:

this - 当前实体对象

Graphic

# setStyle() → {DivIcon}

设置样式

  • 返回自己,链式调用
DivIcon

# static fromEntity(entity) → {DivIcon}

从实体对象转化为自定义对象

Parameters:
Name Type Description
entity Object

其他对象实体

  • 自定义实体
DivIcon