I’m trying some shortcuts to get choropleth map in Bokeh.
I converted GIS vector to geojson, then load in geopandas:
import geopandas as gpd
df = gpd.read_file(‘sample.geo.json’)
Result from this is pandas dataframe with GIS features. This dataframe has .plot() method which gives matplotlib AxesSubplot object:
ax = df.plot()
fig = mpl.to_bokeh(ax.figure)
This is perhaps as easy as it can get for this task.
However generated HTML file draws this object in pretty basic style and I would like to set some preferences as in regular Bokeh figure, like which tools, dimensions…