diff --git a/compare-vector-tiles/index.js b/compare-vector-tiles/index.js index fafb388..efd7813 100644 --- a/compare-vector-tiles/index.js +++ b/compare-vector-tiles/index.js @@ -5,14 +5,14 @@ var Protobuf = require('pbf'); var tileInformation = require('./tileInformation.js'); var http = require('http'); -var urls = ['0:0:0', '1:1:0', '2:2:0', '3:4:2', '4:8:5', '5:16:11', '6:33:22', '7:67:44', '8:134:89', '9:268:179', '10:536:358', '11:1072:717', '12:2145:1434', '13:4290:2868', '14:8580:5737', '15:17161:11474']; +var urls = ['0-0-0', '1-1-0', '2-2-0', '3-4-2', '4-8-5', '5-16-11', '6-33-22', '7-67-44', '8-134-89', '9-268-179', '10-536-358', '11-1072-717', '12-2145-1434', '13-4290-2868', '14-8580-5737', '15-17161-11474']; function processTiles(directory, name) { urls.forEach(function(url) { var filePath = directory + url + ".vector.pbf"; var tile = new VectorTile(new Protobuf(fs.readFileSync(filePath))); - var url1 = url.replace(':', '/'); - var url2 = url1.replace(':', '/'); + var url1 = url.replace('-', '/'); + var url2 = url1.replace('-', '/'); var output = tileInformation.printOutput(tile.layers, name, url2); writeOutput(output, name, url); }); diff --git a/compare-vector-tiles/vector.pbf b/compare-vector-tiles/vector.pbf deleted file mode 100644 index b02872a..0000000 Binary files a/compare-vector-tiles/vector.pbf and /dev/null differ