new ol.Graphic(geometry)
openlayers/overlay/graphic/Graphic.js, line 3
Name | Type | Description |
---|---|---|
geometry |
Object |
几何对象 |
Extends
Methods
-
staticol.Graphic.createStyleFunction(obj)
openlayers/overlay/graphic/Graphic.js, line 92 -
新建样式函数
Name Type Description obj
Object 对象参数
-
clone()
openlayers/overlay/graphic/Graphic.js, line 19 -
复制当前信息
-
destroy()
openlayers/overlay/graphic/Graphic.js, line 121 -
清除参数值
-
getGeometry()
openlayers/overlay/graphic/Graphic.js, line 47 -
获取当前几何信息
-
getId()
openlayers/overlay/graphic/Graphic.js, line 31 -
获取当前ID
-
getStyle()
openlayers/overlay/graphic/Graphic.js, line 64 -
获取样式
-
getStyleFunction()
openlayers/overlay/graphic/Graphic.js, line 84 -
获取样式函数
-
setGeometry(geometry)
openlayers/overlay/graphic/Graphic.js, line 55 -
设置当前几何信息
Name Type Description geometry
Object 几何参数
-
setId()
openlayers/overlay/graphic/Graphic.js, line 39 -
设置当前ID
-
setStyle(style)
openlayers/overlay/graphic/Graphic.js, line 72 -
设置样式
Name Type Description style
Object 样式参数