question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

folium does not display a map with three markers

See original GitHub issue
import folium

customers = [(80.61666667, 58.05), (79.5, 76.98333333), (79.55, 90.61666667), (78.06666667, 14.25)]
m = folium.Map(location=[70, 100], zoom_start=1)
folium.Marker(location=customers[0]).add_to(m)
folium.Marker(location=customers[1]).add_to(m)
folium.Marker(location=customers[2]).add_to(m)
m

if markers are 2, then the folium displays a map with markers, but if markers are 3, then I see an empty window in jupyter, there are no errors. How to fix it?

I tried to use version 0.6.0 and 0.5.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ocefpafcommented, Oct 25, 2018

I use win-64, python 2.7 and folium 0.6.0 and see the same picture only if I put one or two marks. If there are more marks, then I see a blank screen. What else could be the problem? I also use chrome.

Can you try to save the HTML and load it back in your browser? Also, we highly recommend moving to python3 as @Conengmo hinted above. The next version of folium we will probably drop Python 2 support.

1reaction
Conengmocommented, Oct 25, 2018

Could it be… Python 2.7? Try upgrading to Python3. https://python3statement.org/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Folium Mapping: Displaying Markers on a Map
In this short tutorial we are going to see how we can display both single and multiple markers on a Folium map.
Read more >
python - Folium map not displaying - Stack Overflow
i have same error and nothing work for me finally i found it print(dir(folium.Map)) see method save dose not exist instead use.
Read more >
Folium/Leaflet display marker without radius?
Not a circle, just a point (i.e. without a radius). I would like for them not to zoom in if I do, but...
Read more >
Map with markers with Python and Folium
This blogpost explains how to build an interactive map with markers using Python and Folium . It explains how to add the markers...
Read more >
Mapping Points with Folium - Data EconoScientist
In order to map these points in Python, I will use the Folium module. ... few data points are not visible when the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found