Fix breaking bug introduced in 0353effa67

This commit is contained in:
Christian Paul 2017-12-23 02:07:30 -08:00
parent 7d6aa54d33
commit 57497ecea7

View File

@ -145,8 +145,8 @@ class Renderer {
const labels = []; const labels = [];
const drawOrder = this._generateDrawOrder(tiles[0].xyz.z); const drawOrder = this._generateDrawOrder(tiles[0].xyz.z);
for (const layerId in drawOrder) { for (const layerId of drawOrder) {
for (const tile in tiles) { for (const tile of tiles) {
const layer = tile.layers[layerId]; const layer = tile.layers[layerId];
if (!layer) continue; if (!layer) continue;
for (const feature of layer.features) { for (const feature of layer.features) {