portfolio/src/main/webapp/script.js
/** Adds a marker (with drop animation) that shows an info window when clicked. */
Adds a marker (with drop animation) that shows an info window when clicked.
Adds a marker ( with drop animation ) that shows an info window when clicked .
function addLandmark(map, lat, lng, title, description, label) {
  const marker = new google.maps.Marker(
      {position: {lat: lat, lng: lng}, map: map, title: title, label: label, animation: google.maps.Animation.DROP});
  const infoWindow = new google.maps.InfoWindow({content: description});
  marker.addListener('click', () => {
    infoWindow.open(map, marker);
  });
}
function addLandmark ( map , lat , lng , title , description , label ) { const marker = new google . maps . Marker ( { position : { lat : lat , lng : lng } , map : map , title : title , label : label , animation : google . maps . Animation . DROP } ) ; const infoWindow = new google . maps . InfoWindow ( { content : description } ) ; marker . addListener ( 'click' , ( ) => { infoWindow . open ( map , marker ) ; } ) ; }
Adds a marker (with drop animation) that shows an info window when clicked.
Adds a marker ( with drop animation ) that shows an info window when clicked .