VEMapOptions Class

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.

Contains the options to set when loading the map.

Constructor

Name Description

VEMapOptions Constructor

Initializes a new instance of a VEMapOptions object.

Public Properties

Name Description

VEMapOptions.BirdseyeOrientation Property

A VEOrientation Enumeration value indicating the orientation of the bird's eye map. The default value is VEOrientation.North.

VEMapOptions.DashboardColor Property

A String that specifies whether the map dashboard, or navigation control, is colored blue or black. Valid values are “blue” or “black”. The default value is “blue”.

VEMapOptions.EnableBirdseye Property

A Boolean value specifying whether or not to enable the Birdseye map style in the map control. The default value is true.

VEMapOptions.EnableClickableLogo Property

A Boolean value indicating whether the BingTM logo on the map is clickable. The default value is false.

VEMapOptions.EnableDashboardLabels Property

A Boolean value that specifies whether or not labels appear on the map when a user clicks the Aerial or Birdseye map style buttons on the map control dashboard. The default value is true.

VEMapOptions.EnableSearchLogo Property

A Boolean value indicating whether to enable the BingTM hovering search logo on the map. The default value is false.

VEMapOptions.LoadBaseTiles Property

A Boolean value indicating whether or not to load the base map tiles. The default value is true.

VEMapOptions.UseEnhancedRoadStyle Property

> [!IMPORTANT] > On July 6, 2011, the new enhanced road map style in use on https://www.bing.com/maps became the default and only road style available for all Bing Maps APIs. The UseEnhancedRoadStyle property is deprecated.

A Boolean value indicating whether to use the enhanced road map style.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
   <head>
      <title></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;


         function GetMap()
         {  
            map = new VEMap('myMap');
            
            mapOptions = new VEMapOptions();
            mapOptions.DashboardColor = "black";
            mapOptions.EnableSearchLogo = true;

            map.LoadMap(
               new VELatLong(47.6, -122.3),  // center
               10, // zoom level
               VEMapStyle.Road, // map style
               false, // fixed map
               VEMapMode.Mode2D, // map mode
               true,  // show map mode switch
               0, // tile buffer
               mapOptions// options
            );

         }

      </script>
   </head>
   <body onload="GetMap();" style="font-family: Arial">
      <div id='myMap' style="position: relative; width: 800px; height: 400px;">
      </div>
   </body>
</html>

See Also

Reference

VEMap.LoadMap Method