Multimap logo Multimap Open API V1.2 JavaScript Example

Bird's Eye Imagery Example *new*

The Bird's Eye map type provides 45-degree high-resolution detailed imagery which allows users to see close-up aerial shots of locations around the world. A Bird's Eye map consists of several Bird's Eye scenes, each of which is a large aerial photograph. Each scene is generally larger than the area covered by the map viewer. When you pan to the edge of a scene, the map viewer refreshes and shows a new scene. When you switch between orientations, each view that you see is a new scene. Every Bird's Eye scene provided by Microsoft Virtual Earth is given a unique scene identifier, which can be stored and used later to show that specific scene again.

The Bird's Eye map has two controls for rotating the map in clockwise and counter-clockwise directions. For example, by default, the map is displayed as if facing north. If you click on the "rotate clockwise" control, the map displayed shows a view to the east.

There are several general methods that you can use to control the properties of the map viewer:

MethodDescription
getBirdsEyeOrientation() This method returns the current Bird's Eye orientation, which can be to the north, south, east or west.
rotateBirdsEyeOrientation() This method rotates the Bird's Eye orientation in the direction specified. You can rotate the map either clockwise or counter-clockwise.
setBirdsEyeOrientation() This method enables you to set or change the Bird's Eye orientation to point north, south, east or west.
setBirdsEyeScene() This method sets the map's location.
getBirdsEyeScene() This method returns the Bird's Eye scene that is currently at the center of the map viewer.
findBirdsEyeCoverage() This method returns the Bird's Eye coverage for a particular location. The findBirdsEyeCoverage method accepts three arguments: the first is an instance of the MMLatLon object; the second is an orientation string ("north", "south", "east" or "west"); and the third is a 'callback function' which is called when coverage information has been returned by Virtual Earth.
setBirdsEyeSceneById() This method sets the map viewer to display a specific Bird's Eye scene based on an identifier that is unique to each scene, position and orientation.

Function(s) introduced:

MultimapVEViewer: getBirdsEyeOrientation(), rotateBirdsEyeOrientation(), setBirdsEyeOrientation(), setBirdsEyeScene(), getBirdsEyeScene(), findBirdsEyeCoverage(), setBirdsEyeSceneById()

What You Should See

If you view this in your browser you should see a draggable Bird's Eye map centered on Constitution Avenue, Washington, USA, at zoom factor 19.

On the right-hand side of the map is a list of controls which determine the appearance and behavior of Bird's Eye imagery.

The Map

Check coverage

Get Bird's Eye scene:

Get current scene ID:

Go to London

Set Bird's Eye orientation:

North
East
South
West

Rotate Bird's Eye scene:

Clockwise
Counter-clockwise

The Code

There are three parts to the code below. The first is the line that links to the Multimap Open API. The second is an example of the HTML you must have in your page. The third is an example of the JavaScript required to implement the page.

The header code

<script type="text/javascript" src="http://developer.multimap.com/API/maps/1.2/OA08061815803962482"></script>

The body code

Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...

The JavaScript code

Sorry, JavaScript required...

For more information on the subject of Multimap Open API JavaScript code, please read the Multimap Open API documentation at: http://www.multimap.com/share/documentation/openapi/1.2/classes/.

Back to examples.

Further Help

If you require further help with your Multimap Open API implementation, please visit the Multimap Developer Forums.

For Open API news, announcements and other information, please see our blog.

For general account enquiries or further services, please contact the Multimap Sales team:

London, Great Britain +44 (0)20 7632 7800
email: sales@multimap.com