Open kylebarron opened 4 years ago
when you're generating tiles through OpenMapTiles for a specific part of the globe, labels are otherwise missing
@kylebarron I guess you are using quickstart.sh
to generate these tiles, right?
Yes; specifically in the screenshot above, I've generated OpenMapTiles only for California, Oregon, Washington, and New Hampshire.
Thanks for confirming.
Some thoughts:
natural_earth_shaded_relief
raster tiles. This could be solved using bounds for the raster source to limit the rendering: https://docs.mapbox.com/mapbox-gl-js/style-spec/#sources-raster-boundsThat said, because of 4/5 and maybe 8/9 I'm not sure if this is something we should implement as default (currently I'm inclined to leave it like it is now). Some users might want a complete/nice planet for low zooms while others might prefer limiting the shaded relief raster tiles to their custom extracts (point 6).
Using vector NE tiles could be an interesting alternative to point 7, because there is no need to import the whole planet when creating OMT tiles.
@kylebarron what do you think about the following:
I'd think we'd set Natural Earth vector to display at zooms 0-6(?) and then set most/all other OSM features/labels to only display from zoom 7 onwards
Evaluate and think about further if this would be a good default
Document the several options (use bounds for raster tiles, use OSM planet for low zooms, use NE for low zooms) in the Readme
adding a new section like "Use OSM Liberty style with custom OSM planet extracts".
@kylebarron did you get anywhere with this? I'd also like to do this instead of using the raster tiles I'm using full planet
I did not, and I'm not working with this anymore
Has any thought been given to using the vector Natural Earth tiles? Currently osm-liberty only uses the
natural_earth_shaded_relief
raster tiles.Take a look at this example map: http://naturalearthtiles.lukasmartinelli.ch/maps/natural_earth.vector.html
Here's the
style.json
for that map. It looks like in thatstyle.json
the vector data is overlaid on top of the raster, so a PR to OSM-liberty would be adding the vector layers to the existing raster.The current raster layer only shows shading, and doesn't include boundaries or labels. Presumably when OSM data has been generated for the entire world, the OSM labels show through at low zooms, but when you're generating tiles through OpenMapTiles for a specific part of the globe, labels are otherwise missing:
Vector natural earth tiles are also available on Klokantech's repo: https://github.com/klokantech/naturalearthtiles/tree/gh-pages/tiles/natural_earth.vector
So if there was interest in adding this, I'd think we'd set Natural Earth vector to display at zooms 0-6(?) and then set most/all other OSM features/labels to only display from zoom 7 onwards