Folium: Folium Map not Rendering in Jupyter Notebook When Markers are Added

Created on 15 Mar 2018  路  3Comments  路  Source: python-visualization/folium

I'm using code directly from http://folium.readthedocs.io/en/latest/quickstart.html

This will render the map just fine (with the markers commented out):

map_2 = folium.Map(location=[45.372, -121.6972],
zoom_start=12,
tiles='Stamen Terrain')

folium.Marker([45.3288, -121.6625]).add_to(map_2)

folium.Marker([45.3311, -121.7113]).add_to(map_2)

map_2

But when I un-comment those two Marker lines, I get no error message, but the map doesn't render, I just get a plain white space. I'm just trying to familiarize myself with folium, so sorry if I'm missing something obvious.

not our bug

Most helpful comment

I am having the same issue when trying to add 4000+ sized markers. Working in Google Chrome

the example code above does render without an issue. Does folium have a limit in the number of points that it will render in jupyter?

map_2 = folium.Map(location=[45.372, -121.6972],
zoom_start=12,
tiles='Stamen Terrain')

folium.Marker([45.3288, -121.6625]).add_to(map_2)

folium.Marker([45.3311, -121.7113]).add_to(map_2)

map_2

All 3 comments

It was a browser issue. Apparently, Microsoft Edge isn't fully supported. It worked great in Chrome.

Good to know that Leaflet in Edge may cause problems. I'm closing this issue.

I am having the same issue when trying to add 4000+ sized markers. Working in Google Chrome

the example code above does render without an issue. Does folium have a limit in the number of points that it will render in jupyter?

map_2 = folium.Map(location=[45.372, -121.6972],
zoom_start=12,
tiles='Stamen Terrain')

folium.Marker([45.3288, -121.6625]).add_to(map_2)

folium.Marker([45.3311, -121.7113]).add_to(map_2)

map_2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EMarcantonio picture EMarcantonio  路  41Comments

spanishinquistion picture spanishinquistion  路  16Comments

themiurgo picture themiurgo  路  19Comments

agravier picture agravier  路  26Comments

ibayer picture ibayer  路  21Comments