Thank you for your answer. Down is my small complete minimal reproducer, the data is here here for the time being. While doing the SCMR I realised that there were other options aside from lod_factor. Sorry about that. That helped me with the slowness. But, it generated another problem, when zooming in and out, specially in, it flickers, too much, even with lod_timeout at 0. Is there a way to avoid the flickering when zooming, even if it the render is slow?
Kind regards,
C.
import geopandas as gpd
from bokeh.io import show, output_file
from bokeh.plotting import figure
from bokeh.models import GeoJSONDataSource,LinearColorMapper
from bokeh.models import HoverTool
from bokeh.tile_providers import CARTODBPOSITRON, get_provider
GeoData= gpd.read_file("test.geojson")
geosource = GeoJSONDataSource(geojson = GeoData.to_json())
TOOLTIPS = [
("Value", "@Range")
]
tools = 'wheel_zoom,pan,reset'
palette=['#084594', '#4292c6', '#6baed6', '#9ecae1', '#c6dbef']
palette = palette[::-1]
color_mapper = LinearColorMapper(palette = palette, low = 0, high = 4)
p = figure(title = "Test", plot_width=800,
plot_height=870, toolbar_location='right', tooltips=TOOLTIPS, tools=tools,
x_axis_type="mercator", y_axis_type="mercator")
tile_provider = get_provider(CARTODBPOSITRON)
p.add_tile(tile_provider)
p.patches('xs','ys', source = geosource,fill_color = {'field' :'Range', 'transform' : color_mapper},
line_color = 'black', line_width = 0.25, fill_alpha = 1)
p.lod_factor=8
p.lod_interval=20
p.lod_threshold=5
p.lod_timeout=2
output_file("MyTest.html")
show(p)