ang-google-maps
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -20,4 +20,11 @@ (function(ang) { | ||
$scope.setLocation = function($Position, $Model) { | ||
$scope.handleMarkerDrag = function($Event, $Model, $Scope) { | ||
console.log("Marker Drag Event"); | ||
console.log(arguments); | ||
}; | ||
$scope.setLocation = function($Position, $Model, $CoreModel) { | ||
console.log("SetLocation"); | ||
@@ -24,0 +31,0 @@ console.log(arguments); |
{ | ||
"name": "ang-google-maps", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Module to initialize Google Maps API", | ||
@@ -26,5 +26,6 @@ "main": "index.js", | ||
"bugs": { | ||
"url": "https://github.com/khalednobani/angular-google-maps/issues" | ||
"url": "https://github.com/khalednobani/ang-google-maps/issues" | ||
}, | ||
"homepage": "https://github.com/khalednobani/angular-google-maps#readme" | ||
"homepage": "https://github.com/khalednobani/ang-google-maps#readme", | ||
"dependencies": {} | ||
} |
@@ -114,3 +114,4 @@ (function(ang, g) { | ||
model: '=model', | ||
onfill: '=onfill' | ||
onfill: '=onfill', | ||
ondrag: '=ondrag' | ||
} | ||
@@ -314,8 +315,2 @@ | ||
} | ||
function updatMarker(List, model) { | ||
} | ||
@@ -333,2 +328,4 @@ function fillInAdress() { | ||
console.log(place); | ||
$Self.map.setCenter($Position); | ||
@@ -352,3 +349,2 @@ | ||
$Self.model.marker.addListener('dragend', function($Event) { | ||
// Update current input | ||
@@ -359,3 +355,5 @@ $Self.element.value = $Event.latLng.toString(); | ||
console.log($Event); | ||
if(typeof $Self.ondrag == 'function') $Self.ondrag($Event, $Self.model, $Self); | ||
}); | ||
@@ -374,3 +372,4 @@ | ||
if(typeof $Self.onfill == 'function') $Self.onfill($Position, $Self.model); | ||
if(typeof $Self.onfill == 'function') $Self.onfill($Position, $Self.model, place); | ||
@@ -385,3 +384,2 @@ } | ||
for (var index = 0, length = $Markers.length; index < length; index++) { | ||
if('marker' in $Markers[index]) $Markers[index]['marker'].setMap(null); | ||
@@ -388,0 +386,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
542910
14
451