allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 516 forks source link

gestureHandling not work #830

Open OsirisFrik opened 7 years ago

OsirisFrik commented 7 years ago

Hi, te option of Google Maps 'gestureHandling' not work, i tried on different methods, but, i can dont make work. Only can inserting the option in the line ng-map.js#2998

var add = function(el) {
    var mapDiv = $document.createElement("div");
    mapDiv.style.width = "100%";
    mapDiv.style.height = "100%";
    el.appendChild(mapDiv);
    var map = new $window.google.maps.Map(mapDiv, {gestureHandling: 'greedy'});
    mapInstances.push(map);
    return map;
  };
allenhwkim commented 7 years ago

https://plnkr.co/edit/oWjOZCpXLahvr1IVQKNV?p=preview

<body>
  <ng-map center="[40.74, -74.18]" gesture-handling="cooperative"></ng-map>
</body>

It seems working for me.