Caven Chen 4 лет назад
Родитель
Сommit
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
}


Загрузка…
Отмена
Сохранить