| @@ -131,14 +131,15 @@ class Edit { | |||
| /** | |||
| * | |||
| * @param measure | |||
| * @param plot | |||
| * @param options | |||
| * @returns {Edit} | |||
| */ | |||
| start(measure, options) { | |||
| this._viewer = measure.viewer | |||
| this._layer = measure.layer | |||
| start(plot, options) { | |||
| this._viewer = plot.viewer | |||
| this._layer = plot.layer | |||
| this._options = options | |||
| this._viewer.editTool.deactivate() | |||
| this._viewer.editTool.tooltipMess = '点击锚点移动,右击结束编辑' | |||
| this._viewer.editTool.activate(options) | |||
| this._mountedHook() | |||
| @@ -137,8 +137,8 @@ class EditTool { | |||
| position: position, | |||
| billboard: { | |||
| image: image, | |||
| width: 12, | |||
| height: 12, | |||
| width: this._options.icon_size[0], | |||
| height: this._options.icon_size[1], | |||
| eyeOffset: new Cesium.Cartesian3(0, 0, -100), | |||
| heightReference: | |||
| this._viewer.scene.mode === Cesium.SceneMode.SCENE3D && | |||