Chapter 6. Working with Custom Views

In the previous chapter, we learned how to interact with maps with events, gestures, controls, and toolbars. In this chapter, we are moving a bit further. We will learn about implementing different camera views. Let's start!

In this chapter, we will cover the following topics:

  • The need for different camera views
  • Working with camera positions
  • Moving the camera
  • Animating the camera
  • Map padding

The need for different camera views

The normal map displayed in Google Maps is flat and from the top view. Let's consider some real scenarios. If you need to display a 3D building, you will need to adjust the tilt to display its 3D projection. We have already used tilt and bearing in the previous chapter. Another scenario would ...

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.