google-map icon indicating copy to clipboard operation
google-map copied to clipboard

expose gestureHandling so the user can change the map behavior.

Open Thkasis opened this issue 8 years ago • 0 comments

I needed to change gestureHandling to greedy and noticed it's missing from the list of options in the element. Not a big deal but would be nice to include it.

/*FIXME : ADDED gestureHandling ; wasn't part of the original */
_getMapOptions: function() {
  var mapOptions = {
    zoom: this.zoom,
    tilt: this.noAutoTilt ? 0 : 45,
    mapTypeId: this.mapType,
    disableDefaultUI: this.disableDefaultUi,
    mapTypeControl: !this.disableDefaultUi && !this.disableMapTypeControl,
    streetViewControl: !this.disableDefaultUi && !this.disableStreetViewControl,
    disableDoubleClickZoom: this.disableZoom,
    scrollwheel: !this.disableZoom,
    styles: this.styles,
    maxZoom: Number(this.maxZoom),
    minZoom: Number(this.minZoom),

    gestureHandling: this.gestureHandling
  };

Thanks

Thkasis avatar Aug 04 '17 20:08 Thkasis