Horje
folium add a polygon to a map Code Example
folium add a polygon to a map
for _, r in df.iterrows():
    # Without simplifying the representation of each borough,
    # the map might not be displayed
    sim_geo = gpd.GeoSeries(r['geometry']).simplify(tolerance=0.001)
    geo_j = sim_geo.to_json()
    geo_j = folium.GeoJson(data=geo_j,
                           style_function=lambda x: {'fillColor': 'orange'})
    folium.Popup(r['BoroName']).add_to(geo_j)
    geo_j.add_to(m)
m




Python

Related
get data from keyboard python Code Example get data from keyboard python Code Example
convert xls to xlsx python Code Example convert xls to xlsx python Code Example
Math expressions with matplotlib Code Example Math expressions with matplotlib Code Example
html python example Code Example html python example Code Example
matrix inverse python without numpy Code Example matrix inverse python without numpy Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7