source: TI03-DataExtractor/branches/old_stuff/latest_dx/dx/web_extras/map_applet/mapApplet.html @ 793

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI03-DataExtractor/branches/old_stuff/latest_dx/dx/web_extras/map_applet/mapApplet.html@793
Revision 793, 4.5 KB checked in by astephen, 13 years ago (diff)

Put all the old code in the old_stuff branch.

  • Property svn:executable set to *
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- saved from url=(0065)http://titania.badc.rl.ac.uk/nctemp/map_applet_new/mapApplet.html -->
3<!-- saved from url=(0065)http://titania.badc.rl.ac.uk/nctemp/map_applet_new/mapApplet.html --><HTML><HEAD><TITLE></TITLE>
4<META http-equiv=Content-Type content="text/html; charset=windows-1252">
5<SCRIPT>
6it_is_loaded = false;
7 
8function set_snapping(obj) {
9
10  if ( document.control_form.snap_to_grid.checked ) {
11    document.map.turn_on_snapping();
12  } else {
13    document.map.turn_off_snapping();
14  }
15
16} 
17function refresh_coords(){
18  document.forms[0].y_Hi.value=document.map.get_yHi();
19  document.forms[0].x_Lo.value=document.map.get_xLo();
20  document.forms[0].x_Hi.value=document.map.get_xHi();
21  document.forms[0].y_Lo.value=document.map.get_yLo();
22}
23</SCRIPT>
24
25<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
26<BODY onload="it_is_loaded = true;">
27<CENTER>
28<H1>MapApplet version 2.1</H1></CENTER>This page has a demonstration Java
29MapApplet.
30<P>The map portion of this applet uses release 2.1 of the tmap.map package we
31are working on for interacting with geophysical datasets across the web.
32<P>Note that this page is using JavaScript to communicate with the applet, thus
33demonstrating the true modularity of the tmap.map package and applets created
34from them.
35<P>The <A 
36href="http://titania.badc.rl.ac.uk/nctemp/map_applet_new/MapApplet_only_v2pt1.java">java
37source code</A> for the appplet is is designed to demonstrate some of the
38features of the tmap.map package. The <A 
39href="http://titania.badc.rl.ac.uk/nctemp/map_applet_new/docs/Package-tmap.map.htm">API</A> 
40for the package is describes all of the methods of each of the classes
41implemented in this package. Source code is found in <A 
42href="http://titania.badc.rl.ac.uk/nctemp/map_applet_new/tmap/map/">tmap/map/</A> 
43in this directory. The images used are found in <A 
44href="http://titania.badc.rl.ac.uk/nctemp/map_applet_new/gifs/">gifs/</A> in
45this directory.
46<P>Background material is found in a <A 
47href="http://titania.badc.rl.ac.uk/nctemp/map_applet_new/white_paper.htm">white
48paper</A> describing this effort.
49<HR>
50<FORM>
51<P>
52<CENTER>
53<TABLE align=center border=5>
54  <TBODY onmouseout=refresh_coords();>
55  <TR>
56    <TD align=middle><APPLET height=309 width=400
57      code=MapApplet_only_v2pt1.class name=map MAYSCRIPT><PARAM NAME="tool" VALUE="3"></APPLET> </TD></TR>
58  <TR>
59    </TR></TBODY></TABLE>
60<TABLE width="75%" border=0>
61  <TBODY>
62  <TR>
63    <TD colSpan=2><div align="center">North
64              <INPUT  name=y_Hi> &nbsp;</div></TD></TR>
65  <TR>
66    <TD><div align="center">West
67               <INPUT  name=x_Lo>
68            </div></TD>
69    <TD><div align="center">East
70              <INPUT  name=x_Hi>
71            </div></TD></TR>
72  <TR>
73    <TD colSpan=2><div align="center">South
74              <INPUT  name=y_Lo>
75            </div></TD></TR></TBODY></TABLE>
76    <p align="right"> 
77      <INPUT name="Get Coords"  label ="Get Coords" type=button  onclick=refresh_coords();>
78    </p>
79  </center></FORM>
80<P>
81<HR SIZE=5>
82
83<P>
84<H1 align=center>The JavaScript controls</H1>
85<FORM name=control_form>
86<CENTER>
87<TABLE cellSpacing=0 cellPadding=5 border=0>
88  <TBODY>
89  <TR>
90    <TD></TD>
91    <TD align=middle><INPUT onclick=document.map.zoom_in() type=button value=" Zoom In "> 
92    </TD>
93    <TD align=middle><INPUT onclick=document.map.zoom_out() type=button value=" Zoom Out "> 
94    </TD>
95    <TD></TD></TR>
96  <TR>
97    <TD>&nbsp;</TD></TR>
98  <TR>
99    <TH align=middle>Image</TH>
100    <TH align=middle>Tool</TH>
101    <TH align=middle>Grid Spacing</TH>
102    <TH align=middle>Snap to Grid</TH></TR>
103  <TR>
104    <TD align=middle><SELECT 
105      onchange="if (it_is_loaded) { document.map.img_select(selectedIndex);}" 
106      name=Image> <OPTION selected>Image 1<OPTION>Image 2<OPTION>Image
107        3</OPTION></SELECT> </TD>
108    <TD align=middle><SELECT 
109      onchange="if (it_is_loaded) { document.map.tool_select(selectedIndex);}" 
110      name=Tool> <OPTION>Pt<OPTION>X ine<OPTION>Y line<OPTION>XY
111        plane<OPTION>X line (compressed Y)<OPTION>Y line (compressed
112        X)<OPTION>Pt (compressed X)<OPTION>Pt (compressed Y)<OPTION selected>Pt
113        (compressed X and Y)</OPTION></SELECT> </TD>
114    <TD><SELECT 
115      onchange="if (it_is_loaded) { document.map.grid_select(selectedIndex);}" 
116      name=grid_spacing> <OPTION>.25 X .25<OPTION selected>1 X 1<OPTION>2 X
117        10<OPTION>10 X 10</OPTION></SELECT> </TD>
118    <TD align=middle><INPUT onclick=set_snapping(this) type=checkbox 
119      name=snap_to_grid> </TD></TR></TBODY></TABLE></CENTER></FORM>
120<P></P></BODY></HTML>
Note: See TracBrowser for help on using the repository browser.