VEMap.Show3DBirdseye Method

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Controls whether or not to show the Birdseye and BirdseyeHybrid map styles when the map mode is set to VEMapMode.Mode3D.

VEMap.Show3DBirdseye(showBirdseye);

Parameters

Parameter Description

showBirdseye

A Boolean value that specifies whether or not to show the Birdseye or BirdseyeHybrid map styles when the map mode is set to VEMapMode.Mode3D. The default is false.

Remarks

This method does not do anything when the map mode is set to VEMapMode.Mode2D.

This method does not do anything when the VEMapOptions.EnableBirdseye Property is set to false.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title>VEMap.Show3DBirdseye()</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

      <script type="text/javascript" src="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>

      <script type="text/javascript">
         var map   = null;

         var shape = null;
         
         var pinCenter = null; 
         
         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap();

            // Add a pushpin
        pinCenter = new VELatLong(47.67857,-122.13102);
        shape = new VEShape(VEShapeType.Pushpin, pinCenter);
        map.AddShape(shape);

        //Set the map view to see the pushpin
        map.SetCenterAndZoom(pinCenter, 15);

        //Switch to 3D 
        map.SetMapMode(VEMapMode.Mode3D);

         }

     function ShowBirdseye()
     {
        map.Show3DBirdseye(true);
     }

      </script>
   </head>
   <body onload="GetMap();">
      <div id='myMap' style="position:relative; width:600px; height:400px;"></div>
      <input id="btnBirdseye" type="button" value="Show Birdseye" onclick="ShowBirdseye();"/>
   </body>
</html>

See Also

Reference

VEMapStyle Enumeration
VEMapMode Enumeration