Java 2D GPS Waypoint
I have a bit of a problem. I am working with some mapping technologies need to draw a GPS waypoint/marker on it, exactly like the ones you would see in GoogleMaps. So the little red and blue dot things.
However, I have no idea about Graphics so doing this is easier said that done. Can anyone give a code snippet on how to draw one of these way points using Graphics2D?
I know it should look something like this:
public boolean paintWaypoint(Graphics2D g, JXMapViewer map, Waypoint wp)
But not look like a blue circle as I have drawn?
Are you trying to fill the oval?
No I trying to get my graphic to look like a google GPS marker. I'm pretty bad at graphics so all I can do is draw simple shapes.
The google markers look like this:
h t t p : / / danielmclaren.net/files/public/2008/gneditor/gps_keypoints02.jpg
i would first create an image in a drawing program (gimp, photoshop, whatever) then loaded it as a BufferedImage into java, then paint that image in your draw method.
i would spend some time playing around with the tutorials: Java 2d