Hi,
I want to show a map on my dash dashboard. I want to add a trace of polygons on it.
However, I need the map to not rely on internet connection. How can I change the configuration so the map is a geojson file of the world’s map I have locally on my computer? I don’t want it to go to somewhere on the internet looking for it.
Also, can I change the configuration of the mapbox to go to another server?
Locations column (ISO_2) should match the feature in geojson.
Consider using folium maps or leafmap and then put the output in an iframe, if exporting as PNG is not important to you.
If you want to make a choropleth map I recommend using mapclassify for creating categories for your data.
Also when it comes to editing geojson files I use geojson.io (sometimes you will need to use geopandas to separate multi polygons) and mapshaper.org for reducing the file size.
If using plotly maps and you find that nothing is rendered it is sometimes because of the geojson file, an easy solution for this is uploading the file to mapshaper. When exporting the file from mapshaper, select ‘console’ and type in $ -o gj2008.