我有一条从A点到B点的折线,我试图弄清楚如何绘制两条恒定宽度的线,看起来就像这张图像。
我只有两点,而不是四点,我想也许有一种方法可以创建四个点,基于两个然后绘制相应的线,但我似乎无法绕过它。
有什么建议么
I have a Polyline that is drawn from point A to point B, I'm trying to figure out how to draw two lines of a constant width that appear something like this image.
I only have two points, rather than four, I thought maybe there was a way to create four points, based on the two and then draw the corresponding lines, but I cant seem to get my head around it.
Any suggestions
最满意答案
我目前正在努力实现同样的目标,有两条平行的折线,但颜色不同。
你见过这个吗:
http://wtp2.appspot.com/ParallelLines.htm
它使用Google Maps v2 API,但将其转换为API v3似乎非常简单。
I am currently trying to achieve the same thing, have two parallel polylines, but with different colors.
Have you seen this:
http://wtp2.appspot.com/ParallelLines.htm
It uses Google Maps v2 API, but it seems quite simple to convert it to API v3.
更多推荐
发布评论