Footprint Class

Bing
 

Represents the footprint of the venue map.

Name

Type

Description

polygons

Polygon[]

The shapes that make up the footprint of this venue.

zoomRange

double[]

An array of doubles indicating the minimum and maximum zoom levels where imagery is available for this venue map.

<!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"></script>

      <script type="text/javascript">

         var map = null;

         function GetMap()
         {
            // Initialize the map
            map = new Microsoft.Maps.Map(document.getElementById("mapDiv"), {credentials:"Bing Maps Key"}); 
            Microsoft.Maps.loadModule('Microsoft.Maps.VenueMaps', { callback: venuemapsModuleLoaded });

         }

         function venuemapsModuleLoaded()
         {
            // Create the venue map
            var vmaps = new Microsoft.Maps.VenueMaps.VenueMapFactory(map); 
            vmaps.create({venueMapId: 'bingmapsteam-bellevuesquare', success:ShowVenue, error:ShowError}); 

         }

         function ShowVenue(venue)
         {
            // Set the map view 
            map.setView(venue.bestMapView);
            venue.show();

            DisplayVenueInfo(venue);

         }

         function ShowError()
         {
            // Show an error
            alert("An error occurred trying to create the venue map.");

         }

         function DisplayVenueInfo(venue)
         {
            var venueinfo = "Venue: " + venue.name +"\n" + "Venue Map ID: " + venue.id + "\n" + "Venue Map Type: " + venue.type + "\n" + "Default Floor: " + venue.defaultFloor + "\n" + "Detail Level Range for Default Floor: " + venue.footprint.zoomRange + "\n";

            // Display the venue info
            alert(venueinfo);

         }

      </script>
   </head>
   <body onload="GetMap();">
      <div id='mapDiv' style="position:relative; width:500px; height:500px;"></div>       
   </body>
</html>
Show: