欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

folium geojson point 修改

程序员文章站 2024-02-13 17:18:22
...
gj = folium.GeoJson('path/to/some/point_layer.geojson')

{1}
# iterate over GEOJSON features, pull out point coordinates, make Markers and add to layer
for feature in gj.data[‘features’]:
if feature[‘geometry’][‘type’] == ‘Point’:
folium.Marker(location=list(reversed(feature[‘geometry’][‘coordinates’])),
icon=folium.Icon(
icon_color=’#ff033e’,
icon=‘certificate’,
prefix=‘fa’)
).add_to(layer)