function add_marker( $marker, map ) {

	// var
	var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );

	var icon = {
	    path: "",
	    fillColor: '#f94262',
	    fillOpacity: 1,
	    strokeWeight: 0,
	    scale: 0.65
	};

	// create marker
	var marker = new google.maps.Marker({
		position	: latlng,
		map			: map,
		icon		: icon
	});

	// add to array
	map.markers.push( marker );

	// if marker contains HTML, add it to an infoWindow
	if( $marker.html() )
	{
		// create info window
		var infowindow = new google.maps.InfoWindow({
			content		: $marker.html()
		});

	}

}
/*
*  add_marker
*
*  This function will add a marker to the selected Google Map
*
*  @type	function
*  @date	8/11/2013
*  @since	4.3.0
*
*  @param	$marker (jQuery element)
*  @param	map (Google Map object)
*  @return	n/a
*/
add_marker
This function will add a marker to the selected Google Map
add_marker This function will add a marker to the selected Google Map
function add_marker( $marker, map ) {
	var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );
	var icon = {
	    path: "",
	    fillColor: '#f94262',
	    fillOpacity: 1,
	    strokeWeight: 0,
	    scale: 0.65
	};
	var marker = new google.maps.Marker({
		position	: latlng,
		map			: map,
		icon		: icon
	});
	map.markers.push( marker );
	if( $marker.html() )
	{
		var infowindow = new google.maps.InfoWindow({
			content		: $marker.html()
		});
	}
}
function add_marker ( $marker , map ) { var latlng = new google . maps . LatLng ( $marker . attr ( 'data-lat' ) , $marker . attr ( 'data-lng' ) ) ; var icon = { path : "" , fillColor : '#f94262' , fillOpacity : 1 , strokeWeight : 0 , scale : 0.65 } ; var marker = new google . maps . Marker ( { position : latlng , map : map , icon : icon } ) ; map . markers . push ( marker ) ; if ( $marker . html ( ) ) { var infowindow = new google . maps . InfoWindow ( { content : $marker . html ( ) } ) ; } }
add_marker
This function will add a marker to the selected Google Map
add_marker This function will add a marker to the selected Google Map
// var // create marker // add to array // if marker contains HTML, add it to an infoWindow // create info window