# Plotly v4 Dash Offline Map

**URL:** <https://community.plotly.com/t/plotly-v4-dash-offline-map/33876>\
**Category:** Dash Python\
**Created:** [January 20, 2020, 2:52pm UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876 "2020-01-20T14:52:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waterwheel](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@waterwheel](https://community.plotly.com/u/waterwheel)\
**Post date:** [January 20, 2020, 2:52pm UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876/1 "2020-01-20T14:52:37Z")

</div>

Hi There,

I am currently trying to create a map inside an offline server  
I have used go.Scattermapbox and the thing is the map does not load

I get the dots scattered around but without a map  
I also tried to use scattergeo, but I only get a blank graph

How do I get the map to show without access to the Internet?

---

<div class="post-metadata">

**Author:** ![adamschroeder](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adamschroeder/32/17280_2.png) [@adamschroeder](https://community.plotly.com/u/adamschroeder)\
**Post date:** [January 20, 2020, 3:43pm UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876/2 "2020-01-20T15:43:40Z")

</div>

Hi @waterwheel James  
Did you get a mapbox token?

---

<div class="post-metadata">

**Author:** ![waterwheel](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@waterwheel](https://community.plotly.com/u/waterwheel)\
**Post date:** [January 20, 2020, 4:08pm UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876/3 "2020-01-20T16:08:44Z")

</div>

Hi @adamschroeder

Yes I have acquired a token

And I am also using the style = ‘white-bg’

Which deos not actually need a token?

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [January 20, 2020, 4:11pm UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876/4 "2020-01-20T16:11:02Z")

</div>

mapbox layers (those that require a token) do not work offline - they make external api calls to mapbox to get their layers.  
if you have internally available mapping servers, then you can apply your own mapping base layer URLs by following this guide [https://plot.ly/python/mapbox-layers/](https://plot.ly/python/mapbox-layers/)

---

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [January 21, 2020, 10:03am UTC](https://community.plotly.com/t/plotly-v4-dash-offline-map/33876/5 "2020-01-21T10:03:29Z")

</div>

As @chriddyp notes, you need a server locally to serve the tiles. I have been using Terracotta for serving custom tiles,

> **[DHI-GRAS/terracotta](https://github.com/DHI-GRAS/terracotta)**
>
> A light-weight, versatile XYZ tile server, built with Flask and Rasterio :earth\_africa: - DHI-GRAS/terracotta

It is pretty simple and works well.
