/*
 *  Translink Locations Map Configuration
 *  
 *  Global configuration in addition to any local functions are in here
 *
 */

// Local settings for this Google Map mashup:

this.LocationsMapperConfig = 
{
  // Definitions of Locations Layers:
  // "id" - corresponds to Location attribute "type" for filtering if FilterOnId is true
  // "MarkerIcon" - the URL (relative to calling HTML page) of the icon to be used for Locations in this layer
  // "LocationsXmlFile" - The URL (relative to calling HTML page) of the XML Locations data
  // "ShowOnLoad" - If true, this layer will be loaded and displayed immediately
  Layers : [
    { ID: 'swirl', title: 'Swirl', MarkerIcon: 'markers/swirl_pin.png',  MarkerIconSize: { w: 37, h: 64, anchor: { x: 18, y: 63 } }, MarkerShadowIcon: 'markers/swirl_shadow.png', MarkerShadowIconSize: { w: 68 , h: 63, anchor: { x: 18, y: 62 } }, LocationsXmlFile: 'swirlmap.xml', FilterOnId: true, ShowOnLoad: true },
    { ID: 'parking',  title: 'Parking',  MarkerIcon: 'markers/parking_pin.png',  MarkerIconSize: { w: 23, h: 38, anchor: { x: 11, y: 37 } }, MarkerShadowIcon: 'markers/parking_shadow.png', MarkerShadowIconSize: { w: 40 , h: 37, anchor: { x: 11, y: 35 } }, LocationsXmlFile: 'swirlmap.xml', FilterOnId: true, ShowOnLoad: true }
  ],
  
  // The graphic shadow to place under the marker icon
  MarkerShadowIcon : 'googlemap/marker_icons/mm_20_shadow.png',
  
  // A default icon to use if the location type does not match one defined above
  MarkerIconDefault : 'googlemap/marker_icons/mm_20_grey.png',
  
  UseLoadingThrobber: false,
  
  ShowDirectionsPane: function( directionsMgr ) {
    if ( !$('googleMap').hasClassName('showingDirections') )
      $('googleMap').addClassName( 'showingDirections' );
    
  },
  
  // IDs of content DIVs
  MapOuterDivId      : 'googleMapOuter',
  MapInnerDivId      : 'googleMap',
  DirectionsDivId    : 'gDrivingDirections',
  LegendDivId        : 'googleMapLegend',
  
  // Pixel dimensions of Driving Directions Div
  DirectionsWidth   : 200,
  DirectionsPadding : 8,
  
  // Initial center of origin point for map (latitude/longitude)
  InitialLatitude  :   37.80401983006109,
  InitialLongitude : -122.40499019622803,
  InitialZoomLevel : 16,
  
  // Set to TRUE if you'd like the zoom/pan controls available
  ShowBaseControls   : true,
  
  // Set to TRUE if you'd like the street/satellite/hybrid selection controls available
  ShowExtraControls  : false,
  
  // Set this to TRUE to disable caching of XML location data:
  ForceNoCache : true,


  /*************************************************************************************************/
  /*************************************************************************************************/
  /*************************************************************************************************/

  //
  // Custom hook functions for the Select Region and Select Layers dialogs:
  //
  
  // set this to TRUE to have a user select a Region from above before being allowed to use the map
  SelectRegionOnLoad : false,
  
  //
  // This hooks into the onload handler.. it gets called directly following the 
  // image pre-loading (see googlemap/includes/core.js)
  OnLoadHook: function()
  {  }
  
};  



