Blank or missing map tiles
Maps can fail to load for a variety of reasons related to your Mapbox account, your code, the browser you are using, the network you are on, or your computer.
This guide explains how to troubleshoot some common reasons maps fail to load.
Your access token is missing
The most common use case we see when a map fails to load is that the code is missing a required access token. To access Mapbox services, you need to use a valid Mapbox token in your code. How the access token is added depends on which SDK or library you are using, so refer to the product documentation to check whether you are adding the access token correctly.
If you copy an example code snippet and find YOUR_MAPBOX_ACCESS_TOKEN in the code, replace the string with your default public token. You can grab this token from the top of the Access Token list in your Developer Console.
If you are logged into the documentation with your Mapbox account, your default public token will be automatically added to your code snippet.
Your access token is invalid
You can test your access token by navigating to the following URL in your web browser, making sure that you've replaced {access_token} with the access token used in your code:
https://api.mapbox.com/styles/v1/mapbox/light-v11.html?title=true&access_token=YOUR_MAPBOX_ACCESS_TOKEN
If this page doesn't load, head to your Access tokens page, generate a new access token, and try again.