Skip to content

Commit

Permalink
Allow other layers in compose (#4189)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 17, 2020
1 parent e61bf82 commit df1a580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/annotators.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from panel.layout import Row, Tabs
from panel.util import param_name

from .core import DynamicMap, Element, Layout, Overlay, Store
from .core import DynamicMap, HoloMap, ViewableElement, Element, Layout, Overlay, Store
from .core.util import isscalar
from .element import Rectangles, Path, Polygons, Points, Table, Curve
from .plotting.links import VertexTableLink, DataLink, RectanglesTableLink, SelectionLink
Expand Down Expand Up @@ -115,7 +115,7 @@ def compose(cls, *annotators):
elif isinstance(annotator, annotate):
layers.append(annotator.plot)
tables += [t[0].object for t in annotator.editor]
elif isinstance(annotator, Element):
elif isinstance(annotator, (HoloMap, ViewableElement)):
layers.append(annotator)
else:
raise ValueError("Cannot compose %s type with annotators." %
Expand Down

0 comments on commit df1a580

Please sign in to comment.