Generating the map via servlet is relatively simple, making it clickable is
a little bit more difficult. The approach we took was to create a servlet
for generating the map, then we created a servlet that would convert X/Y
coordinates into Lat/Lon based on that map's settings. We used the
Projection.inverse method to convert the X/Y to Lat/Lon. Then you can use
the servlet map image as an input field in your HTML to send the X/Y via
click. We then redirect to another page that uses the X/Y for our puposes
(lookup in a database).
-----Original Message-----
From: Adam Russell [mailto:adam.russell@channing.harvard.edu]
Sent: Tuesday, May 13, 2003 11:11 AM
To: openmap-users@bbn.com
Subject: [OpenMap Users] servlet example
I am just getting started with openmap. My needs are actually pretty
simple compared to the relative enormity of openmap. I was just
wondering of anyone out there had some sample code they wouldn't mind
sharing that generated a clickable map via a servlet. Anything even
remotely close to this would be appreciated.
Thanks!!
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"] -- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue May 13 13:46:26 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT