mapboxmapbox-gl-jsopenmaptiles

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


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


Solution

  • 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/