YzhModify

修改点、线、面接口

new yzhCesium.YzhModify(viewer, option)

绘制工具
Name Type Description
viewer Viewer 三维视窗
option YzhDefaultSymbols.Option 选项
Name Type Description
dataSource DataSource 数据源
tolerate Number 屏幕像素容差
pointer PointGraphics.ConstructorOptions 点显示样式
billboard BillboardGraphics.ConstructorOptions 点标注显示样式
label LabelGraphics.ConstructorOptions 标注显示样式
polyline PolylineGraphics.ConstructorOptions 线显示样式
polygon PolygonGraphics.ConstructorOptions 面显示样式
callbackInfo object 修改后的信息
Example:
创建实例
import {YzhModify} from "yzhcesium/libs/YzhCesium";
let modify=new YzhModify(viewer,{});

Methods

清除所有,包括点击事件和清除资源
Example:
清除所有
measure.clearAll();
清除所有,包括点击事件和清除资源
Example:
清除所有
measure.clearAll();

clearHandler()

清除鼠标事件
Example:
清除鼠标事件
measure.clearHandler();

clearHandler()

清除鼠标事件
Example:
清除鼠标事件
measure.clearHandler();

clearResult()

清除资源,即测量结果的entity
Example:
清除资源
measure.clearResult();

clearResult()

清除资源,即测量结果的entity
Example:
清除资源
measure.clearResult();

startModify(option)

开始修改
Name Type Description
option 暂未使用

startModify(option)

开始修改
Name Type Description
option 暂未使用
修改点、线、面接口

new yzhCesium.YzhModify(viewer, option)

绘制工具
Name Type Description
viewer Viewer 三维视窗
option YzhDefaultSymbols.Option 选项
Name Type Description
dataSource DataSource 数据源
tolerate Number 屏幕像素容差
pointer PointGraphics.ConstructorOptions 点显示样式
billboard BillboardGraphics.ConstructorOptions 点标注显示样式
label LabelGraphics.ConstructorOptions 标注显示样式
polyline PolylineGraphics.ConstructorOptions 线显示样式
polygon PolygonGraphics.ConstructorOptions 面显示样式
callbackInfo object 修改后的信息
Example:
创建实例
import {YzhModify} from "yzhcesium/libs/YzhCesium";
let modify=new YzhModify(viewer,{});

Methods

清除所有,包括点击事件和清除资源
Example:
清除所有
measure.clearAll();
清除所有,包括点击事件和清除资源
Example:
清除所有
measure.clearAll();

clearHandler()

清除鼠标事件
Example:
清除鼠标事件
measure.clearHandler();

clearHandler()

清除鼠标事件
Example:
清除鼠标事件
measure.clearHandler();

clearResult()

清除资源,即测量结果的entity
Example:
清除资源
measure.clearResult();

clearResult()

清除资源,即测量结果的entity
Example:
清除资源
measure.clearResult();

startModify(option)

开始修改
Name Type Description
option 暂未使用

startModify(option)

开始修改
Name Type Description
option 暂未使用