I'm working with OpenStreet Maps in Java with JMap Viwer http://wiki.openstreetmap.org/wiki/JMapViewer I can load the maps and everything ok but I don't know how to draw a line between two points from a latitude and longitude.
Any body know the function to draw this kind of lines?
Thank you.
The
addMapPolygon()
method ofJMapViewer
works for this, butpaintPolygon()
silently rejects a polygon having fewer than three vertices. For a line between two points, just repeat the lastCoordinate
.