0

I am using mapbox to visualise the data but i want to copy a pbf file(already generated by tippecannoe) from one source to another source with a different source layer so that it can be visualised by mapbox.

`

Some of my attempt looks like below

var pbf = new Pbf(fs.readFileSync('4.pbf'));

const tile = new VectorTile(new Pbf(fs.readFileSync('4.pbf')));
const layer_name=Object.keys(tile.layers).join(',');
obj.new_layer_name = obj.layer_name;
delete obj.layer_name;
console.log('Vector source layers found: ', Object.keys(tile.layers).join(','))

I want to either convert this again into pbf format or any other method to copy pbf tiles with different source layer so that it can be visualised by mapbox

0 Answers0