From 57497ecea77033d81cc5da135f62c70ee9e44045 Mon Sep 17 00:00:00 2001 From: Christian Paul Date: Sat, 23 Dec 2017 02:07:30 -0800 Subject: [PATCH] Fix breaking bug introduced in 0353effa67974e1189517da698ba7176fbcdf6d9 --- src/Renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer.js b/src/Renderer.js index 40d4884..47c0125 100644 --- a/src/Renderer.js +++ b/src/Renderer.js @@ -145,8 +145,8 @@ class Renderer { const labels = []; const drawOrder = this._generateDrawOrder(tiles[0].xyz.z); - for (const layerId in drawOrder) { - for (const tile in tiles) { + for (const layerId of drawOrder) { + for (const tile of tiles) { const layer = tile.layers[layerId]; if (!layer) continue; for (const feature of layer.features) {