ang-google-maps
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "ang-google-maps", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"homepage": "https://github.com/khalednobani/ang-google-maps", | ||
@@ -5,0 +5,0 @@ "description": "Initialise Google Maps, Set Location, Drop Pins, Get Connected Routes between the current location and the destination.", |
@@ -188,3 +188,5 @@ (function(ang) { | ||
destination: destination, | ||
dropOffs: $scope['waypoints'] | ||
dropOffs: $scope['waypoints'], | ||
avoidHighways: true, | ||
avoidTolls: true | ||
}); | ||
@@ -208,3 +210,6 @@ } | ||
$scope.handleDirectionChange = function($Leg, $parentScope, $Directions) { | ||
$scope.orderedWaypoints = $Directions.routes[0].waypoint_order; | ||
console.log("$scope.orderedWaypoints"); | ||
console.log($scope.orderedWaypoints); | ||
return; | ||
@@ -215,4 +220,4 @@ | ||
console.log(arguments); | ||
$scope.orderedWaypoints = $Directions.routes[0].waypoint_order; | ||
$parentScope['pickUp'] = $scope['pickUp'] = $Leg.current.name; | ||
@@ -258,5 +263,8 @@ $parentScope[$scope.currentDestination] = $scope[$scope.currentDestination] = $Leg.destination.name; | ||
}); | ||
$scope['waypoints'] = $OrderWaypoints; | ||
setTimeout(function() { $scope.setLocation(); }, 100); | ||
setTimeout(function() { $scope.setLocation({ | ||
avoidHighways: true, | ||
avoidTolls: true | ||
}); }, 100); | ||
@@ -263,0 +271,0 @@ } |
{ | ||
"name": "ang-google-maps", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Module to initialize Google Maps API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
(function(ang, g) { | ||
var Characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", | ||
var indexOfPacContainer = 0, | ||
Characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", | ||
labelIndex = 0; | ||
@@ -219,3 +220,5 @@ | ||
}, | ||
zoom: $scope.configs.zoom || 18 | ||
zoom: $scope.configs.zoom || 18, | ||
scrollwheel: $scope.configs.scrollwheel || false, | ||
}; | ||
@@ -400,3 +403,4 @@ | ||
$scope.element = element[0]; | ||
$scope.element = element[0]; | ||
if($scope.element) $scope.element.setAttribute('pac-element-index', indexOfPacContainer); | ||
$rootScope[$scope['nameofinput']] = ''; | ||
@@ -418,3 +422,5 @@ $rootScope.$watch($scope['nameofinput'], function(newValue, oldValue) { | ||
}); | ||
indexOfPacContainer += 1; | ||
} | ||
@@ -578,4 +584,4 @@ | ||
waypoints: options['dropOffs'] || [], | ||
avoidHighways: true, | ||
avoidTolls: true, | ||
avoidHighways: options['avoidHighways'] || false, | ||
avoidTolls: options['avoidTolls'] || false, | ||
travelMode: g.maps.TravelMode.DRIVING, | ||
@@ -582,0 +588,0 @@ unitSystem: g.maps.UnitSystem.IMPERIAL |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
573467
1080