ang-google-maps
Advanced tools
Comparing version 1.1.9 to 1.2.0
{ | ||
"name": "ang-google-maps", | ||
"version": "1.1.9", | ||
"version": "1.2.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.", |
{ | ||
"name": "ang-google-maps", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"description": "Module to initialize Google Maps API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -432,3 +432,3 @@ (function(ang, g) { | ||
return undefined; | ||
return -1; | ||
@@ -460,3 +460,3 @@ } | ||
if (position != undefined) { | ||
if (position >= 0) { | ||
List[position] = extendObj(List[position], model); | ||
@@ -613,3 +613,12 @@ } else { List.push(model); index = List.length - 1;} | ||
console.log(options); | ||
var indexOfCurrentMarker = findInList(this.markers || [], {key: 'name', value: options['name'] || ''}) | ||
if (indexOfCurrentMarker >= 0 && this.markers[indexOfCurrentMarker]['marker']) { | ||
var $Marker = this.markers[indexOfCurrentMarker]['marker']; | ||
$Marker.setPosition(options['position'] || {lat: 0, lng: 0}); | ||
$Marker.setMap(this); | ||
return; | ||
} | ||
var options = options || {}, | ||
@@ -616,0 +625,0 @@ isOnDragEndFunc = (typeof options['ondragend'] == 'function'), |
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
572868
1069