Mapbox-gl-js: showing more place names for a certain zoom level ?

Created on 22 Jan 2016  路  4Comments  路  Source: mapbox/mapbox-gl-js

I have a map that has a width of 400px and shows a region in France at zoom level 8. However no single place name is shown on the map, probably because there are no real big cities in this region, with the result that the map is not very informative/useful.

To give the visitors of the website a better overview and better orientation, I want to show more place names at zoom level 8. How can I do this.

Probably this more a Mapbox studio question than a Mapbox-gl-js one...

dordogne

All 4 comments

Probably this more a Mapbox studio question than a Mapbox-gl-js one...

That is correct, this is a data issue, not a mapbox-gl-js issue :smile:

Some friendly pointers, though:

  • mapbox's postgis-vt-util includes a method called labelgrid
  • you might be able to use supercluster (now part of mapbox-gl-js core) to show more information
  • tippecanoe will help you create an efficient dataset containing a representative sample of all cities

This is a hard problem!

Below it's a comparison from before (mapbox.js) and after (mapboxgl)
How can I replicate the same labels for places? After all, a map does need references :)
Nothing was required in order to show these labels previously.

Thanks

mapbox

Hi @zanoa -- that's a question best answered via Mapbox help documentation or support.

So there's no direct answer for this?

Was this page helpful?
0 / 5 - 0 ratings