# Offline Choropleth world map plot

**URL:** <https://community.plotly.com/t/offline-choropleth-world-map-plot/77243>\
**Category:** 📊 Plotly Python\
**Created:** [July 28, 2023, 7:49am UTC](https://community.plotly.com/t/offline-choropleth-world-map-plot/77243 "2023-07-28T07:49:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![davidharris](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@davidharris](https://community.plotly.com/u/davidharris)\
**Post date:** [May 26, 2024, 7:33am UTC](https://community.plotly.com/t/offline-choropleth-world-map-plot/77243/3 "2024-05-26T07:33:31Z")

</div>

This seems peculiarly difficult. If you do the following, it looks like a step in the right direction, in that it _tries_ to read the geojson file locally, but then hits a `Cross-Origin Request Blocked` error (visible in browser tools) that I don’t know how to bypass:

- Download [https://cdn.plot.ly/world\_110m.json](https://cdn.plot.ly/world_110m.json) to subfolder _assets_
- Add this option to write\_html:

```python
fig.write_html("worldmap.html", config={"topojsonURL":"assets/"})

```

I’m drawing on this post, which gives an alternative of editing _plotly.min.js_ and also gives an alternative solution if using Dash

> [@Loading geo assets offline \[Solved\]](https://community.plotly.com/t/loading-geo-assets-offline-solved/11869):
>
> I am running a Dash server offline and [maps](https://plot.ly/python/scatter-plots-on-maps/) do not load. I can confirm that any map Graph runs if I have an internet connection but it doesn’t render if there is no internet connection (assuming this hasn’t been cached). Specifically, Plotly is looking for assets like [https://cdn.plot.ly/usa\_110m.json](https://cdn.plot.ly/usa_110m.json) to render with. Is there a method to render this locally and offline?

---

_[View the full topic](https://community.plotly.com/t/offline-choropleth-world-map-plot/77243)._
