[rosa-users] ROSA doesn't add button
Yewondwossen Assefa
assefa at dmsolutions.ca
Tue Jun 6 09:18:19 EDT 2006
Stephen,
One possible problem could be that the name used in the toolbar DIG_PT
is diffrent from the one that is used in trhe setups DIGPT. The names
should be the same.
Later,
Stephen H. Savage wrote:
> Greetings,
>
> I'm trying to add a button to the ROSA toolbar that will pass back map
> coordinates that I can use to add a point to a shapefile (for now, I just want
> to echo back the Input_Coord value via the JavaScript; I already have the code
> written to do the add to the shapefile). But the button doesn't appear in the
> toolbar. But the button doesn't appear in the toolbar. The images are in the
> correct folder; everything is set up correctly as far as I can tell. WHat's
> wrong?
>
> Here's the temporary script:
>
> function ProcessPoint()
> {
> szCoord = document.forms[0].INPUT_COORD.value;
> window.alert(szCoord);
> } // end of ProcessPoint
>
> Here's the applet:
>
> <applet name="RosaApplet" archive="./rosa/rosa.jar" code="Rosa2000" width="400"
> height="343" MAYSCRIPT>
> <param name="TB_POSITION" value="right">
> <param name="TB_ALIGN" value="top">
> <param name="IMG_URL"
> value="http://localhost/maplab_projects/gmf_apps/IraqTest/wrapper/drawmap.php?
> gszMapName=/ms4w/apps///maplab-
> 2.2.1/IraqTestMap//IraqTestMap.map&gszCurrentState=BBOX=38.5,28.498125,49,37.501
> 875|SRS=|MAPSIZE=400,343|LAYERS=0,1,2,3,4&map_session_mode=0&run_query=0&gszPHPM
> apScriptModName=php_mapscript_46.dll&gszQueryCoords=">
> <param name="INP_FORM_NAME" value="main">
> <param name="TB_BUTTONS"
> value="ZOOM_IN|ZOOM_OUT|ZOOM_FULL|RECENTRE|QUERY|DIG_PT">
> <param name="INP_TYPE_NAME" value="INPUT_TYPE">
> <param name="INP_COORD_NAME" value="INPUT_COORD">
> <param name="TB_SELECTED_BUTTON" value="ZOOM_IN">
> <param name="TB_BUT_DIGPT_IMG" value="./images/tool_digpt_1.gif">
> <param name="TB_BUT_DIGPT_IMG_PR" value="./images/tool_digpt_2.gif">
> <param name="TB_BUT_DIGPT_HINT" value="Digitize Pre-inventory Points">
> <param name="TB_BUT_DIGPT_INPUT" value="auto_point">
> <param name="TB_BUT_DIGPT_NAME" value="CMD">
> <param name="TB_BUT_DIGPT_VALUE" value="DIGPT">
> <param name="TB_BUT_DIGPT_JSACTION" value="ProcessPoint()">
> <param name="TB_BUT_DIGPT_CURSOR_TYPE" value="CROSSHAIR">
> </applet>
>
> Thanks,
>
> -Steve
>
> Stephen H. Savage, Affiliate Professor and Director
> Geo-Archaeological Information Applications (GAIA) Lab
> School of Human Evolution and Social Change
> Box 872402
> Arizona State University
> Tempe, AZ 85287-2402
>
> shsavage at asu.edu
>
> http://gaialab.asu.edu/home - The GAIA Lab's home page
> http://archaeology.asu.edu/Jordan - Personal home page
> _______________________________________________
> ROSA-users mailing list
> ROSA-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/rosa-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the ROSA-users
mailing list