该
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));
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)