function addMarker(location) {
    var marker = new google.maps.Marker({
        position: location,
        map: map,
        draggable: true,
        animation: google.maps.Animation.DROP,
        title: showTooltip(),
        notes: {}
    });

    markers.push(marker);

    marker.addListener('click', function () {
        var contentString = marker.title;
        // Set the info window's content and position.
        infoWindow.setContent(contentString);
        infoWindow.open(map, marker);
        markPoint(marker.listId);
    });

}
// Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array .
function addMarker(location) {
    var marker = new google.maps.Marker({
        position: location,
        map: map,
        draggable: true,
        animation: google.maps.Animation.DROP,
        title: showTooltip(),
        notes: {}
    });
    markers.push(marker);
    marker.addListener('click', function () {
        var contentString = marker.title;
        infoWindow.setContent(contentString);
        infoWindow.open(map, marker);
        markPoint(marker.listId);
    });
}
function addMarker ( location ) { var marker = new google . maps . Marker ( { position : location , map : map , draggable : true , animation : google . maps . Animation . DROP , title : showTooltip ( ) , notes : { } } ) ; markers . push ( marker ) ; marker . addListener ( 'click' , function ( ) { var contentString = marker . title ; infoWindow . setContent ( contentString ) ; infoWindow . open ( map , marker ) ; markPoint ( marker . listId ) ; } ) ; }
Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array .
// Set the info window's content and position.