Skip to content

Commit a877a0a

Browse files
committed
Fix lints
1 parent edb5b2d commit a877a0a

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

examples/folium_vincent_markers.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@
3737
vis3.to_json('vis3.json')
3838

3939
# Map all buoys similar to https://github.com/python-visualization/folium#vincentvega-markers
40-
buoy_map = folium.Map(location=[46.3014, -123.7390], zoom_start=7,tiles='Stamen Terrain')
41-
popup1 = folium.Popup(max_width=800,).add_child(folium.Vega(vis1, width=500, height=250))
42-
folium.RegularPolygonMarker([47.3489, -124.708],fill_color='#43d9de', radius=12, popup=popup1).add_to(buoy_map)
43-
popup2 = folium.Popup(max_width=800,).add_child(folium.Vega(vis2, width=500, height=250))
44-
folium.RegularPolygonMarker([44.639, -124.5339],fill_color='#43d9de', radius=12, popup=popup2).add_to(buoy_map)
45-
popup3 = folium.Popup(max_width=800,).add_child(folium.Vega(vis3, width=500, height=250))
46-
folium.RegularPolygonMarker([46.216, -124.1280],fill_color='#43d9de', radius=12, popup=popup3).add_to(buoy_map)
40+
kw = dict(fill_color='#43d9de', radius=12)
41+
buoy_map = folium.Map(location=[46.3014, -123.7390],
42+
zoom_start=7, tiles='Stamen Terrain')
43+
44+
popup1 = folium.Popup(max_width=800).add_child(folium.Vega(vis1, width=500, height=250))
45+
folium.RegularPolygonMarker([47.3489, -124.708], popup=popup1, **kw).add_to(buoy_map)
46+
47+
popup2 = folium.Popup(max_width=800).add_child(folium.Vega(vis2, width=500, height=250))
48+
folium.RegularPolygonMarker([44.639, -124.5339], popup=popup2, **kw).add_to(buoy_map)
49+
50+
popup3 = folium.Popup(max_width=800).add_child(folium.Vega(vis3, width=500, height=250))
51+
folium.RegularPolygonMarker([46.216, -124.1280], popup=popup3, **kw).add_to(buoy_map)
52+
4753
buoy_map.save(outfile='NOAA_buoys.html')

0 commit comments

Comments
 (0)