var marker;
var image = 'https://www.anygenes.com/images/iconeMap.ico';
function initMap() {
var myLatLng = {
lat: 48.8659586,
lng: 2.4009226
};
// Specify features and elements to define styles.
var styleArray = [{
featureType: "all",
stylers: [{
saturation: 10
}]
}, {
color: "#C0C0C0",
featureType: "road.arterial",
elementType: "geometry",
stylers: [{
hue: "#CCFFFF"
},
{
saturation: 50
}
]
}, {
featureType: "poi.business",
elementType: "labels",
stylers: [{
visibility: "off"
}]
}];
var map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
scrollwheel: false,
// Apply the map style array to the map.
styles: styleArray,
zoom: 9
});
var directionsDisplay = new google.maps.DirectionsRenderer({
map: map
});
// Create a marker and set its position.
marker = new google.maps.Marker({
map: map,
icon: image,
draggable: true,
animation: google.maps.Animation.DROP,
position: myLatLng
});
marker.addListener('click', toggleBounce);
}
function toggleBounce() {
if (marker.getAnimation() !== null) {
marker.setAnimation(null);
} else {
marker.setAnimation(google.maps.Animation.BOUNCE);
}
}
$(document).ready(function() {
$('#loadingg').show(3000);
$('#loadingg').fadeOut('fast');
$('#sendDivSuccess').delay(3000).fadeIn();
$('#sendDivError').delay(3000).fadeIn();
$('#Sending').delay(3000).fadeOut();
});