<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I haven't seen much traffic on this list since
joining so i'm not sure how active it is but I am having trouble getting started
with Rosa and was hoping to get a nudge in the right direction.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a php/mapscript application that I would
eventually like to enhance with rosa, but i'm having trouble right from the
get-go. It may be my ignorance in working with java applets, but this is
what I have so far:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is a very basic starting point obviously.. it
just displays a map with basic navigation buttons. The problem I have
right now is that I don't know how to start coding for the buttons... for
example when I make a zoom-in rectangle or click a point for a query it doesn't
actually submit the form, even though I have them as type auto_rect. auto_point,
etc. I've been looking a bit at the gmap75 demo but I can't
seem to find the missing piece that makes this all make sense.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks a lot,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jeff</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--- code below --</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR><head><BR><Title> Rosa
Test </title><BR></head><BR><body><BR><?PHP<BR>if
(PHP_OS=="WINNT" || PHP_OS=="WIN32")<BR> $dlext="dll";<BR>else
$dlext="so";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if (!extension_loaded("MapScript"))<BR>
dl("php_mapscript.$dlext");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>$map=ms_newMapObj("us.map");<BR>$map->imagecolor->setRGB(81,170,255);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>$img=$map->draw();<BR>$url=$img->saveWebImage();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>//////////////////////////<BR>?><BR><APPLET
NAME="RosaApplet" ARCHIVE="../rosa/rosa_png.jar"
CODE="Rosa2000"<BR> WIDTH="600"
HEIGHT="400" MAYSCRIPT><BR><PARAM NAME="IMG_URL"
VALUE="$url"><BR><PARAM NAME="INP_FORM_NAME"
VALUE="mapform"><BR><PARAM NAME="INP_TYPE_NAME"
VALUE="INPUT_TYPE"><BR><PARAM NAME="INP_COORD_NAME"
VALUE="INPUT_COORD"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><PARAM NAME="TB_POSITION"
VALUE="TOP"><BR><PARAM NAME="TB_ALIGN" VALUE="CENTER"><BR><PARAM
NAME="TB_BUTTONS" VALUE="query|full|zoomin|zoomout"><BR><PARAM
NAME="TB_SELECTED_BUTTON" VALUE="query"><BR><PARAM NAME="TB_BUT_query_IMG"
VALUE="graphics/tool_info_1.gif"><BR><PARAM NAME="TB_BUT_full_IMG"
VALUE="graphics/tool_recenter_1.gif"><BR><PARAM NAME="TB_BUT_zoomin_IMG"
VALUE="graphics/tool_zoomin_1.gif"><BR><PARAM NAME="TB_BUT_zoomout_IMG"
VALUE="graphics/tool_zoomout_1.gif"><BR><PARAM NAME="TB_BUT_query_IMG_PR"
VALUE="graphics/tool_info_2.gif"><BR><PARAM NAME="TB_BUT_full_IMG_PR"
VALUE="graphics/tool_recenter_2.gif"><BR><PARAM
NAME="TB_BUT_zoomin_IMG_PR" VALUE="graphics/tool_zoomin_2.gif"><BR><PARAM
NAME="TB_BUT_zoomout_IMG_PR"
VALUE="graphics/tool_zoomout_2.gif"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><PARAM NAME="TB_BUT_query_HINT" VALUE="Query Map
Point"><BR><PARAM NAME="TB_BUT_query_INPUT"
VALUE="auto_point"><BR><PARAM NAME="TB_BUT_query_NAME"
VALUE="action"><BR><PARAM NAME="TB_BUT_query_VALUE"
VALUE="query"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><PARAM NAME="TB_BUT_full_HINT" VALUE="Zoom to
Full Extents"><BR><PARAM NAME="TB_BUT_full_INPUT"
VALUE="submit"><BR><PARAM NAME="TB_BUT_full_NAME"
VALUE="action"><BR><PARAM NAME="TB_BUT_full_VALUE"
VALUE="full"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><PARAM NAME="TB_BUT_zoomin_HINT" VALUE="Zoom
In"><BR><PARAM NAME="TB_BUT_zoomin_INPUT"
VALUE="auto_rect"><BR><PARAM NAME="TB_BUT_zoomin_NAME"
VALUE="action"><BR><PARAM NAME="TB_BUT_zoomin_VALUE"
VALUE="zoomin"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><PARAM NAME="TB_BUT_zoomout_HINT" VALUE="Zoom
Out"><BR><PARAM NAME="TB_BUT_zoomout_INPUT"
VALUE="auto_point"><BR><PARAM NAME="TB_BUT_zoomout_NAME"
VALUE="action"><BR><PARAM NAME="TB_BUT_zoomout_VALUE"
VALUE="zoomout"><BR></APPLET></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><form method="GET"
name="mapform"><BR><input type="hidden" name="action"
value=""><BR></form></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2></body><BR></html><BR></FONT></DIV></BODY></HTML>