diff --git a/core/renderers/common/marker_svg.ts b/core/renderers/common/marker_svg.ts index f83abd828..67e4fdb8a 100644 --- a/core/renderers/common/marker_svg.ts +++ b/core/renderers/common/marker_svg.ts @@ -181,7 +181,8 @@ export class MarkerSvg { // Ensures the marker will be visible immediately after the move. const animate = this.currentMarkerSvg!.childNodes[0]; if (animate !== undefined) { - animate instanceof SVGAnimationElement && animate.beginElement(); + (animate as SVGAnimationElement).beginElement && + (animate as SVGAnimationElement).beginElement(); } }