kopia lustrzana https://github.com/robhawkes/vizicities
commit
e2e9ad367b
|
@ -153,8 +153,10 @@ class World extends EventEmitter {
|
|||
|
||||
_removeAttribution(id) {
|
||||
var elem = document.querySelectorAll('#attribution-container [data-layer="' + id + '"]')[0];
|
||||
if (elem) {
|
||||
elem.remove();
|
||||
}
|
||||
}
|
||||
|
||||
// Set world view
|
||||
setView(latlon) {
|
||||
|
|
|
@ -129,9 +129,11 @@ class EnvironmentLayer extends Layer {
|
|||
destroy() {
|
||||
this._skyboxLight = null;
|
||||
|
||||
if (this._skybox) {
|
||||
this.remove(this._skybox._mesh);
|
||||
this._skybox.destroy();
|
||||
this._skybox = null;
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue