Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Android Google Maps

You're reading from   Learning Android Google Maps Integrate Google Maps with your Android application to offer feature-rich and interactive maps

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781849698863
Length 356 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Setting Up the Development Environment 2. Configuring an API Key and Creating Our First Map Application FREE CHAPTER 3. Working with Different Map Types 4. Adding Information to Maps 5. Interacting with a Map 6. Working with Custom Views 7. Working with Location Data 8. Know about the Street View 9. Google Maps Intents 10. Creating a Custom Map Application A. Answers to Self-test Questions Index

Working with camera positions


The position of the camera is based on the following parameters:

  • Target

  • Zoom

  • Bearing

  • Tilt

Let's discuss these parameters in detail.

Target

The target is a visible area on the map, which is specified by the latitude and longitude. Take a look at the following image:

In the image, the target is (40.735188, -74.172414), which are the coordinates for Newark City. The target is centered in the map.

Zoom

As the zoom level increases, the level of detail increases. Zoom can be used to display more accurate information to the user.

The image given in the previous section is a camera view with zoom level 2. However, the level of detail is very less. In order to display more detail, we will increase the zoom level. The following image is an example of this:

The zoom level of the image is 12.

As the zoom level increases by a factor of n, the width increases by a factor of 2 n.

Bearing

The term "bearing" is also called orientation. For a normal map, the bearing is zero degrees. It is the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image