When a user uses a wrong API key (invalid, or mistyped) which has no access to the Mapbox service, there is no proper error message on the user interface. The visaul not loading properly, but the user will not be able to identify the reason of the issue.
From the console, the error message is clear:
In these cases, the visual should provide a detailed error message for the user on the UI:
"Unauthorized: you may have provided an invalid Mapbox access token. Please check if it is valid and active on the Mapbox - Acess tokens site."
Describe the ideal solution or feature request
When a user uses a wrong API key (invalid, or mistyped) which has no access to the Mapbox service, there is no proper error message on the user interface. The visaul not loading properly, but the user will not be able to identify the reason of the issue.
From the console, the error message is clear:
In these cases, the visual should provide a detailed error message for the user on the UI:
"Unauthorized: you may have provided an invalid Mapbox access token. Please check if it is valid and active on the Mapbox - Acess tokens site."