O'Reilly logo

Learning Android Google Maps by Raj Amal W.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with gestures

A map application created with the Google Maps API supports all the gestures supported by the Google Maps app. It is up to you to choose whether you need all the gestures or would like to disable some.

As with UI controls, we can enable/disable gestures from the UiSettings class.

The various gestures that are supported are as follows:

  • Zoom gestures
  • Scroll gestures
  • Tilt gestures
  • Rotate gestures

Let's discuss these gestures in detail.

Zoom gestures

There are four types of zoom gestures available. Let's discuss them in detail.

Double tap

This refers to double tapping on the surface of a map which increases the zoom level by 1 (that is, zoom in).

Two finger tap

This refers to a two finger tap on the surface of a map which decreases the zoom ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required