From 752e28e095f96f0b8ceae1726ff22dc32be26de2 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 30 Nov 2017 12:10:43 -0800 Subject: [PATCH] Don't include _placementDirty in loaded() loaded() is an indication of data completeness, not rendering quiescence. Transitory effects (transitions, cross-fading, collision fading) are not included by design. --- src/ui/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/map.js b/src/ui/map.js index 76ed974e63c..10472067dc3 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -1420,7 +1420,7 @@ class Map extends Camera { * @returns {boolean} A Boolean indicating whether the map is fully loaded. */ loaded() { - if (this._styleDirty || this._sourcesDirty || this._placementDirty) + if (this._styleDirty || this._sourcesDirty) return false; if (!this.style || !this.style.loaded()) return false;