Geographics placements working again.

This commit is contained in:
2019-11-05 11:07:36 +01:00
parent ff0606d0a7
commit 87727d28b9
8 changed files with 297 additions and 222 deletions
+7 -3
View File
@@ -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