在JMapViewer中的两个地理位置之间绘制线

在JMapViewer中的两个地理位置之间绘制线,第1张

在JMapViewer中的两个地理位置之间绘制线

addMapPolygon()
方法
JMapViewer
对于这个作品,但
paintPolygon()
默默拒绝有少于三个顶点多边形。对于两点之间的直线,只需重复最后一个
Coordinate

Coordinate one = new Coordinate(...);Coordinate two = new Coordinate(...);List<Coordinate> route = new ArrayList<Coordinate>(Arrays.asList(one, two, two));map.addMapPolygon(new MapPolygonImpl(route));


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5478396.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-12
下一篇 2022-12-12

发表评论

登录后才能评论

评论列表(0条)

保存