Book Image

Learning Android Google Maps

Book Image

Learning Android Google Maps

Overview of this book

This book helps you to overcome the most common problems faced by users and helps you create a successful map application without any hassle. The book starts with a brief description of how to set up an environment and obtain an API key to create your map application. This book will teach you about adding markers, overlays, and information windows to the map in detail. You will then dive deep into customizing various types of maps and working with location data and Google Street view. By the end of this book, you will be able to create succinct map applications in Android using Google maps efficiently.
Table of Contents (18 chapters)
Learning Android Google Maps
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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 level by 1 (that is, zoom out).

Two finger pinch/stretch (pinch to zoom)

This refers to pinching the surface of a map with two fingers which decreases the zoom level (that is, zoom out).

This refers to stretching the surface of the map with two fingers...