kopia lustrzana https://github.com/robhawkes/vizicities
Merge pull request #206 from UDST/bug/remove-attribution
Remove attribution on layer removalfeature/threejs-update
commit
d0d7a97937
|
@ -277,6 +277,10 @@ class World extends EventEmitter {
|
|||
this._layers.splice(layerIndex, 1);
|
||||
};
|
||||
|
||||
if (layer._options.attribution) {
|
||||
this._removeAttribution(layer._options.id);
|
||||
}
|
||||
|
||||
if (layer.isOutput() && layer.isOutputToScene()) {
|
||||
this._engine._scene.remove(layer._object3D);
|
||||
this._engine._domScene3D.remove(layer._domObject3D);
|
||||
|
|
Ładowanie…
Reference in New Issue