Location: PHPKode > projects > Wiki-Map > htdocs/viewmap.php
/******************************************************************************
#   Copyright notice                                                                
#   
#   This file is part of Wiki-Map project [http://wiki-map.sourceforge.net/] 
#   Wiki-Map is free software; you can redistribute it and/or 
#   modify it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or (at your 
#   option) any later version.                                    
#
#   The GNU General Public License can be found at                        
#   http://www.gnu.org/copyleft/gpl.html.                                 
#   A copy is found in the textfile GPL and important notices to the      
#   license from the team is found in the textfile LICENSE distributed    
#   with these scripts.                                                    
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#   This copyright notice MUST APPEAR in all copies and derivatives of the script!
#*********************************************************************************
# $Source: /cvsroot/wiki-map/maps/index.php,v $
# $Header: /cvsroot/wiki-map/maps/index.php,v 1.1.1.1 2007/01/24 17:50:33 soumya42 Exp $
# $Author: soumya42 $

# All PHP scripts requires

dss.php          # DSS has global variables setup, and someshell.sf.net common scripts
codepage.php     # Includes all user prompts declared as variable string for internatiolization
authorize.php    # Check authorization for running the program

All these scripts are referenced from /htdocs/ directory

# Global database variables (Defined in dss.php)
#
# 	$host      	- Database host
# 	$db_base    	- Database name
# 	$db_owner  	- Database user
# 	$db_passwd	- Database password
#
# ------------------- Your program should come below this --------------------------- -->
*/
	
   <script type="text/javascript">
//<![CDATA[
//------------------------------Show Map ----------------------------------
   function load() {
     if (GBrowserIsCompatible()) {
       var map = new GMap2(document.getElementById("map"));
       map.setCenter(new GLatLng(22.585168, 88.403893), 13);
       map.addControl(new GLargeMapControl());
       map.addControl(new GMapTypeControl());
       map.setMapType(G_HYBRID_MAP);
       map.addControl(new GScaleControl());
	   map.addControl(new GOverviewMapControl());
     }
   }
   //------------------------- End load ----------------------------------------
   //]]>

	
   </script>


 </head>
<!-- This is a template to show the map --> 
 <body onload="load()" onunload="GUnload()">
</body>
Return current item: Wiki-Map