Lurker News

Comments (257) 78 threads

Show all comments

Showing thread 27 of 78

Doctor_Fegg1 reply#
This is great!

> The map tiles are loaded in from two OpenStreetMap tile providers (one with street names, one without).
You probably don't need to do that. You can use the same tiles, the same stylesheet even, and just hide the street names layer in code:
https://docs.mapbox.com/mapbox-gl-js/example/toggle-layers/

adamlynch#
I'll look into this. Since I wrote that initially, the no-streets OSM map was discontinued so I switched to Mapbox & Maptiler. But I do use two full layers (one custom one without street names) rather than doing what you suggest. Hopefully it's not a paid feature.