Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Drawing Lines on a map

843807Feb 7 2008 — edited Feb 9 2008
Hi,

I'm relatively new to Java, and i have certain doubts regarding plotting on images.

I'm currently working on this project wherein i find the shortest route between two places and plot it on the road map. I'm using applets and servlets to handle this. The servlet finds the shortest path(thats done..) but I'm having issues regarding the plotting on the map

1. Do I let the applet itself have the image, and then plot on it(using the applet) by returning a list of coordinates from the servlet?

OR

2. Do I complete the plotting at the servlet, and then return an image back to the applet?

In either case, another problem is with respect to the plotting. The coordinates I have will be with respect to the image where i'm plotting. So HOW do I plot it over the image(if i use normal plotting, it would plot it using the browser coordinates which wont work)??? I'm extremely confused as to how to draw lines OVER an image(since i need to highlight a path on my map, i need to draw lines in a certain color over my image)

Can someone help me with a code or guidelines to what I should do?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2008
Added on Feb 7 2008
2 comments
226 views