Using Java with mapserver
Stephen Lime
steve.lime at dnr.state.mn.us
Mon Oct 25 12:26:23 PDT 1999
I've already done this. I have a little LiveConnect applet that
is used to do box zooms and/or selects. See the data deli
(http://deli.dnr.state.mn.us/) for an example. On the deli the
user pans/zooms using box or point/zoomsize controls and
can go into a query mode that uses the same mechanism to
create a query. If this looks like what you're interested in then
I'll post the java code and instructions for use. Nice thing is that
the applet is a whopping 6k in size, nice and small.
Note: the deli uses public methods within the applet to toggle
box creation on/off. This makes the interface a little cleaner.
So, for example, when zooming out you don't want to be able
to drag a box.
Steve
Stephen Lime
Internet Applications Analyst
MIS Bureau - MN DNR
(651) 297-2937
steve.lime at dnr.state.mn.us
>>> Doug Nebert <ddnebert at usgs.gov> 10/25 1:55 PM >>>
I have a need to build a lightweight java applet that will permit
pan and zoom into a certain extent, then allow the user to drag a
rectangle (yes, java can do this!) to set an area of interest. The
result of all of this is a bit anticlimactic: I only need the
transformed coordinates of the rectangle fed to a containing HTML
as shared variables. I have a program that uses LiveConnect to pass
the java variables to the hosting form. But I was wondering if
someone else has some java stubs for making draw, pan, and zoom
requests of a mode=map service...
--
Douglas D. Nebert
Clearinghouse Coordinator
FGDC Secretariat Phone: +1 703 648 4151 Fax: +1 703 648-5755
Pager Messaging: http://fgdclearhs.er.usgs.gov/dougmsg.html
More information about the MapServer-users
mailing list