2011-04-02 70 views

回答

4

我发现了Pavel Zotov的博客条目,他描述了向箭头添加折线的方法。 诀窍是扩展google.maps.OverlayView。

http://yab.hot-line.su/javascript/polyline-with-arrows-in-google-maps-api-v3.html

(我不知道如果我能在这里重现的代码,所以我只张贴链接到博客条目。)

+8

上述博客现在不可用(禁止403错误)。另一个来源是:www.wolfpil.de/v3/arrow-heads.html(同样,许可证不清楚,所以我不确定是否可以通过代码)。 – Kevin 2011-08-30 21:38:13

1

这里是比尔·查德威克的代码移植到V3

享受!

https://docs.google.com/open?id=0B4WFC4iBvLilOHc1YTFnakFsdWM

+1

小错误在你的代码: 则strokeColor:this.color, strokeOpacity,用于:this.opacity, strokeWeight,用于:this.weight, 必须是: 则strokeColor:this.headColor, strokeOpacity,用于:this.headOpacity, strokeWeight:this.headWeight, – 2012-08-28 10:12:40

相关问题