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.7 to 1.1.8

2

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

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