Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disableTilt, disableScroll and disableZoom methods? #53

Closed
jskidd3 opened this issue May 13, 2014 · 3 comments
Closed

disableTilt, disableScroll and disableZoom methods? #53

jskidd3 opened this issue May 13, 2014 · 3 comments

Comments

@jskidd3
Copy link

jskidd3 commented May 13, 2014

Could these be added?

For example, in my application if a user changes a particular setting then it should disable tilting, scrolling and zooming.

@wf9a5m75
Copy link
Member

The below is the current way

var map = plugin.google.maps.Map.getMap({
  'gestures': {
    'scroll': false,
    'tilt': false,
    'rotate': false
  }
});

@wf9a5m75
Copy link
Member

The map.setOptions() method will be available in v1.0.12

  const GORYOKAKU_JAPAN = new plugin.google.maps.LatLng(41.796875,140.757007);
  map.setOptions({
    'mapType': plugin.google.maps.MapTypeId.HYBRID,
    'controls': {
      'compass': true,
      'myLocationButton': true,
      'indoorPicker': true,
      'zoom': true
    },
    'gestures': {
      'scroll': false,
      'tilt': false,
      'rotate': false
    },
    'camera': {
      'latLng': GORYOKAKU_JAPAN,
      'tilt': 30,
      'zoom': 15,
      'bearing': 50
    }
  });

@wf9a5m75 wf9a5m75 added this to the v1.0.12 milestone May 17, 2014
@wf9a5m75
Copy link
Member

I released the plugin version 1.1.0 (old version name v1.0.12). Please uninstall the plugin, then install it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants