kopia lustrzana https://github.com/anitagraser/ogd-at-lab
10 wiersze
408 B
Python
10 wiersze
408 B
Python
![]() |
def hvplot_with_buffer(gdf, buffer_size, *args, **kwargs):
|
||
|
buffered = gdf.to_crs('epsg:31287').buffer(buffer_size)
|
||
|
buffered = gdf.copy().set_geometry(buffered).to_crs('epsg:4326')
|
||
|
|
||
|
plot = ( buffered.hvplot(geo=True, tiles='OSM', alpha=0.5, line_width=0, *args, **kwargs) *
|
||
|
gdf.hvplot(geo=True, hover_cols=['DESIGNATION'])
|
||
|
).opts(active_tools=['wheel_zoom'])
|
||
|
|
||
|
return plot
|