LOCATION MAP
var map;
var myLatLng= new google.maps.LatLng(13.0735569, 80.2213555);
function initialize() {
map = new google.maps.Map(document.getElementById('map-canvas'), {
zoom: 17,
center: myLatLng,
styles: [
{
featureType: 'road',
elementType: 'geometry',
stylers: [
{ color: '#ffcc00' },
{ weight: 1.3 }
]
}, {
featureType: 'road.highway',
elementType: 'geometry',
stylers: [
{ color: '#ffaa00' },
{ weight: 1.5 }
]
}, {
featureType: 'road',
elementType: 'labels',
stylers: [
{ hue: '#555555' },
{ gamma: 1 },
{ saturation: 82 },
{ lightness: 0 }
]
}, {
featureType: 'landscape',
elementType: 'geometry',
stylers: [
{ hue: '#55dd00' },
{ gamma: 1.4 },
{ saturation: 50 },
{ lightness: 96 }
]
},{
featureType: "poi",
stylers: [
{ visibility: "off" }
]
}, {
featureType: 'poi.park',
elementType: 'geometry',
stylers: [
{ visibility: "on" },
{ hue: '#689f38' },
{ lightness: -15 },
{ saturation: 50 }
]
}, {
featureType: 'poi.park',
elementType: 'label',
stylers: [
{ visibility: "on" }
]
}, {
featureType: 'transit.station.bus',
elementType: 'label',
stylers: [
{ visibility: "on" }
]
}
]
});
var iconBase = '/wp-content/uploads/';
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: iconBase + '2015/04/location-map.png'
});
var AnnaArchmarker = new google.maps.Marker({
position: new google.maps.LatLng(13.0754522,80.2177551),
map: map,
icon: '/wp-content/uploads/2015/07/26TH_ARCH_1310190f_250x125-e1437635904609.jpg'
});
var SWBusStopmarker = new google.maps.Marker({
position: new google.maps.LatLng(13.0740136,80.2219217),
map: map,
icon: '/wp-content/uploads/2015/07/markers_busStop-e1437636033104.png'
});
var CMBTmarker = new google.maps.Marker({
position: new google.maps.LatLng(13.0670705,80.2073774),
map: map,
icon: '/wp-content/uploads/2015/07/markers_busStop.png'
});
var Annatowermarker = new google.maps.Marker({
position: new google.maps.LatLng(13.0874381,80.2171448),
map: map,
icon: '/wp-content/uploads/2015/07/27c1e5594276c45ca21d6a51099adf58_large_188x250-e1437635919288.jpg'
});
changeSourceAll();
}
google.maps.event.addDomListener(window, 'load', initialize);
function changeSourceAll() {
var images = document.getElementsByTagName('img');
for (var i = 0; i < images.length; i++) {
if (images[i].src.indexOf('https://maps.gstatic.com/mapfiles/transit/iw2/6/bus.png') !== -1) {
images[i].src = images[i].src.replace("https://maps.gstatic.com/mapfiles/transit/iw2/6/bus.png", "/wp-content/uploads/2015/07/markers_busStop.png");
}
}
}