Fix vector tile layers

(closes #6426)

After switching from XHR->fetch, we now parse the response separately,
so the `vtToGeoJSON` function already has an ArrayBuffer to work with.
This commit is contained in:
Bryan Housel
2019-05-24 10:15:35 -04:00
parent 0ded25885d
commit 2a08868c14
+1 -1
View File
@@ -22,7 +22,7 @@ function abortRequest(controller) {
function vtToGeoJSON(data, tile, mergeCache) {
var vectorTile = new vt.VectorTile(new Protobuf(data.response));
var vectorTile = new vt.VectorTile(new Protobuf(data));
var layers = Object.keys(vectorTile.layers);
if (!Array.isArray(layers)) { layers = [layers]; }