Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ang-google-maps

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ang-google-maps - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc