浏览代码

improve the plot #39

tags/2.3.1
Caven Chen 4 年前
父节点
当前提交
97fa21ff68
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 0
    2
      modules/tools/DrawTool.js
  2. 2
    3
      modules/tools/EditTool.js

+ 0
- 2
modules/tools/DrawTool.js 查看文件

@@ -142,7 +142,6 @@ class DrawTool {
* @returns {DrawTool}
*/
on(type, callback, context) {
this._plotEvent.on(type, callback, context || this)
this._plotEvent.on(type, callback, context || this)
return this
}
@@ -155,7 +154,6 @@ class DrawTool {
* @returns {DrawTool}
*/
off(type, callback, context) {
this._plotEvent.off(type, callback, context || this)
this._plotEvent.off(type, callback, context || this)
return this
}

+ 2
- 3
modules/tools/EditTool.js 查看文件

@@ -129,7 +129,7 @@ class EditTool {
: isCenter
? this._options.icon_center
: this._options.icon_anchor
let anchor = this._anchorLayer.add({
let anchor = this._anchorLayer.entities.add({
position: position,
billboard: {
image: image,
@@ -199,7 +199,6 @@ class EditTool {
* @returns {EditTool}
*/
on(type, callback, context) {
this._plotEvent.on(type, callback, context || this)
this._plotEvent.on(type, callback, context || this)
return this
}
@@ -212,7 +211,6 @@ class EditTool {
* @returns {EditTool}
*/
off(type, callback, context) {
this._plotEvent.off(type, callback, context || this)
this._plotEvent.off(type, callback, context || this)
return this
}
@@ -250,6 +248,7 @@ class EditTool {
this._unbindEvent()
this._viewer.tooltip.enable = false
this._anchorLayer.entities.removeAll()
this._anchors = []
return this
}


正在加载...
取消
保存