Skip to content

Fix screen blanking when scrolling (fixes #33)

Fixes the application ending in a blank screen while scrolling:

Uncaught (in promise) Error: No value provided for variable {apikey}

The issue is reproducible both on the official website, as well as on a local development environment. It was already reported in #33 (closed).

The issue was caused by a request to MapBox without the API key:

https://api.mapbox.com/styles/v1/openstreetmap/ckasmteyi1tda1ipfis6wqhuq/tiles/256/{z}/{x}/{y}?access_token={apikey}

There was a fix for this already, but only for tiles.mapbox.com, but not api.mapbox.com.

Merge request reports