|
||||
[rosa-users] JavaScripts for Zoomout, FullExtent and Query?Daniel Wagner Da.Wa@uni-jena.deTue, 4 Mar 2003 10:44:19 +0100
|
Hi! I try to build a mapserver-application with an integrated rosa-applet. The installation was successful. But when I hit the buttons, nothing happens. I think I must write JavaScripts for the functions. But I'm a totally dummy at Java, so please can You help me with this or send me some working functions. I need ZoomOut, FullExtent and Query. Some snippets of my code (instead of posting all): <head> <title>TLUG - MapServer Interface</title> <script language="JavaScript" type="text/javascript"> function Rosa2000_apply(name, minx, miny, maxx, maxy, redraw) { document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.mapserv.imgxy.value = minx + " " + miny; } function Rosa2000_error(message) { alert(message); } <form name="mapserv" id="mapserv" method="GET" action="[program]"> <input type="hidden" name="imgxy" value="299.5 299.5" /> <input type="hidden" name="imgbox" value="-1 -1 -1 -1" /> <input type="hidden" name="layer" value="basis" /> <td colspan="2"> <applet code="Rosa2000.class" codebase="http://jena.geogr.uni-jena.de/tlugmap/rosa/" archive="rosa_png.jar" width="600" height="600" name="rosa" MAYSCRIPT> <PARAM NAME="IMG_URL" VALUE="[img]"> <PARAM NAME="INP_FORM_NAME" VALUE="mapserv"> <PARAM NAME="INP_TYPE_NAME" VALUE="INPUT_TYPE"> <PARAM NAME="INP_COORD_NAME" VALUE="INPUT_COORD"> <PARAM NAME="TB_POSITION" VALUE="top"> <PARAM NAME="TB_ALIGN" VALUE="right"> <PARAM NAME="TB_BUTTONS" VALUE="info|space_05|recentre|space_05|zoomin|space_05|zoomout|space_05|fullexte nt"> <!-- <PARAM NAME="TB_SELECTED_BUTTON" VALUE="zoomin"> --> <PARAM NAME="TB_SELECTED_BUTTON" VALUE="[lezterBT]"> <PARAM NAME="TB_BUT_info_IMG" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_info_1.gif"> <PARAM NAME="TB_BUT_info_IMG_PR" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_info_2.gif"> <PARAM NAME="TB_BUT_info_BORDER" VALUE="1"> <PARAM NAME="TB_BUT_info_HINT" VALUE="Informationen"> <PARAM NAME="TB_BUT_info_INPUT" VALUE="auto_point"> <PARAM NAME="TB_BUT_info_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_info_VALUE" VALUE="QUERY"> <PARAM NAME="TB_BUT_recentre_IMG" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_recentre_1.gif"> <PARAM NAME="TB_BUT_recentre_IMG_PR" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_recentre_2.gif"> <PARAM NAME="TB_BUT_recentre_BORDER" VALUE="1"> <PARAM NAME="TB_BUT_recentre_HINT" VALUE="Bewegen"> <PARAM NAME="TB_BUT_recentre_INPUT" VALUE="auto_point"> <PARAM NAME="TB_BUT_recentre_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_recentre_VALUE" VALUE="RECENTER"> <PARAM NAME="TB_BUT_zoomin_IMG" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_zoomin_1.gif"> <PARAM NAME="TB_BUT_zoomin_IMG_PR" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_zoomin_2.gif"> <PARAM NAME="TB_BUT_zoomin_BORDER" VALUE="1"> <PARAM NAME="TB_BUT_zoomin_HINT" VALUE="Vergrößern"> <PARAM NAME="TB_BUT_zoomin_INPUT" VALUE="auto_rect"> <PARAM NAME="TB_BUT_zoomin_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_zoomin_VALUE" VALUE="ZOOM_IN"> <PARAM NAME="TB_BUT_zoomin_INPUT" VALUE="auto_point"> <PARAM NAME="TB_BUT_zoomin_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_zoomin_VALUE" VALUE="ZOOM_IN"> <!-- <PARAM NAME="TB_BUT_zoomin_JSACTION" VALUE="lastButtonSelected"> --> <PARAM NAME="TB_BUT_zoomin_CURSOR_TYPE" VALUE="CROSSHAIR"> <PARAM NAME="TB_BUT_zoomout_IMG" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_zoomout_1.gif"> <PARAM NAME="TB_BUT_zoomout_IMG_PR" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_zoomout_2.gif"> <PARAM NAME="TB_BUT_zoomout_BORDER" VALUE="1"> <PARAM NAME="TB_BUT_zoomout_HINT" VALUE="Verkleinern"> <PARAM NAME="TB_BUT_zoomout_INPUT" VALUE="submit"> <PARAM NAME="TB_BUT_zoomout_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_zoomout_VALUE" VALUE="toolzoomout()"> <!-- <PARAM NAME="TB_BUT_zoomout_JSACTION" VALUE="zoomin()"> --> <!-- <PARAM NAME="TB_BUT_zoomout_CURSOR_TYPE" VALUE="CROSSHAIR"> --> <PARAM NAME="TB_BUT_fullextent_IMG" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_fullextent_1.gif"> <PARAM NAME="TB_BUT_fullextent_IMG_PR" VALUE="http://jena.geogr.uni- jena.de/tlugmap/rosa/userdoc/images/icon_fullextent_2.gif"> <PARAM NAME="TB_BUT_fullextent_BORDER" VALUE="1"> <PARAM NAME="TB_BUT_fullextent_HINT" VALUE="Ausgangskarte"> <PARAM NAME="TB_BUT_fullextent_INPUT" VALUE="submit"> <PARAM NAME="TB_BUT_fullextent_NAME" VALUE="CMD"> <PARAM NAME="TB_BUT_fullextent_VALUE" VALUE="FULL_EXTENT"> </applet> <input type="HIDDEN" name="letzterBt" value="" /> <input type="HIDDEN" name="CMD" value="" /> <input type="HIDDEN" name="INPUT_TYPE" value="" /> <input type="HIDDEN" name="INPUT_COORD" value="" /> <input type="HIDDEN" name="zommdir" value="[zoomdir]"> Thanks in advance!!! Bye. Daniel Wagner ----------------------------------------------------- This mail was sent through http://webmail.uni-jena.de
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |