Customizing your Mapbox styles
This guide explains how to customize your Mapbox styles for use within Guardian Connector.
Prerequisites
To modify a map, you will need the specific web address (the Style URL) of the map style you want to customize.
You can find this address inside GC Explorer:
- Go to your GC Explorer page and click Manage Datasets.
- Find your dataset and select Edit dataset view.
- Scroll to the Map block and look at the "Mapbox Background Map(s)" settings.
The map address will look like this: mapbox://styles/<account>/<style-id>, where <account> is your Mapbox account name, and <style-id> is the unique identifier for your map's design.
While the above steps can be helpful to identify the exact style, you could also just keep track of the name of your Mapbox style, and find it that way.
Make sure you also have your Mapbox account login details ready.
Customizing your Mapbox styles
Follow these steps to change the appearance of your map:
- Log in to your Mapbox Studio account.
- Find and select the style you want to modify. Use the Style URL you gathered from GC Explorer to make sure you are choosing the correct one. You can change how different elements in the map look and much more. See the Create a custom basemap style with Mapbox Studio for more information.
- Use the Mapbox Studio editor to make your visual changes.
- When you are happy with how it looks, click Publish in the top right corner to save your changes.
Once published, your updated map style will be shown in Guardian Connector. You do not need to update any links, as Guardian Connector continuously reads from this exact map address.
It may take up to 15 minutes for your map style changes to appear on the live map on Guardian Connector.
Adding custom map layers
Follow these steps to add your own map data to your map design. Map data can be point, lines, or polygons. Examples of custom map data could be regional boundaries, place names, hydrology or topology data, transects, or previously collected field data.
- Log in to your Mapbox Studio account.
- Select the design you wish to modify from your list of styles.
- Import your data by following the Mapbox documentation
- Click Publish to save your changes.
Just like map style design changes, any newly added map layers will appear on your Guardian Connector maps without any additional steps. Note that it may take up to 15 minutes for new map layers to appear.