diff --git a/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html b/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html index 91c5e24..7f403f1 100644 --- a/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html +++ b/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html @@ -680,10 +680,6 @@

Find Your New NYC Home

position: place.geometry.location, id: place.id }); - // If a marker is clicked, do a place details search on it in the next function. - marker.addListener('click', function() { - getPlacesDetails(this, place); - }); placeMarkers.push(marker); if (place.geometry.viewport) { // Only geocodes have viewport. @@ -694,28 +690,6 @@

Find Your New NYC Home

} map.fitBounds(bounds); } - - // This function creates a marker for each place found in either places search. - function createMarkersForPlaces(place) { - var icon = { - url: place.icon, - size: new google.maps.Size(35, 35), - origin: new google.maps.Point(0, 0), - anchor: new google.maps.Point(15, 34), - scaledSize: new google.maps.Size(25, 25) - }; - - // Create a marker for each place. - var marker = new google.maps.Marker({ - map: map, - icon: icon, - title: place.name, - position: place.geometry.location, - id: place.place_id - }); - placeMarkers.push(marker); - } -