ang-google-maps
Advanced tools
Comparing version 1.3.9 to 1.4.0
{ | ||
"name": "ang-google-maps", | ||
"version": "1.3.9", | ||
"version": "1.4.0", | ||
"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.", |
@@ -169,2 +169,6 @@ (function(ang) { | ||
avoidTolls: true | ||
}).then(function(res) { | ||
console.log(res); | ||
}, function(error) { | ||
console.log(error); | ||
}); | ||
@@ -171,0 +175,0 @@ } |
{ | ||
"name": "ang-google-maps", | ||
"version": "1.3.9", | ||
"version": "1.4.0", | ||
"description": "Module to initialize Google Maps API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,3 +38,3 @@ (function(ang, g) { | ||
$DirectionDisplay: $DirectionDisplay | ||
}); | ||
},$q); | ||
}]) | ||
@@ -761,3 +761,3 @@ .directive('mapTemp', ['$window', '$document', '$http', mapTempFactory]) | ||
function Direction(configs) { | ||
function Direction(configs, $q) { | ||
@@ -775,2 +775,4 @@ var $DirectionService = configs['$DirectionService'], | ||
var $Defered = $q.defer(); | ||
if (!g) return; | ||
@@ -801,2 +803,8 @@ | ||
$DirectionDisplay.setDirections(response); | ||
$Defered.resolve(response); | ||
} else { | ||
$Defered.reject({ | ||
message: "There something wrong @ setRoute, please check if you pass appropriate parameters into this function", | ||
code: 0 | ||
}); | ||
} | ||
@@ -807,2 +815,4 @@ | ||
} | ||
return $Defered.promise; | ||
@@ -809,0 +819,0 @@ }, |
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
582467
1250