angularjs-google-maps
angularjs-google-maps copied to clipboard
After called the change function, item of direction.route[0].legs, are not updating
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 :
console of $scope.map.directionsRenderers[0] is :
and console of $scope.map.directionsRenderers[0].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
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?