[rosa-users] Trouble getting started with Rosa

Jeff Portwine jdport at veritime.com
Tue Jun 28 09:38:52 EDT 2005


Hello,

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.

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:

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.

Thanks a lot,
Jeff

--- code below --

<html>
<head>
<Title> Rosa Test </title>
</head>
<body>
<?PHP
if (PHP_OS=="WINNT" || PHP_OS=="WIN32")
  $dlext="dll";
else $dlext="so";

if (!extension_loaded("MapScript"))
  dl("php_mapscript.$dlext");

$map=ms_newMapObj("us.map");
$map->imagecolor->setRGB(81,170,255);

$img=$map->draw();
$url=$img->saveWebImage();

//////////////////////////
?>
<APPLET NAME="RosaApplet" ARCHIVE="../rosa/rosa_png.jar" CODE="Rosa2000"
        WIDTH="600" HEIGHT="400" MAYSCRIPT>
<PARAM NAME="IMG_URL" VALUE="$url">
<PARAM NAME="INP_FORM_NAME" VALUE="mapform">
<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="CENTER">
<PARAM NAME="TB_BUTTONS" VALUE="query|full|zoomin|zoomout">
<PARAM NAME="TB_SELECTED_BUTTON" VALUE="query">
<PARAM NAME="TB_BUT_query_IMG" VALUE="graphics/tool_info_1.gif">
<PARAM NAME="TB_BUT_full_IMG" VALUE="graphics/tool_recenter_1.gif">
<PARAM NAME="TB_BUT_zoomin_IMG" VALUE="graphics/tool_zoomin_1.gif">
<PARAM NAME="TB_BUT_zoomout_IMG" VALUE="graphics/tool_zoomout_1.gif">
<PARAM NAME="TB_BUT_query_IMG_PR" VALUE="graphics/tool_info_2.gif">
<PARAM NAME="TB_BUT_full_IMG_PR" VALUE="graphics/tool_recenter_2.gif">
<PARAM NAME="TB_BUT_zoomin_IMG_PR" VALUE="graphics/tool_zoomin_2.gif">
<PARAM NAME="TB_BUT_zoomout_IMG_PR" VALUE="graphics/tool_zoomout_2.gif">

<PARAM NAME="TB_BUT_query_HINT" VALUE="Query Map Point">
<PARAM NAME="TB_BUT_query_INPUT" VALUE="auto_point">
<PARAM NAME="TB_BUT_query_NAME" VALUE="action">
<PARAM NAME="TB_BUT_query_VALUE" VALUE="query">

<PARAM NAME="TB_BUT_full_HINT" VALUE="Zoom to Full Extents">
<PARAM NAME="TB_BUT_full_INPUT" VALUE="submit">
<PARAM NAME="TB_BUT_full_NAME" VALUE="action">
<PARAM NAME="TB_BUT_full_VALUE" VALUE="full">

<PARAM NAME="TB_BUT_zoomin_HINT" VALUE="Zoom In">
<PARAM NAME="TB_BUT_zoomin_INPUT" VALUE="auto_rect">
<PARAM NAME="TB_BUT_zoomin_NAME" VALUE="action">
<PARAM NAME="TB_BUT_zoomin_VALUE" VALUE="zoomin">

<PARAM NAME="TB_BUT_zoomout_HINT" VALUE="Zoom Out">
<PARAM NAME="TB_BUT_zoomout_INPUT" VALUE="auto_point">
<PARAM NAME="TB_BUT_zoomout_NAME" VALUE="action">
<PARAM NAME="TB_BUT_zoomout_VALUE" VALUE="zoomout">
</APPLET>

<form method="GET" name="mapform">
<input type="hidden" name="action" value="">
</form>

</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/rosa-users/attachments/20050628/e916215a/attachment.html


More information about the ROSA-users mailing list