/**
	@file This file contains the globals used for the Google Maps
	implementation used by RRP.

	USED BY:
	
	INCLUDED BY:
		/maps.php
 */

/*--------------------------------------------------------------------------*/
// CONSTANTS /* {{{ */
/**
	Base URL of the maps library.
 */
var MAPS_BASE_URL = '/';

/**
	Initial lattitude used with initial map load.
 */
var INITIAL_LATTITUDE = 37.2833333333;

/**
	Initial longitude used with initial map load.
 */
var INITIAL_LONGITUDE = -79.95;

/**
	Map center used with initial map load.
 */
var DEFAULT_MAP_CENTER = new GLatLng(INITIAL_LATTITUDE, INITIAL_LONGITUDE);

/**
	Map zoom level used with initial map load.
 */
var DEFAULT_MAP_ZOOM = 9;

/**
	Map type used with initial map load.
 */
var DEFAULT_MAP_TYPE = G_HYBRID_MAP;

/**
	Delay in milliseconds between zoom operations on the map.
 */
var MAP_ZOOM_DELAY = 400;

/**
	Delay in milliseconds between pan operations on the map.
 */
var MAP_PAN_DELAY = 300;

/* }}} */

/*--------------------------------------------------------------------------*/
// GLOBAL VARIABLES /* {{{ */
/**
	Google Map (Gmap2) object.
 */
var g_map = null;

/**
	Array of objects containing data for area overlays.
 */
var g_region_data = new Array();

/**
	Array of objects containing data for map markers.
 */
var g_marker_data = new Array();

/**
	Object that contains the state of the map system.
 */
var g_state = {

	curr_zoom: DEFAULT_MAP_ZOOM, // current zoom level of the map
	orig_zoom: DEFAULT_MAP_ZOOM, // zoom level of map prior to starting a pan

	markers_enabled: true, // whether or not markers are currently displayed
	regions_enabled: false, // whether or not area overlays are currently displayed

	zoom_delay: MAP_ZOOM_DELAY, // delay in milliseconds between zoom operations
	pan_delay: MAP_PAN_DELAY, // delay in milliseconds between pan operations

	is_pan_zoom: false // whether or not a pan zoom is currently being performed
};


/* }}} */

