This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Smaller roads visibility on zoom <13 with mapbox

1

Hey,

I'm trying to show up smallers roads like service, path etc on smaller zooms like <10.

Using mapbox and default sources is impossible i think..

#roads[class="service"]{
  [zoom<13]{line-width:1; line-color:red}
}

There is any possibility to do it?

asked 16 Oct '15, 09:48

k0n0pka's gravatar image

k0n0pka
26112
accept rate: 0%

edited 19 Oct '15, 19:10

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

4

If Mapbox Studio's default (vector tile-backed) data source doesn't include small roads at z13, then you have a handful of choices:

  • Set up your own rendering stack: switch2osm.org explains how to set up a traditional raster renderer
  • Contact an alternative commercial supplier such as Thunderforest, who may be able to supply different vector tiles
  • Create your own vector tiles with a utility like Tilemaker, which has the detail you want at these zoom levels, and serve them

answered 16 Oct '15, 12:14

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

1

"and serve them", how i can import it as source to mapbox studio?

(18 Oct '15, 12:40) k0n0pka
1

I believe you can specify a custom tile URL using the 'Change source' option in Mapbox Studio. If you are hosting your own tiles, you will need to serve the tiles to this URL. The mbtileserver.rb tool in Tilemaker is a simple example of how to do this.

If all of this sounds like gobbledegook, it might be worth you contacting either Mapbox or Thunderforest to see if they can meet your needs.

(19 Oct '15, 10:49) Richard ♦

Source code available on GitHub .