在第一张图中,当我输入一定范围的数字时,我有一个映射。正如你在第二张地图上看到的,它是空白的。我尝试了不同的范围,其中一些崩溃,并输出一个空白的地图。例如,即使我设置从299到301的范围,300个地址也不起作用,450也不起作用。有一些特定的地址阻止了我将其映射出来。我已经通过终端将数据限制设置为max。


发布于 2018-06-10 04:38:22
我已经找到了我自己问题的答案。至于弹出窗口,我在弹出窗口中添加了parse_html=True,这解决了我的问题。另外,为了清楚起见,我刚刚将弹出窗口和图标功能分开
map2 = folium.Map(location=[43.7, -79.4], tiles='cartodbpositron',
zoom_start=11) # set default location on the map
marker_cluster = folium.plugins.MarkerCluster().add_to(map2) # add the
location to the marker cluster
for point in range(len(locationlist)): # loop through the plots
# include popup
popup1 = folium.Popup(df['Condo Address'][point], parse_html=True)
# include icon
icon1 = folium.Icon(color=df['color'][point])
# mark every addresses in the map from the data
folium.Marker(locationlist[point],popup=popup1,icon =
icon1).add_to(marker_cluster)https://stackoverflow.com/questions/50762583
复制相似问题