mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/mapbox/vector-tile-2.0.2' into develop
This commit is contained in:
@@ -6,7 +6,7 @@ import stringify from 'fast-json-stable-stringify';
|
||||
import polygonClipping from 'polygon-clipping';
|
||||
|
||||
import Protobuf from 'pbf';
|
||||
import vt from '@mapbox/vector-tile';
|
||||
import { VectorTile } from '@mapbox/vector-tile';
|
||||
|
||||
import { utilHashcode, utilRebind, utilTiler } from '../util';
|
||||
|
||||
@@ -22,7 +22,7 @@ function abortRequest(controller) {
|
||||
|
||||
|
||||
function vtToGeoJSON(data, tile, mergeCache) {
|
||||
var vectorTile = new vt.VectorTile(new Protobuf(data));
|
||||
var vectorTile = new VectorTile(new Protobuf(data));
|
||||
var layers = Object.keys(vectorTile.layers);
|
||||
if (!Array.isArray(layers)) { layers = [layers]; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user