[mapserver-users] Mapplet Again, Sorry

Bryan Tolka btolka at gtcomputing.com
Thu May 2 13:12:45 EDT 2002


I have a working copy of a project with the mapplet. So I know the 
system seems to be functioning properly. I am using IE, Netscape, 
Mozilla all with the same results. It seems to be always transferring 
(opening) the image from the /tmp/*.png directory. I was beginning to 
think it was the image size with certain resolutions. I have attached my 
html with javascript below


Sorry for the syntax below.

Thanks everyone for such a great project and any help is appreciated.

Bryan Tolka


<html>
<head><title>Demo</title>
<SCRIPT LANGUAGE="JavaScript">

function mapplet_apply(name, minx, miny, maxx, maxy, redraw) {
           document.mapserv.imgbox.value = minx + " " + miny + " " + 
maxx + " " + maxy;
           document.mapserv.imgxy.value = minx + " " + miny;
         }

         function mapplet_error(message) {
           alert(message);
         }

</SCRIPT>
</head>
<body bgcolor=#FFFFFF>

<center><h1>Coal River Basin</h1></center>
<hr>
<form name="mapserv" method=GET action="/cgi-bin/mapserv">
          <input type="hidden" name="imgxy" value="299.5 299.5">
          <input type="hidden" name="imgbox" value="-1 -1 -1 -1">


<center>
<table border=0 cellspacing=0 cellpadding=4 bgcolor="#000000">
<tr>
<td valign="top" align=center>
   <table cellpadding="0" cellspacing="0" border="0">
     <tr>
         <td colspan="2">
                 <applet codebase="/mapplet" code="mapplet.class" 		 
width="600" height="600" name="mapplet" MAYSCRIPT>
                  <param name="image" value="https://[host][img]">
                 </applet>
         </td>
    </tr>

     <tr>
       <td align="center"><img src="[scalebar]"></td>
     </tr>
   </table>
</td>
<td valign="top" bgcolor=#ffffff>
   <table cellpadding="5" cellspacing="0" border="0" bgcolor="#ffffff">
     <tr><td>
       <center><input type="submit" value="Refresh/Query"></center>
       <p>

       <input type="radio" name="mode" value="browse" checked> <b>Browse 
map</b><br>
       <input type="radio" name="mode" value="query"> <b>Query 
feature</b><br>
       <input type="radio" name="mode" value="nquery"> <b>Query multiple 
features</b>
         <hr>
       <b>Select Layers to Display: </b><br>
       <select multiple name="layer" size=6>
         <option value="coal_river" [coal_river_select]> Coal River
         <option value="permit_coalr" [permit_coalr_select]> Permit 
Boundaries
         <option value="coal_hydro" [coal_hydro_select]> Streams
         <option value="county_coalr" [county_coalr_select]> Counties
         <option value="vallf_coalr" [vallf_coalr_select]> Valley Fills
         </select>
         <br><br>
       Zoom In <input type=radio name=zoomdir value=1 [zoomdir_1_check]><br>
       Pan <input type=radio name=zoomdir value=0 [zoomdir_0_check]><br>
       Zoom Out <input type=radio name=zoomdir value=-1 
[zoomdir_-1_check]><br>
       Zoom Size <input type=text name=zoomsize size=4 value=[zoomsize]>
       <hr>
       <font size=+1><b>Legend</b></font><br>
       <img src="[legend]"><hr>
       <center><INPUT NAME="ref" TYPE="image" SRC="[ref]" 
border="0"></center>
     </td></tr></table>

   </td></tr>
</table>
</center>

<input type="hidden" name="imgxy" value="299.5 299.5">
<input type="hidden" name="imgext" value="[mapext]">
<input type="hidden" name="map" value="[map]">
<input type="hidden" name="savequery" value="true">

<input type="hidden" name="program" value="[program]">
<input type="hidden" name="map_web_imagepath" value="[map_web_imagepath]">
<input type="hidden" name="map_web_imageurl" value="[map_web_imageurl]">

</form>

<p><hr><p>

</body></html>








More information about the mapserver-users mailing list