Skip to content

Commit

Permalink
Removes repeated function in Project_Code_12
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Wales committed Aug 15, 2016
1 parent e9b2596 commit 66cf204
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Project_Code_12_FasterIsBetterPlacesAutocompletePart2.html
Original file line number Diff line number Diff line change
Expand Up @@ -694,28 +694,6 @@ <h1>Find Your New NYC Home</h1>
}
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);
}

</script>

<script async defer
Expand Down

0 comments on commit 66cf204

Please sign in to comment.