Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
google-map-directions: remove unneeded markers
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Oct 24, 2013
1 parent a5ea78d commit bd5779f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions google-map/google-map-directions.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
mapReady: function() {
this.directionsService = new google.maps.DirectionsService();
this.directionsRenderer = new google.maps.DirectionsRenderer();
this.startMarker = new google.maps.Marker({
map: this.map
});
this.endMarker = new google.maps.Marker({
map: this.map
});
this.directionsRenderer.setMap(this.map);
this.startAddressChanged();
this.endAddressChanged();
Expand Down Expand Up @@ -86,9 +80,6 @@
if (status == google.maps.DirectionsStatus.OK) {
this.directionsRenderer.setDirections(response);
this.response = response;
var leg = response.routes[0].legs[0];
this.startMarker.setPosition(leg.start_location);
this.endMarker.setPosition(leg.end_location);
}
}.bind(this));
}
Expand Down

0 comments on commit bd5779f

Please sign in to comment.