I'm using Mapnik + Mapbox NodeJS stack. Given two vector tiles (PBFs) for the same location/zoom, with some layers having the same name in both. How do I merge them into one PBF tile - replacing identically named layers in the first tile with the ones from the second tile?
I found that I can add layers via GeoJSON, but it seems awfully inefficient:
addGeoJSON does not replace existing layer, but adds a new one (even if the same name already exists), so I have to export each layer to JSON and re-add them to a new tile: