Mapbox: show only one country on the base map?

I am using Mapbox GL JS. Is there a way I can create my base layer to look like an example of Mapbox Light but showing only the UK?

I assume that I would use Mapbox Studio to create my own base layer, but I see no way in Studio to filter by country.

If this is not possible, is there a way to show labels only in the UK and show other countries how filled polygons? (For this unanswered question .)

+4
source share
1 answer

, . Mapbox, .

() , map.setMaxBounds (https://www.mapbox.com/mapbox-gl-js/api/#Map#setMaxBounds), , , , .

, , , . , , .

+2

Source: https://habr.com/ru/post/1671375/


All Articles