I currently have an array as structured below:
var locations = [
{
lat: 54.603928, //latitude
lon: -5.915033, //longditude
title: 'Odyssey Arena, Belfast', //name of venue
html: [ //the HTML that appears inside the map tooltips
'<h4>Odyssey Arena, Belfast.</h4>', //name of venue
'<p>23rd March 2015</p>' //date of venue
].join(''), //Joins the HTML
icon: '//maps.google.com/mapfiles/markerA.png', //the marker for the location on the google map
zoom: 7//makes the map zoom in closer to the location when clicked
},
{
lat: 53.347496,
lon: -6.228508,
title: 'O2 Arena, Dublin',
html: [
'<h4>CO2 Arena, Dublin.</h4>',
'<p>20th March 2015</p>'
].join(''),
icon: '//maps.google.com/mapfiles/markerB.png',
zoom: 7
}];
I need to extract the title value from each and place it in a new array.