mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
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:
@@ -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]; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user