How to Tap and Drag on a map to measure distance between two points using in a plot generated by holoviews , served with Panel?

Hi @fischcheng

Welcome to the community.

I see different possible routes to solving this problem using HoloViews.

  • Create a Bokeh Measurement Tool. Bokeh is willing to assist. C.f. Bokeh #10100 and #182
  • Use Plot Hooks to finalize the holoviews plot using the bokeh api. It might be possible to reuse the code from stackoverflow you reference above
  • The solution you mention using callbacks.
  • Use Streams/ Events to create a python based tool.

There might be more. Which route to take would probably depend on your requirements.