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)
上一篇: PPP实验配置
下一篇: centos 删除默认路由