Skip to content

Commit

Permalink
animate stop markers
Browse files Browse the repository at this point in the history
  • Loading branch information
andavies committed May 12, 2016
1 parent fface35 commit 26f50d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ function addMarker(location, icon) {
position : location,
icon: icon
};

// animate marker if blue (therefore a stop)
if (icon === blueIcon) {
markerOptions.animation = google.maps.Animation.DROP;
}

return new google.maps.Marker(markerOptions);
}

Expand Down

0 comments on commit 26f50d9

Please sign in to comment.