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.1.2 to 1.1.3

2

bower.json
{
"name": "ang-google-maps",
"version": "1.1.2",
"version": "1.1.3",
"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.",

@@ -44,3 +44,3 @@ (function(ang) {

console.log(res);
if ($scope["O" + currentMarkerName]) $scope["O" + currentMarkerName].value = res[0].formatted_address;
if ($scope.map["O" + currentMarkerName]) $scope.map["O" + currentMarkerName].value = res[0].formatted_address;

@@ -56,12 +56,10 @@ }, function(err) {

$scope.handleMapClick = function($Coords, $Pixel, $Za) {
console.log("Handle on map click");
if ($scope.$MarkerList[0] != $scope.currentMarker) return new Error("Can't create a marker.");
console.log("Proceeding");
var currentMarkerName = $scope.currentMarker;
$scope.map.addingMarker({
name: 'pickUp',
name: currentMarkerName || '',
ondragend: function($Event) {

@@ -73,3 +71,3 @@ $scope.setInputFieldForMarker($Event, currentMarkerName);

},
$inputEle: $scope["O" + window.currentMarker],
$inputEle: $scope.map["O" + $scope.currentMarker],
position: $Coords

@@ -79,34 +77,3 @@ });

$scope.$MarkerList.splice(0, 1);
/*
console.log($Coords);
var $Marker = new google.maps.Marker({
position: $Coords,
title: "Test",
draggable: true
});
console.log($scope["O" + window.currentMarker]);
$Marker.addListener('dragend', function($Event) {
console.log($Event);
// Get the name of current location
$Geocode.getNames({coords: $Event.latLng})
.then(function(res) {
console.log(res);
if ($scope["O" + window.currentMarker]) $scope["O" + window.currentMarker].value = res[0].formatted_address;
}, function(err) {
console.error(err);
});
});
$Marker.setMap($scope.map);
*/
};

@@ -113,0 +80,0 @@

{
"name": "ang-google-maps",
"version": "1.1.2",
"version": "1.1.3",
"description": "Module to initialize Google Maps API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -375,3 +375,3 @@ (function(ang, g) {

$scope.element = $scope.$parent["O" + $scope['nameofinput']]= element[0];
$scope.element = element[0];
$rootScope[$scope['nameofinput']] = '';

@@ -384,2 +384,6 @@ $rootScope.$watch($scope['nameofinput'], function(newValue, oldValue) {

});
setTimeout(function() {
$scope.map["O" + $scope['nameofinput']] = $scope.element;
}, 1);

@@ -386,0 +390,0 @@ // Attach an event into autocomplete

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