Page 1
Links Needed For This Presentation
•https://www.ats.amherst.edu/tokyo2/index.php
•http://www.ats.amherst.edu/paris2
•https://www.amherst.edu/offices/it/teaching_research/projects aMapApp3/setup/script
•https://www.amherst.edu/offices/it/teaching_research/projects/aMapApp3/using/minimal
•https://www.amherst.edu/offices/it/teaching_research/projects/aMapApp3/using/example
•http://dev2.ats.amherst.edu/nercomp
•http://dev2.ats.amherst.edu/galaxy/
Page 15
<?phprequire_once "/var/www/configs/SimpleMap_config.php";require_once XAJAX_PATH."/xajax_core/xajax.inc.php";$xajax = new xajax();require_once UTILITY_LIBRARY;require_once DB_DATABASE_LIBRARY;dl_dbInit();include(MAPAPP_PATH."/mapApp_xajaxFunctions.php");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><?php $xajax->printJavascript(XAJAX_URL);?><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>MapApp Test</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<?phpinclude MAPAPP_PATH."/mapAppObject.php";?><script language="javascript">function load() { myMapApp = new aMapAppObject(configObject = new Object({ loginDiv:"login_container" }) ); }
</script></head>
<body onLoad="load();"><br /> <b>Simple Map Example Page</b><br /><br /><div id="select_container"></div>
<div id="map_container"style="width: 600px; height: 500px;"></div>
<div id="drag_container"style="position: absolute; z-index: 113; visibility: visible;left: 650px; top: 10px; width: 340px; height: 76px; display: block;"></div>
<div id="login_container"style="position: absolute; z-index: 113; visibility: visible; left: 650px; top: 250px; width: 340px; height: 76px; display: block;"></div></body></html>
Page 17
<?phprequire_once "/var/www/configs/matest3_config.php";require_once XAJAX_PATH."/xajax_core/xajax.inc.php";$xajax = new xajax();require_once UTILITY_LIBRARY;require_once DB_DATABASE_LIBRARY;dl_dbInit();include(MAPAPP_PATH."/mapApp_xajaxFunctions.php");?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><?php $xajax->printJavascript(XAJAX_URL);?><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>MapApp Test</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<?phpinclude MAPAPP_PATH."/mapAppObject.php";?><script language="javascript">function load() {
Page 18
typeArray = [ [1,"Neighborhood", "http://maps.google.com/mapfiles/kml/paddle/red-circle.png"], [2,"Building","http://maps.google.com/mapfiles/kml/shapes/homegardenbusiness.png"], [3,"Natural Feature","http://maps.google.com/mapfiles/kml/shapes/parks.png"] ]; myMapApp = new aMapAppObject(configObject = new Object({ navDiv:'nav_container’, typeDiv:'type_container’, groupDiv:'group_container', loginDiv:'login_container', startLong:139.752769, startZoom:12, newAccounts:false, user:'pdchapin', password:‘filmore', authority_level:80, attribution_level:40, groups:true, flickr:true, flickr_api_key:’flickerKey’, local:'searchDigitool', locationTypes:typeArray, showGroups:true, locationConfig: new Object({ startTab:1, locationByPhoto:true, locationImage:true, locationBlog:true, imageBlogs:true,}),
blogConfig: new Object({ blogOrder:false, blogAuthority:40, displayButtons:true, blogContainer:true, showTitle:false, sortOption:true, height:516, width:324, attribution:true}), loginConfig: new Object({ success:"Login was successful. Testing", failure:'Login failed. Please try again. Testing', defaultLevel:4}), aViewerConfig: new Object({
rows: 1, columns:5, viewers:5, customLabel:'Hanging Scroll Display'}) }) );
Page 19
}
</script></head>
<body onLoad="load();"><br><br><div id="select_container"></div><div id="map_container"style="width: 600px; height: 500px;"></div><div id="drag_container"style="position: absolute; z-index: 113; visibility: visible; left: 650px; top: 60px; width: 340px; height: 76px; display: block;"></div><div id="nav_container" style="position: absolute; z_index: 113; visibility: visible; left: 650px; top: 150px; width: 340px; height: 140px; display: block;"></div><div id="login_container"style="position: absolute; z-index: 113; visibility: visible; left: 20px; top: 600px; width: 340px; height: 76px; display: block;"></div><div id="type_container" style="position: absolute; z-index:113; visibility:visible; left:650px; top:310px; width:340px; height:100px; display:block;"></div><div id="group_container" style="position: absolute; z-index:113; visibility:visible; left:650px; top:510px; width:340px; height:100px; display:block;"></div>
</body></html>
Page 23
Documentation (including aMapApp3 download)
https://www.amherst.edu/offices/it/teaching_research/projects/aMapApp3https://www.amherst.edu/offices/it/teaching_research/projects/aLogin2 https://www.amherst.edu/offices/it/teaching_research/projects/aBlog2 Currently there are plans to update the layout of the IT pages at Amherst, but the following URLs should continue to work even after that happens. https://www.amherst.edu/mm/235193 https://www.amherst.edu/mm/235281https://www.amherst.edu/mm/235245 Demo Sites https://www.ats.amherst.edu/paris2/ https://www.ats.amherst.edu/MapAppDemo/ The first contains the historic map overlay shown here. The second lacks the overlays, but has more features turned on. These are public sites. As such security is minimal and any data on the site may be changed or deleted at any time. It is strictly to demo some of the features of aMapApp3.
Discussion Site/Help Site
http://www.ats.amherst.edu/aAppBlog My Contact information
[email protected] 542-2144