Merge pull request #191 from UDST/bug/layer-pause-fix

Fix layer pause on visibility update
feature/threejs-update
Robin Hawkes 2016-10-25 16:25:41 +01:00 zatwierdzone przez GitHub
commit a09fd95627
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -117,6 +117,16 @@ class GeoJSONTileLayer extends TileLayer {
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
destroy() {
this._world.off('preUpdate', this._throttledWorldUpdate);