More transportation layer details at lower zoom levels
jeffreysfridge opened this issue · 1 comments
I'm sorry if this is a basic question, but I've been trying different things with tippacanoe for a couple weeks now and I can't manage to figure it out. I have the mbtiles file of a state in the US that uses the Open Tile Schema. I would like to see more transportation layer details at lower zoom levels. For example, I want to see all the primary, trunk, and motorway roads from zoom 1 to 5. At zoom 6 to 9 I want to add all the secondary roads. From zoom 9 on up I want to see all transportation roads and paths. I'd like to merge that back into the original mbtiles file to replace the existing transportation layer. What steps do I need to take to do this?
First of all you install this library and convert your mbtiles into geojson and then use tippecanoe to create mbtiles and later join them with tile-join
-- For converting mbtiles to geojson
- https://github.com/mapbox/vt2geojson
- you can create seprate geojson for each layer in mbtile
---Creating geojson from mbtile
Once you have the geojson you can alway either split them with feature wise like where highway/fcalss ='primary'
tippecanoe z1 Z17 -l primary --drop-densest-as-needed --coalesce-densest-as-needed -pS splitted.geojson ( primary and trunk )
tippecanoe z6 Z17 -l secondary --drop-densest-as-needed --coalesce-densest-as-needed -pS splitted.geojson ( secondary )
tippecanoe z13 Z17 -l other --drop-densest-as-needed --coalesce-densest-as-needed -pS splitted.geojson ( other )
Then you can use tile join command to merge all of them