`I want to show the date of imagery of the particular address using google maps API? is there any date method or property for getting date from this google maps API?
function initMap(address1) { showAjaxLoader();
var geocoder = new google.maps.Geocoder();
var address = address1;
var latitude;
var longitude;
if (address != "") {
geocoder.geocode({ 'address': address }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
latitude = results[0].geometry.location.lat();
longitude = results[0].geometry.location.lng();
moveToGoogleMaps(latitude, longitude, address);
GetFindImageInfo(latitude, longitude);
GetPropertyInfo(latitude, longitude);
//GetDamage(latitude, longitude);
}
});
}
hideAjaxLoader();
}
function moveToGoogleMaps(latitude, longitude, address) {
setTimeout(() => { const latlongs = { lat: latitude, lng: longitude };
const map = new google.maps.Map(document.getElementById("map"), { zoom: 20, center: latlongs, mapTypeId: 'satellite' });
const marker = new google.maps.Marker({ position: latlongs, map: map, date: });
// Add event listener for marker hover
marker.addListener('mouseover', () => {
// Create info window with marker details
const infoWindow = new google.maps.InfoWindow({
content: `Location: ${address+marker.date}`
});
// Open info window
infoWindow.open(map, marker);`your text`
});
}, 1000);
}
here is the code that i am trying for getting date for particular address.
following is the script that iam using
<script src=”https://maps.googleapis.com/maps/api/js?key=Your-key&callback=initMap&libraries=places&v=weekly” defer></script>
`