I have seen article like:
Embellishing Your Google Map with CSS3 and jQuery
URL:http://www.sitepoint.com/embellishin...s3-and-jquery/
I have set new airport location like working code:
//Added animation for Jquery
var places = [
{
"title": "Flinders St Station",
"description": "This is a pretty major train station.",
"position": [ -37.818078, 144.966811 ]
},
{
"title": "Southern Cross Station",
"description": "Did you know it used to be called Spencer St Station?",
"position": [ -37.818358, 144.952417 ]
},
{
"title": "West Melbourne Viktoria",
"description": "Did you know it is the major airport?",
"position": [ -37.802731,144.915733 ]
}
]
var currentPlace = null;
var info = $('#placeDetails');
$(places).each(function() {
var place = this;
var marker = new google.maps.Marker({
position: new google.maps.LatLng(place.position[0], place.position[1]),
map: map,
title: place.title,
icon: 'images/icons/trasportation/all/train.png'
});
/* var marker = new google.maps.Marker({
position: new google.maps.LatLng(place.position[2]),
map: map,
title: place.title,
icon: 'images/icons/trasportation/all/airport.png'
}); */
How to set last marker Airport in Melbourn to be seen marker Airport:
/* var marker = new google.maps.Marker({
position: new google.maps.LatLng(place.position[2]),
map: map,
title: place.title,
icon: ‘images/icons/trasportation/all/airport.png’
}); */
I have done place.position[2] and also:GEO position:
“title”: “West Melbourne Viktoria”,
“description”: “Did you know it is the major airport?”,
“position”: [ -37.802731,144.915733 ]