From 868068bedc10ee2510279379db733d2989046c5d Mon Sep 17 00:00:00 2001 From: Katharina Xenia Kufieta Date: Mon, 8 Aug 2016 12:52:44 -0400 Subject: [PATCH 1/3] fix: Syntax for setting infowindow marker to null --- Project_Code_3_WindowShoppingPart1.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project_Code_3_WindowShoppingPart1.html b/Project_Code_3_WindowShoppingPart1.html index 175f517..35ec738 100644 --- a/Project_Code_3_WindowShoppingPart1.html +++ b/Project_Code_3_WindowShoppingPart1.html @@ -80,7 +80,7 @@ infowindow.open(map, marker); // Make sure the marker property is cleared if the infowindow is closed. infowindow.addListener('closeclick',function(){ - infowindow.setMarker(null); + infowindow.marker = null; }); } } From 755b4d74f2ebbc5cc96dfce2efd57b0a6207d91a Mon Sep 17 00:00:00 2001 From: Katharina Xenia Kufieta Date: Thu, 11 Aug 2016 17:12:30 -0400 Subject: [PATCH 2/3] fix: Remove code residue --- ...FasterIsBetterPlacesAutocompletePart2.html | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html b/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html index 91c5e24..63dd2c3 100644 --- a/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html +++ b/Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html @@ -694,28 +694,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); - } -