angularjs-google-maps icon indicating copy to clipboard operation
angularjs-google-maps copied to clipboard

After called the change function, item of direction.route[0].legs, are not updating

Open duggu037 opened this issue 8 years ago • 1 comments

calling a function by ng-change in a waypoint input field :

<input type="text" " ng-change="select_waypoints($index);"

controller :

$scope.select_waypoints = function(input_indext) {
console.log($scope.map) console.log($scope.map.directionsRenderers[0]) console.log($scope.map.directionsRenderers[0].directions) }

console of $scope.map is :

mapconsol

console of $scope.map.directionsRenderers[0] is :

directionrenders

and console of $scope.map.directionsRenderers[0].directions :

directions

Not able to get new item of legs object or the value of the input field in $scope.map.directionsRenderers[0].directions object. while the $scope.map and $scope.map.directionsRenderers[0] showing new item as well

duggu037 avatar May 25 '16 15:05 duggu037

Is there any other way to find the distance between 2 points and if way-points are there, then individual distances between multiple way-points?

shubhambhartiya avatar May 26 '16 06:05 shubhambhartiya