folium 增加搜索、经纬度弹出,字段弹出的方法

m.add_child(folium.LatLngPopup())

cellgeo=gpd.read_postgis(‘SELECT “铜陵3G第二批拍照基站”.*,region.name FROM “铜陵3G第二批拍照基站”,(SELECT geom,“name” from “gis_县” where 市=‘铜陵市’ and name=‘枞阳县’) as region where st_intersects(“铜陵3G第二批拍照基站”.geom,region.geom)’,geom_col=‘geom’,con=engine)
print(cellgeo)
region=gpd.read_postgis(‘SELECT geom,“name” from “gis_县” where 市=‘铜陵市’ and name=‘枞阳县’’,geom_col=‘geom’,con=engine)
pop=folium.GeoJsonPopup(fields=[‘小区网管名称’,‘经度’,‘纬度’])
geojson_obj =folium.GeoJson(cellgeo,popup=pop).add_to(m)
folium.GeoJson(region).add_to(m)
Search(geojson_obj,
geom_type=‘Point’,
placeholder=“Search”,
collapsed=True,
search_label=‘小区网管名称’,
search_zoom=14,
position=‘topright’
).add_to(m)

你可能感兴趣的:(swift,开发语言,ios)