This guide will walk through how to create a custom style in the Mapbox Studio style editor. The Mapbox Studio Monochrome style is customizable, which lets you create a map style that conforms to your company's branding. This tutorial will show you how to customize the Mapbox Monochrome style by changing colors, fonts, and labels. After you have completed the tutorial, you will have created a map style that reflects the Mapbox brand colors at any zoom level and at any place across the world.
You will need a few resources to get started:
Log in to your Mapbox account and open the Mapbox Studio styles page. This is where all your map styles are listed. A style is a set of rules that defines how Mapbox draws your map on the page. It includes references to your data, map images (icons, markers, and patterns), fonts, and defines how all your data should be styled on the map. For more information about styles, read the Styles section of the Mapbox Studio manual.
To create a new style from your Mapbox Studio styles page follow these steps:
The Mapbox Studio style editor will open, and you will be able to start creating a custom map style.
The Mapbox Studio style editor is a visual tool for creating custom maps by applying styles to map features. There are two approaches to styling map features in Mapbox Studio:
Both components and layers have properties you can change to adjust the appearance of map features. In this section, you'll change colors applied to features throughout your map style using the Colors tab and change a few component properties in the Components tab.
But first, change the name of your new style. Click into the name field in the upper left side of the screen and change the name to Mapbox Style.
The Colors tab displays colors used throughout the style. There are over a dozen component color properties you can define in Mapbox template styles.
First, adjust the color assigned to the Base component color property:
#edf0fd
.Then, add a component color property for Place labels to the color palette:
#5b7897
.Then, add Greenspace to the color palette and assign #afdec5
.
Next, you'll add 3D buildings to the map and style them. You'll use a combination of component properties and layer properties.
When using the default styling for 3D buildings, the buildings are fairly faint. You can use a layer property to adjust the opacity of the buildings:
0.5
.If a layer property is controlled by a component, a
lock icon will appear next to the value. You can override any layer property controlled by a component by clicking Override. When you override a property, the override will only affect one layer property for that specific layer — other layers controlled by the component will not be affected.Override the water color defined by the Land & water component to gradually change the color as you zoom in and out:
8
and the color to #b0bcf3
.18
and the color to #4264fb
.Zoom in and out between zoom levels 8 and 18 to see the effect.
Overrides and layer properties give you fine-grained control over the style of every feature at every zoom level. In this section, you'll get a feel for the level of detail that is possible with overrides and layer properties.
Start by adjusting the default style that was applied to the landuse layer by the Land & water component properties:
8
, click Clear value, and assign the color #c8d1f9
.18
. Keep the default data conditions assigned by the component.
Adjust the style of the landcover layer:
#c8d1f9
.Finally, adjust the national-park layer:
10
and assign the color #c8d1f9
.16
and assign the color #a9eac6
.Add the Terrain component to your style. You'll use this component to display hillshades using data from the Mapbox Terrain v2 tileset.
To add a component to your style:
When you have finished editing your map style, publish your changes by clicking Publish in the upper right side of the screen. When you click the publish button, a window will display the difference between the previous and current version of this style. If you're happy with the changes, click Publish. Your style will now be available to share from a variety of tools and applications.
You have created a map that reflects the Mapbox style guide, from a world view to the street level and at any location across the world. Explore your finished custom map style and take some time to view the style at various zoom levels.
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 a web or mobile application. Take a look at the Publish style section of the Mapbox Studio Manual to see all the ways you can use your style!