0 out of 2 rated this helpful - Rate this topic

MapTypeId Enumeration

Bing Services

Contains identifiers for the imagery displayed on the map.

Constants

Name Description

aerial

The aerial map type is being used.

auto

The map is set to choose the best imagery for the current view.

birdseye

The bird’s eye map type is being used.

collinsBart

Collin’s Bart (mkt=en-gb) map type is being used.

mercator

The Mercator map type is being used. This setting removes the base map tiles.

ordnanceSurvey

Ordnance Survey (mkt=en-gb) map type is being used.

road

The road map type is being used.

Example

This code sample sets the map imagery to Collin’s Bart (collinsBart). Since this imagery is only supported for the en-gb culture, the mkt parameter of the control is set to this culture.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=en-gb"></script>

      <script type="text/javascript">
      function GetMap()
      {   

         var map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {credentials:"Bing Maps Key", center: new Microsoft.Maps.Location(51.5, -.1), zoom: 10, mapTypeId:Microsoft.Maps.MapTypeId.collinsBart});
      }
      </script>
   </head>
   <body onload="GetMap();">
      <div id='mapDiv' style="position:relative; width:600px; height:600px;"></div>       
   </body>
</html>

See Also

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.