ang-google-maps
Advanced tools
Comparing version 1.1.7 to 1.1.8
{ | ||
"name": "ang-google-maps", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"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.", |
@@ -207,3 +207,5 @@ (function(ang) { | ||
$scope.handleDirectionChange = function($Leg, $parentScope, $Directions) { | ||
return; | ||
console.log('Handle on change'); | ||
@@ -210,0 +212,0 @@ |
{ | ||
"name": "ang-google-maps", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Module to initialize Google Maps API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,4 +11,5 @@ # ang-google-maps | ||
6. Attaching the callback for marker's `click` event while dropping the marker into the map / textfield input filled (AutoComplete). | ||
7. Deleting the marker from the map with deletingMarker. | ||
### Screenshots | ||
![alt tag](https://raw.githubusercontent.com/khalednobani/ang-google-maps/master/assets/img/1.%20Demo.png) |
@@ -270,2 +270,15 @@ (function(ang, g) { | ||
function deletingMarker(name) { | ||
var markerName = name || '', | ||
indexOfMarker = (markerName) ? findByName(this.markers, markerName) : -1; | ||
if (indexOfMarker == -1) return; | ||
// Set marker into map null | ||
this.markers[indexOfMarker]['marker'].setMap(null); | ||
console.log(this); | ||
} | ||
function initMapModel() { | ||
@@ -283,2 +296,4 @@ | ||
//this.map.location = | ||
// Attach deleting marker method into the map's object. | ||
this.map.deletingMarker = deletingMarker; | ||
@@ -476,2 +491,3 @@ this.initMarkers = function() { | ||
} else { | ||
$Self.map.markers[indexOfMarker]['marker'].setMap($Self.map); | ||
$Self.map.markers[indexOfMarker]['marker'].setPosition({ | ||
@@ -478,0 +494,0 @@ lat: lat, |
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
572190
1056
15