From be40afba00e22144fb8f2f007b755b34de5db3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Sat, 17 Jun 2023 23:56:06 +0200 Subject: [PATCH] First iteration of fixing datashading on multiple ndoverlay in Overlay --- holoviews/plotting/plot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index ef0cab8f1b..9ec860496c 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -988,6 +988,9 @@ def link_sources(self): if isinstance(self, GenericOverlayPlot) and not self.batched: sources = [] + elif isinstance(self, GenericOverlayPlot) and isinstance(self.hmap, DynamicMap): + # This is to handle the case of https://github.com/holoviz/holoviews/issues/5595 + sources = [v[0] for v in self.stream_sources.values() if v and isinstance(v[0], DynamicMap)] elif not self.static or isinstance(self.hmap, DynamicMap): sources = [o for i, inputs in self.stream_sources.items() for o in inputs if i in zorders]