The following is the complete script for a application using aMapApp3. 

Green code is standard and can be cut and pasted into your application. 
Red code are values that are unique to the application. 
Grey code is the layout html.  You will have to change this to meet you needs.

<?php
require_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>

<?php
include MAPAPP_PATH."/mapAppObject.php";
?>
<script language="javascript">
function load() {

  // Define a type array for the various location types
  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"]
    ];
  // Define the mapApp object.
 
    myMapApp = new aMapAppObject(configObject =
 
                                  new Object({
                                               navDiv:'nav_container',
                                               typeDiv:'type_container',
                                               groupDiv:'group_container',
                                               loginDiv:'login_container',
                                               navShadow:false,
                                               startLat:35.682032,
                                               startLong:139.752769,
                                               startZoom:12,
                                               newAccounts:false,
                                               user:'pdchapin',
                                               password:'filmore'',
                                               authority_level:80,
                                               attribution_level:40,
                                               groups:true,
                                               flickr:true,
                                               flickr_api_key:'keyNumber',
                                               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'})
                                })
                        );

}

</script>
</head>

<body onLoad="load();">
<br />
&nbsp;&nbsp;&nbsp;<b>MapApp 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: 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>

This example generates the page show below.  (Click to see full size).

matest3screen