如何在Google地图(V3)中为我的折线创建箭头方向?

12
4个回答

7

2
我认为此链接现在位于https://developers.google.com/maps/documentation/javascript/symbols#add_to_polyline。 - Evan Knowles

4

9
以上博客现已无法访问(禁止 403 错误)。替代来源是:www.wolfpil.de/v3/arrow-heads.html(同样,许可证不清楚,因此我不确定是否可以粘贴代码)。 - Kevin

1

1
你的代码有一个小错误:strokeColor:this.color, strokeOpacity:this.opacity, strokeWeight:this.weight,应该改为:strokeColor:this.headColor, strokeOpacity:this.headOpacity, strokeWeight:this.headWeight, - Jorrit Schippers

0
使用简单的解决方案,向线段的末端添加一个倾斜45度的短线段。这个帖子已经有10年的历史了,但我仍然没有在Google Earth中找到内置的箭头。Bob Fontaine

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接