Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.138.123.149
var map;
var latlng = new google.maps.LatLng(51.5074, 0.1278);
var stylez = [{
featureType: "all",
elementType: "all",
stylers: [{
saturation: -150
}]
}];
var mapOptions = {
zoom: 16,
center: latlng,
scrollwheel: false,
scaleControl: false,
disableDefaultUI: true,
mapTypeControlOptions: {
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'gMap']
}
};
map = new google.maps.Map(document.getElementById("googleMap"), mapOptions);
var geocoder_map = new google.maps.Geocoder();
var address = 'London';
geocoder_map.geocode({
'address': address
}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
icon: 'img/core-img/point.png',
position: map.getCenter()
});
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
var mapType = new google.maps.StyledMapType(stylez, {
name: "Grayscale"
});
map.mapTypes.set('gMap', mapType);
map.setMapTypeId('gMap');
|