Maps API getHeading() Method

## Google Maps API

Maps API Home Maps API Key Maps Basic Maps Overlays Maps Events Maps Controls Maps Types

## Google Maps Ref

Maps API Reference Map()

# Maps API getHeading() Method

Map() Constructor

## Example

Return the compass heading of aerial imagery:

map.getHeading();
Try it yourself »

## Definition and Usage

The getHeading() method returns the compass heading of aerial imagery.

The getHeading() method can only be used with map type: SATELLITE or HYBRID (which support a 45° perspective imagery view for certain locations, at high zoom levels).

## Syntax

mapvariable.getHeading();

## Return Values

Value | Description
--- | ---
number | The compass heading in degrees

Map() Constructor

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE