如何仅基于两个点绘制两条平行多边形线(类似于谷歌地图流量)(How do I draw two parallel poly lines based on only two points (simila

编程入门 行业动态 更新时间:2024-10-28 12:22:16
如何仅基于两个点绘制两条平行多边形线(类似于谷歌地图流量)(How do I draw two parallel poly lines based on only two points (similar to google maps traffic))

我有一条从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.

更多推荐

本文发布于:2023-08-04 11:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415450.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多边形   两条   类似于   流量   两个

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!