PDA

View Full Version : dynamic hotspots


kitey
02-26-2003, 09:40 PM
My code is a java code that first finds the number of points to be mapped... finds each of their address and then takes an address like XYZ street, sometown, somestate, somezip and finds its lat/long to plot on a map.

then it for loops to construct a Url string like :
http://someurl.com/somefile.cgi?Point1=lat1,long1&Point2=lat2,long2&...

and my JSP contains:
<img src = "http://someurl.com/somefile.cgi?Point1=lat1,long1&Point2=lat2,long2" >
and the cgi script generates a map with the locations marked.

How do I make each of these points marked on the map a hotspot ?

Thanks !!

Spudhead
02-27-2003, 05:24 PM
OK..... :)

How do you mean, "hotspot"? Like some sort of image rollover? A link?

This all depends what your program is outputting. I dunno much about Java or CGI; does it produce some sort of GIF, JPG or something? If so, you could probably rig up some sort of translation from your coordinate system to pixels, and tie it into an image map. Although that may not be easy.

Give us a little more info, and we'll see what we can thrash out :)

kitey
02-27-2003, 08:18 PM
Thanks for taking the time to reply !! :)

What I finally have is an HTML page with the map image that has all the points marked on it. And what the hotspot would do is link each point on the map to a url displaying that point's details.

the problem with placing these hotspots on my map image is that i have no idea before hand where my points are going to be on the map.. you see.. my project is something like this : display all the locations on a map of all people that are signed into something... so this is always varying as people sign in and out...

Thanks in advance for your reply !!