robintw / offline_folium

Allows using folium without an internet connection
Eclipse Public License 2.0
10 stars 7 forks source link

Map does not load in Jupyter Notebook. #6

Open wjddyd66 opened 4 months ago

wjddyd66 commented 4 months ago
스크린샷 2024-07-09 오전 7 39 10

I have a question. As you advised, I downloaded both .js and .css files to site-package/off-line-folium/local.

However, when I run jupyter notebook without an internet connection, a blank figure as above.

Do I need to do something extra? appendix: The map appears fine when connected to the internet.

robintw commented 4 months ago

I suspect this is because the background map won't appear without a connection to the internet. offline_folium just gets the actual folium map components working offline, it doesn't provide full offline access to background maps like OpenStreetMap.

You should find if you create some markers or other 'local' content for the map then they should display. Similarly, you could use a local tileserver of some sort for a background map, or load in a GeoTIFF or something.

If that isn't the problem, then if you could upload a Jupyter notebook for me to look at then I'll have a look.