beginner
No code
Style a single country

With the Mapbox Studio style editor, you can style a single country or region with help from an outside data source. In this example, you will be styling Australia.

Getting started

Before getting started, you will need a few things:

Create a new style

Log into your Mapbox account and navigate to your Styles page. This is where all your styles are listed. A style is a set of rules for how your map will be drawn on the page – it includes references to your data, map images (icons, markers, patterns), fonts, and defines how all of your data should be styled on your map. For more about styles, see the Styles section of the Mapbox Studio Manual.

To create a new style from your Styles page, click the New Style button, select the Empty template, and click Create. The style editor will automatically open.

create a new style modal in mapbox studio

Use the style editor

Use the style editor to add the data you downloaded to the map and adjust the style of the country.

Add a custom tileset as a layer

You can add the Natural Earth data you downloaded directly in the style editor:

  1. Click + New layer in the upper left of the style editor.
  2. Click No tileset, click to select and then Upload data to upload the zipped Natural Earth data file.

Filter data

Use filters to limit the data shown to Australia:

  1. Click Add filter, select ADM0_A3_IS and set is any of AUS.
  2. Click Create layer.

screenshot of x-ray view of uploaded data

Style data

Next, click the Style tab to customize the look and feel of the layer. Change both the Color and 1px stroke fields to rgba(17,177,240,1).

screenshot of style panel in mapbox studio

Publish

When you have finished editing your map style, publish your changes by clicking Publish in the upper left. When you click Publish, a window will appear showing you the difference between the version of this style that was previously published and the current version you are editing. If you’re happy with the changes, click Publish. Your style will now be available to share from a variety of tools and applications.

Final product

Congratulations! You’ve styled a single country with the help of an outside data source. Mapbox Studio provides a wide variety of ways to use your new map style. You can use this map directly on your website or in an web or mobile application. Take a look at the Publish your style section of the Mapbox Studio Manual to see all the ways you can use your style!

Next steps

You can also learn more about what you can do with the Mapbox Studio style editor in the Mapbox Studio Manual.