MapTools.org

[rosa-users] Rosa Applet for Mac?

Martin, Daniel DMartin@erac.com
Wed, 8 Jan 2003 12:36:16 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C2B744.D45F5B78
Content-Type: text/plain;
	charset="iso-8859-1"

I've attached a mapplet based interface I wrote a while back that has
buttons that work similar to the Rosa buttons (in fact I used the images
from Rosa).  It is really a prototype.  Use at your own risk - and all that
disclaimer jazz.

Since it doesn't rely on LiveConnect, I would assume it should work.  But, I
don't own any Macs so I can't tell you for sure.

I believe Mapplet is available on the UMN site, but ask if you cannot find
it.

-Dan Martin



> -----Original Message-----
> From: Van Ulden, Joost [mailto:jvanulde@nrcan.gc.ca]
> Sent: Wednesday, January 08, 2003 12:11 PM
> To: Mapserver-Users@Lists. Gis. Umn. Edu (E-mail)
> Cc: Rosa-Users@Dmsolutions. Ca (E-mail)
> Subject: [rosa-users] Rosa Applet for Mac?
> 
> 
> Has anyone developed a Mac compatible applet for Mapserver?  
> I am assuming
> that the issue is related to the lack of support for 
> LiveConnect on the Mac
> platform.
> 
> Regards,
> 
> ============================================
> Joost van Ulden
> Programmer/Analyst
> Natural Resources Canada / Ressources naturelles Canada
> Geological Survey of Canada / Commission geologique du Canada
> 101 - 605 Robson Street / 101 - 605 rue Robson
> Vancouver, B.C. / Vancouver (C.-B.)
> V6B 5J3
> Office/Bureau:  604.666.7525
> fax/telecopieur: 604.666.1124
> jvanulde@nrcan.gc.ca
> ============================================
> 
> _______________________________________________
> ROSA-users mailing list
> ROSA-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/rosa-users
> 


------_=_NextPart_000_01C2B744.D45F5B78
Content-Type: text/html;
	name="mappletClient.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="mappletClient.html"

<html>
<head>
<title>Map Client</title>
<script language=3Djavascript>
	function mapplet_apply(name, minx, miny, maxx, maxy, redraw) {
  	  document.mapserv.imgbox.value =3D minx + " " + miny + " " + maxx + =
" " + maxy;
     document.mapserv.imgxy.value =3D minx + " " + miny;
     if (redraw) {
   	document.mapserv.submit();
     }
   }

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

	function L(url) {
	    window.location.href =3D url
	}

	function zoom(zoomFactor) {
	  document.mapserv.zoom.value =3D zoomFactor;
     document.mapserv.submit();
	}

	function infoClicked() {
	}

  if (navigator.appVersion.indexOf("2.") !=3D -1){
  	check =3D false;
  	}
  if ((navigator.appVersion.indexOf("3.") !=3D -1) && =
(navigator.appName.indexOf("Explorer") !=3D -1)){
  	check =3D false;
  	}
  else {
  	check =3D true;
  	}
  if (check =3D=3D true){
  	zoomInImg =3D new Image();
  	zoomInImg.src =3D =
"/mapserver/clients/images/rosa/icon_zoomin_1.gif";
  	zoomInImgon =3D new Image();
  	zoomInImgon.src =3D =
"/mapserver/clients/images/rosa/icon_zoomin_2.gif";
  	zoomInImgstay =3D new Image();
  	zoomInImgstay.src =3D =
"/mapserver/clients/images/rosa/icon_zoomin.gif";

  	zoomOutImg =3D new Image();
  	zoomOutImg.src =3D =
"/mapserver/clients/images/rosa/icon_zoomOut_1.gif";
  	zoomOutImgon =3D new Image();
  	zoomOutImgon.src =3D =
"/mapserver/clients/images/rosa/icon_zoomOut_2.gif";
  	zoomOutImgstay =3D new Image();
  	zoomOutImgstay.src =3D =
"/mapserver/clients/images/rosa/icon_zoomOut.gif";

  	infoImg =3D new Image();
  	infoImg.src =3D "/mapserver/clients/images/rosa/icon_info_1.gif";
  	infoImgon =3D new Image();
  	infoImgon.src =3D "/mapserver/clients/images/rosa/icon_info_2.gif";
  	infoImgstay =3D new Image();
  	infoImgstay.src =3D "/mapserver/clients/images/rosa/icon_info.gif";
  }

  imageStay =3D ""

  function imageon(name){
  	if (imageStay !=3D name){
          	document[name].src =3D eval(name + "on.src");
  	}
  }
  function imageoff(name){
  	if (imageStay !=3D name){
          	document[name].src =3D eval(name + ".src");
  	}
  }

  function on(name){
          if (check =3D=3D true){
  	imageon(name);
  	}
  }
  function off(name){
          if (check =3D=3D true){
  	imageoff(name);
  	}
  }

  function stay(name){
  	if (check =3D=3D true){
  	document[name].src =3D eval(name + "stay.src");
  	if (imageStay !=3D name){
  		if (imageStay !=3D ""){
  			document[imageStay].src =3D eval(imageStay + ".src");
  		}
  	}
  	imageStay =3D name
  	}
  }



</script>

</head>
<body bgcolor=3Dwhite>

<FORM METHOD=3DGET NAME=3D"mapserv">
<input type=3D"hidden" name=3D"map" value=3D"[map]">
<input type=3D"hidden" name=3D"program" value=3D"[program]">
<input type=3D"hidden" name=3D"map_web_imagepath" =
value=3D"[map_web_imagepath]">
<input type=3D"hidden" name=3D"map_web_imageurl" =
value=3D"[map_web_imageurl]">
<input type=3D"hidden" name=3D"imgext" value=3D"[mapext]">
<input type=3D"hidden" name=3D"imgxy" value=3D"[center_x] [center_y]">
<input type=3D"hidden" name=3D"imgbox" value=3D"">
<input type=3D"hidden" name=3D"zoom" value=3D"">
<input type=3D"hidden" name=3D"title" value=3D"[title]">


<TABLE border=3D0 cellpadding=3D0 cellspacing=3D1 name=3DTopTable =
bgcolor=3Dwhite>
	<TR>
		<TD>
			<table border=3D0 cellpadding=3D0 cellspacing=3D0 bgcolor=3Dblack>
   	  		<TR bgcolor=3Dblack height=3D30>
      			<TD bgcolor=3Dblack>&nbsp;</TD>
      			<TD colspan=3D2 bgcolor=3Dblack>&nbsp;&nbsp;<font =
color=3Dwhite><B>[title]</B></font></TD>
      			<TD bgcolor=3Dblack>&nbsp;</TD>
      		</TR>

      		<TR bgcolor=3Dblack valign=3Dtop>
      			<TD width=3D35>&nbsp;</TD>
             	<TD colspan=3D2>
                   <applet codebase=3D"/cgi-bin/" =
code=3D"mapplet.class" width=3D"[mapwidth]" height=3D"[mapheight]" =
name=3D"mapplet" MAYSCRIPT>
                           <param name=3D"image" =
value=3D"http://etserver1[img]">
                           <param name=3D"jitter" value=3D"10">
                           <param name=3D"thickness" value=3D"1">
                           <param name=3D"color" value=3D"black">
                    </applet>
                </TD>
         		 <TD width=3D35 align=3Dcenter>
         		 	 <a href=3D"javascript:zoom(1.5)" =
onMouseOver=3D"on('zoomInImg');" onMouseOut=3D"off('zoomInImg')" =
onClick=3D"stay('zoomInImg');"><img =
src=3D"/mapserver/clients/images/rosa/icon_zoomin_1.gif"  border=3D"0" =
name=3D"zoomInImg"></a>
     	             <a href=3D"javascript:zoom(-2)" =
onMouseOver=3D"on('zoomOutImg');" onMouseOut=3D"off('zoomOutImg')" =
onClick=3D"stay('zoomOutImg');"><img =
src=3D"/mapserver/clients/images/rosa/icon_zoomOut_1.gif"  border=3D"0" =
name=3D"zoomOutImg"></a>
           	       <a href=3D"javascript:infoClicked()" =
onMouseOver=3D"on('infoImg');" onMouseOut=3D"off('infoImg')" =
onClick=3D"stay('infoImg');"><img =
src=3D"/mapserver/clients/images/rosa/icon_info_1.gif"  border=3D"0" =
name=3D"infoImg"></a>
         		 </TD>
      	    </TR>
   			 <TR valign=3Dtop bgcolor=3Dblack>
   			 		<TD>&nbsp;</TD>
                 	<TD align=3D"left"><B><font =
color=3D"white">&nbsp;&nbsp;&copy; 2002 Your Company =
Here</font></b></TD>
                  <td align=3D"right"><img src=3D"[scalebar]"></td>
                  <TD>&nbsp;</TD>
             </TR>
         </table>
     </TD>
	  <TD bgcolor=3Dwhite>&nbsp;</TD>
	  <td valign=3Dtop>
      <table cellpadding=3D"5" cellspacing=3D"1" border=3D"0" =
bgcolor=3Dblack>
		  <TR>
          <TD bgcolor=3Dblack align=3Dcenter>
             <font size=3D+1 color=3Dwhite><b>Reference Map</b></font>
  			 </TD>
  		 </TR>
        <TR bgcolor=3Dwhite>
			 <TD align=3Dcenter>
              <INPUT NAME=3D"ref" TYPE=3D"image" SRC=3D"[ref]" =
border=3D"0">
			 </TD>
		  </TR>
			<TR height=3D20>
					<TD bgcolor=3Dblack align=3Dcenter>
							<font color=3Dwhite><B>Legend<B></font>
					</TD>
			</TR>
  		 <TR>
  			 <TD bgcolor=3Dwhite>
				 		 <table	cellpadding=3D2 cellspacing=3D0>
             [legend]
						 </table>
  			 </TD>
  		  </TR>
							<TR height=3D20>
					<TD bgcolor=3Dblack align=3Dcenter>
							<font color=3Dwhite><B>Query<B></font>
					</TD>
			</TR>
  		 <TR>
  			 <TD bgcolor=3Dwhite>
				 		 <table	cellpadding=3D2 cellspacing=3D0>
             [query]
						 </table>
  			 </TD>
  		  </TR>

      </table>
  	 </td>
  </tr>
</table>
</form>
</body>
</html>
------_=_NextPart_000_01C2B744.D45F5B78--


This archive was generated by Pipermail.