function new_map( $el ) {

	// var
	var $markers = $el.find('.marker');

	// Custom map styles

	var styles = [
	  {
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#ebe3cd"
	      }
	    ]
	  },
	  {
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#523735"
	      }
	    ]
	  },
	  {
	    "elementType": "labels.text.stroke",
	    "stylers": [
	      {
	        "color": "#f5f1e6"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#c9b2a6"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative.land_parcel",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#dcd2be"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative.land_parcel",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#ae9e90"
	      }
	    ]
	  },
	  {
	    "featureType": "landscape.natural",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "poi",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "poi",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#93817c"
	      }
	    ]
	  },
	  {
	    "featureType": "poi.park",
	    "elementType": "geometry.fill",
	    "stylers": [
	      {
	        "color": "#73786a"
	      }
	    ]
	  },
	  {
	    "featureType": "poi.park",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#447530"
	      }
	    ]
	  },
	  {
	    "featureType": "road",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#f5f1e6"
	      }
	    ]
	  },
	  {
	    "featureType": "road.arterial",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#fdfcf8"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#e3a426"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#e9bc62"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway.controlled_access",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#e98d58"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway.controlled_access",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#db8555"
	      }
	    ]
	  },
	  {
	    "featureType": "road.local",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#806b63"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#8f7d77"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "labels.text.stroke",
	    "stylers": [
	      {
	        "color": "#ebe3cd"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.station",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "water",
	    "elementType": "geometry.fill",
	    "stylers": [
	      {
	        "color": "#b9d3c2"
	      }
	    ]
	  },
	  {
	    "featureType": "water",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#92998d"
	      }
	    ]
	  }
	];

    var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"} );


	// vars
	var args = {
		zoom		: 10,
		center		: new google.maps.LatLng(0, 0),
		mapTypeId	: google.maps.MapTypeId.ROADMAP,
		mapTypeControlOptions: {
			mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
		}
	};


	// create map
	var map = new google.maps.Map( $el[0], args);

	map.mapTypes.set('map_style', styledMap);
	map.setMapTypeId('map_style');


	// add a markers reference
	map.markers = [];


	// add markers
	$markers.each(function(){

    	add_marker( $(this), map );

	});


	// center map
	center_map( map );


	// return
	return map;

}
/*
*  new_map
*
*  This function will render a Google Map onto the selected jQuery element
*
*  @type	function
*  @date	8/11/2013
*  @since	4.3.0
*
*  @param	$el (jQuery element)
*  @return	n/a
*/
new_map
This function will render a Google Map onto the selected jQuery element
new_map This function will render a Google Map onto the selected jQuery element
function new_map( $el ) {
	var $markers = $el.find('.marker');
	var styles = [
	  {
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#ebe3cd"
	      }
	    ]
	  },
	  {
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#523735"
	      }
	    ]
	  },
	  {
	    "elementType": "labels.text.stroke",
	    "stylers": [
	      {
	        "color": "#f5f1e6"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#c9b2a6"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative.land_parcel",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#dcd2be"
	      }
	    ]
	  },
	  {
	    "featureType": "administrative.land_parcel",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#ae9e90"
	      }
	    ]
	  },
	  {
	    "featureType": "landscape.natural",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "poi",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "poi",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#93817c"
	      }
	    ]
	  },
	  {
	    "featureType": "poi.park",
	    "elementType": "geometry.fill",
	    "stylers": [
	      {
	        "color": "#73786a"
	      }
	    ]
	  },
	  {
	    "featureType": "poi.park",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#447530"
	      }
	    ]
	  },
	  {
	    "featureType": "road",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#f5f1e6"
	      }
	    ]
	  },
	  {
	    "featureType": "road.arterial",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#fdfcf8"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#e3a426"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#e9bc62"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway.controlled_access",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#e98d58"
	      }
	    ]
	  },
	  {
	    "featureType": "road.highway.controlled_access",
	    "elementType": "geometry.stroke",
	    "stylers": [
	      {
	        "color": "#db8555"
	      }
	    ]
	  },
	  {
	    "featureType": "road.local",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#806b63"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#8f7d77"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.line",
	    "elementType": "labels.text.stroke",
	    "stylers": [
	      {
	        "color": "#ebe3cd"
	      }
	    ]
	  },
	  {
	    "featureType": "transit.station",
	    "elementType": "geometry",
	    "stylers": [
	      {
	        "color": "#acaca8"
	      }
	    ]
	  },
	  {
	    "featureType": "water",
	    "elementType": "geometry.fill",
	    "stylers": [
	      {
	        "color": "#b9d3c2"
	      }
	    ]
	  },
	  {
	    "featureType": "water",
	    "elementType": "labels.text.fill",
	    "stylers": [
	      {
	        "color": "#92998d"
	      }
	    ]
	  }
	];
    var styledMap = new google.maps.StyledMapType(styles, {name: "Styled Map"} );
	s
	var args = {
		zoom		: 10,
		center		: new google.maps.LatLng(0, 0),
		mapTypeId	: google.maps.MapTypeId.ROADMAP,
		mapTypeControlOptions: {
			mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
		}
	};
	var map = new google.maps.Map( $el[0], args);
	map.mapTypes.set('map_style', styledMap);
	map.setMapTypeId('map_style');
	map.markers = [];
	$markers.each(function(){
    	add_marker( $(this), map );
	});
	center_map( map );
	return map;
}
function new_map ( $el ) { var $markers = $el . find ( '.marker' ) ; var styles = [ { "elementType" : "geometry" , "stylers" : [ { "color" : "#ebe3cd" } ] } , { "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#523735" } ] } , { "elementType" : "labels.text.stroke" , "stylers" : [ { "color" : "#f5f1e6" } ] } , { "featureType" : "administrative" , "elementType" : "geometry.stroke" , "stylers" : [ { "color" : "#c9b2a6" } ] } , { "featureType" : "administrative.land_parcel" , "elementType" : "geometry.stroke" , "stylers" : [ { "color" : "#dcd2be" } ] } , { "featureType" : "administrative.land_parcel" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#ae9e90" } ] } , { "featureType" : "landscape.natural" , "elementType" : "geometry" , "stylers" : [ { "color" : "#acaca8" } ] } , { "featureType" : "poi" , "elementType" : "geometry" , "stylers" : [ { "color" : "#acaca8" } ] } , { "featureType" : "poi" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#93817c" } ] } , { "featureType" : "poi.park" , "elementType" : "geometry.fill" , "stylers" : [ { "color" : "#73786a" } ] } , { "featureType" : "poi.park" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#447530" } ] } , { "featureType" : "road" , "elementType" : "geometry" , "stylers" : [ { "color" : "#f5f1e6" } ] } , { "featureType" : "road.arterial" , "elementType" : "geometry" , "stylers" : [ { "color" : "#fdfcf8" } ] } , { "featureType" : "road.highway" , "elementType" : "geometry" , "stylers" : [ { "color" : "#e3a426" } ] } , { "featureType" : "road.highway" , "elementType" : "geometry.stroke" , "stylers" : [ { "color" : "#e9bc62" } ] } , { "featureType" : "road.highway.controlled_access" , "elementType" : "geometry" , "stylers" : [ { "color" : "#e98d58" } ] } , { "featureType" : "road.highway.controlled_access" , "elementType" : "geometry.stroke" , "stylers" : [ { "color" : "#db8555" } ] } , { "featureType" : "road.local" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#806b63" } ] } , { "featureType" : "transit.line" , "elementType" : "geometry" , "stylers" : [ { "color" : "#acaca8" } ] } , { "featureType" : "transit.line" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#8f7d77" } ] } , { "featureType" : "transit.line" , "elementType" : "labels.text.stroke" , "stylers" : [ { "color" : "#ebe3cd" } ] } , { "featureType" : "transit.station" , "elementType" : "geometry" , "stylers" : [ { "color" : "#acaca8" } ] } , { "featureType" : "water" , "elementType" : "geometry.fill" , "stylers" : [ { "color" : "#b9d3c2" } ] } , { "featureType" : "water" , "elementType" : "labels.text.fill" , "stylers" : [ { "color" : "#92998d" } ] } ] ; var styledMap = new google . maps . StyledMapType ( styles , { name : "Styled Map" } ) ; var args = { zoom : 10 , center : new google . maps . LatLng ( 0 , 0 ) , mapTypeId : google . maps . MapTypeId . ROADMAP , mapTypeControlOptions : { mapTypeIds : [ google . maps . MapTypeId . ROADMAP , 'map_style' ] } } ; var map = new google . maps . Map ( $el [ 0 ] , args ) ; map . mapTypes . set ( 'map_style' , styledMap ) ; map . setMapTypeId ( 'map_style' ) ; map . markers = [ ] ; $markers . each ( function ( ) { add_marker ( $ ( this ) , map ) ; } ) ; center_map ( map ) ; return map ; }
new_map
This function will render a Google Map onto the selected jQuery element
new_map This function will render a Google Map onto the selected jQuery element
// var // Custom map styles // vars // create map // add a markers reference // add markers // center map // return