GeoJsonGraphic
大约 1 分钟
GeoJsonGraphic
VE.graphic.GeoJsonGraphic
GeoJson
参数
new VE.graphic.GeoJsonGraphic()
options.style
样式
属性
attr
当前属性
readonly
boundingSphere- 类型: BoundingSphere
边界
readonly
center- 类型: VE.Point
中心点
readonly
points- 类型: Array.<VE.Point>
实际位置
positions
- 类型: Array.<VE.Point>
位置信息
readonly
style方法
addTo (target)
添加到
参数名称 | 类型 | 描述信息 |
---|---|---|
target | Map | GroupGraphic |
destroy ()
销毁
edit ()
编辑
flyTo ()
飞至
hide ()
隐藏
setOptions (options)
设置属性
参数名称 | 类型 | 描述信息 |
---|---|---|
options | object | |
options.position | VE.Point | 位置信息 |
options.positions | Array.<VE.Point> | 位置信息 |
options.attr | object | 属性 |
options.style | object | 样式 |
- 返回值:
BaseGraphic
show ()
显示
类型定义
VE.graphic.GeoJsonGraphic.StyleOption
- 类型: Object
参数名称 | 类型 | 描述信息 |
---|---|---|
url | string | json链接. |
data | object | json数据. |
polyline | VE.graphic.PolylineGraphic.StyleOption | 线的样式 |
label | VE.graphic.LabelGraphic.StyleOption | 文字的样式 |
billboard | VE.graphic.BillboardGraphic.StyleOption | 图标的样式 |
model | VE.graphic.ModelGraphic.StyleOption | 模型的样式 |
polygon | VE.graphic.PolygonGraphic.StyleOption | 面的样式 |