function addMarker(markerData, title) {
var marker = new google.maps.Marker({
position: {lat: markerData.lat, lng: markerData.lng},
icon: '/assets/images/' + markerData.type + '.png',
map: map,
title: title
});
markers.push(marker);
}