有没有办法删除 Google 地图折线中符号下的线?

Is there a way to remove the line under a symbol in Google map polyline?

此 link 展示了如何为 google 地图符号设置动画:https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate

有没有办法去除动画圆圈下面的黑线(但仍然显示绿色圆圈)?

我问的原因是因为我希望动画圆圈移动到虚线上方。

谢谢

这条线只是一个折线对象。最快的解决方案是通过将 strokeOpactity 设置为 0 来隐藏它。阅读更多 here

编辑: 要使符号可见,您需要将其 strokeOpacity 设置为 1.0 以覆盖线条的不透明度。 Here 是一个 jsfiddle 示例。