Kyle Sexton wrote: > I am trying to implement something akin the the perl monger map located > at http://bath.pm.org/map/. I have got my map to the point that it > will pull lat/long information from a web server and generate a map. > What I am looking to do now is implement zooming in on the map like was > done on the perl monger map. If someone could give me some advice on > what a good solution to read about is it would be greatly appreciated. > Thanks in advance. > > Thanks, > Kyle Sexton
This can also be done pretty handily in HTML itself, with the usemap parameter of the image tag: <IMG SRC="images/navstrip.jpg" USEMAP="#navmap" BORDER=0> <MAP NAME="navmap"> <AREA SHAPE="RECT" COORDS="0,0,48,44" HREF="firstpage.htm"> <AREA SHAPE="RECT" COORDS="49,0,98,49" HREF="anotherpage.htm"> <AREA SHAPE="RECT" COORDS="99,8,148,49" HREF="thispage.htm"> <AREA SHAPE="RECT" COORDS="149,0,198,39" HREF="thatpage.htm"> </MAP> Of course, you might want to direct the HREFs to a CGI script, perhaps with some plot label as a query string, rather than calling static pages. I was thinking that maybe some Javascript could help you get the mouse coordinates of a click, but it would be indirect, since JS doesn't have onclick events for images, and the coordinate systems for which JS does provide x and y values are not easily resolnable relative to the cooridnates within an image. For very precise client-side interactvity, you might consider using a Java applet to display the map. That would allow you to have some real intelligence operating on the client end. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>