Using Mapbox GL JS 2.x offline, using self hosted tiles

1.5k Views Asked by At

Is it possible to use Mapbox GL JS 2.x completely offline, with self-hosted tiles (e.g. openmaptiles)?

1

There are 1 best solutions below

3
Wolkenarchitekt On BEST ANSWER

It's not possible to use Mapbox GL JS offline - received answer from mapbox support:

Thanks for reaching out! Mapbox GL JS doesn't have a concept of offline mode at this time. An internet connection is required. We do have offline functionality available with our mobile SDKs. You can check out the offline options here - https://docs.mapbox.com/help/troubleshooting/mobile-offline/