☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

How can I get tooltips from GeoJSONDataSource

Community Support
ahmettemiz88
ahmettemiz88

Hi,
After constructing geodatasource:

gdf_fay0_1_source = GeoJSONDataSource(geojson=gdf_fay0_1.to_json())

I formed the lines:

glyph = MultiLine(xs=“xs”, ys=“ys”, line_color=“red”, line_width=3)
plot.add_glyph(gdf_fay0_1_source , glyph)

But I cannot get the tooltips from these lines:

TOOLTIPS = [
(“tipi”, “@faytipi”)
]

plot = figure(x_range= ( minX, maxX ) , y_range=(minY, maxY) , x_axis_type=“mercator” , y_axis_type=“mercator” , plot_width=1000, plot_height=517, match_aspect=True ,tools = “pan,zoom_in,zoom_out,wheel_zoom,reset,save” , toolbar_location=“above” ,toolbar_sticky=False ,tooltips=TOOLTIPS )

How can I do that?

regards

⌁   Link to post
_jm
_jm

@ahmettemiz88

If you’re using MultiLine glyphs with bokeh 2.2.x, that’s the source of the problem. It’s a bug in that release sequence.

See …

⌁   Link to post

End of archived discussion · Replies are disabled