kopia lustrzana https://github.com/robhawkes/vizicities
Merge pull request #191 from UDST/bug/layer-pause-fix
Fix layer pause on visibility updatefeature/threejs-update
commit
a09fd95627
|
@ -117,6 +117,16 @@ class GeoJSONTileLayer extends TileLayer {
|
||||||
return new GeoJSONTile(quadcode, this._path, layer, newOptions);
|
return new GeoJSONTile(quadcode, this._path, layer, newOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hide() {
|
||||||
|
this._pauseOutput = true;
|
||||||
|
super.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
show() {
|
||||||
|
this._pauseOutput = false;
|
||||||
|
super.show();
|
||||||
|
}
|
||||||
|
|
||||||
// Destroys the layer and removes it from the scene and memory
|
// Destroys the layer and removes it from the scene and memory
|
||||||
destroy() {
|
destroy() {
|
||||||
this._world.off('preUpdate', this._throttledWorldUpdate);
|
this._world.off('preUpdate', this._throttledWorldUpdate);
|
||||||
|
|
Ładowanie…
Reference in New Issue