Geographics placements working again.
This commit is contained in:
@@ -130,8 +130,13 @@ export class GeoMap {
|
||||
}
|
||||
|
||||
unload() {
|
||||
console.log('unload', this, this.image)
|
||||
if (this.image) {
|
||||
if (this.image.parent) this.image.parent.removeChild(this.image)
|
||||
console.log('removeScatter')
|
||||
if (this.image.parent) {
|
||||
console.log('Remove from parent')
|
||||
this.image.parent.removeChild(this.image)
|
||||
}
|
||||
this.image.scatter = null
|
||||
}
|
||||
}
|
||||
@@ -143,6 +148,7 @@ export class GeoMap {
|
||||
* @param {ScatterEvent}[e] - Contains informations on how the element was transformed.
|
||||
*/
|
||||
transformed(e) {
|
||||
console.log(this.name)
|
||||
this.onTransform.call(this, e)
|
||||
}
|
||||
|
||||
@@ -496,8 +502,6 @@ export class GeoMap {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
GeoMap.counter = 0
|
||||
|
||||
Reference in New Issue
Block a user