From bd5779f606a318332e1621230ee383af9a484930 Mon Sep 17 00:00:00 2001 From: frankiefu Date: Thu, 24 Oct 2013 11:06:42 -0700 Subject: [PATCH] google-map-directions: remove unneeded markers --- google-map/google-map-directions.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/google-map/google-map-directions.html b/google-map/google-map-directions.html index 09f9918..6226e84 100644 --- a/google-map/google-map-directions.html +++ b/google-map/google-map-directions.html @@ -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(); @@ -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)); }