Pārlūkot izejas kodu

improve the plot #39

tags/2.3.1
Caven Chen pirms 4 gadiem
vecāks
revīzija
97fa21ff68
2 mainītis faili ar 2 papildinājumiem un 5 dzēšanām
  1. 0
    2
      modules/tools/DrawTool.js
  2. 2
    3
      modules/tools/EditTool.js

+ 0
- 2
modules/tools/DrawTool.js Parādīt failu

@@ -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 Parādīt failu

@@ -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
}


Notiek ielāde…
Atcelt
Saglabāt