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

Get Learning Android Google Maps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.