Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Check for Bird Eye View Availability In Bing Map version 7

This is a discussion on Check for Bird Eye View Availability In Bing Map version 7 within the Bing Maps and MapPoint Web Service forums, part of the Map Forums category; I am using Bing Map Version 7, but not bale to check if bird eye view is available for the ...

  1. #1
    tarun_chhatwal is offline Junior Member White Belt
    Join Date
    May 2011
    Posts
    1

    Check for Bird Eye View Availability In Bing Map version 7

    I am using Bing Map Version 7, but not bale to check if bird eye view is available for the property or not.

    In Bing Mao ver 6.3, we have method "IsBirdseyeAvailable" to check for bird eye view availability.

    Please let me know how to proceed on this.
    Last edited by Eric Frost; 05-30-2011 at 04:43 PM.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,072
    Blog Entries
    4

    Re: Check for Bird Eye View Availability In Bing Map version 7

    Here's some code from the msdn forums:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title></title>
     <script type="text/javascript" charset="UTF-8" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&onscriptload=getMap">
     </script>
     <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js" type="text/javascript"></script>
     <script type="text/javascript">
     var map = null;
     var key = 'YOURKEY';
     function getMap() {
    
      // Initialize the map
      map = new Microsoft.Maps.Map($('#map').get(0), {
      credentials: key,
      center: new Microsoft.Maps.Location(47.5, 2.75),
      zoom: 4,
      mapTypeId: Microsoft.Maps.MapTypeId.road
      });
    
      // Add a handler for the pushpin click event.
      Microsoft.Maps.Events.addHandler(map, 'viewchangeend', checkBirdEye);
     }
      
     function checkBirdEye() {
      var loc = map.getCenter();
    
      var composedUrl = 'http://dev.virtualearth.net/REST/V1/Imagery/Metadata/Birdseye/';
      composedUrl += loc.latitude.toFixed(6) + ',';
      composedUrl += loc.longitude.toFixed(6);
      composedUrl += '?key=' + key;
      composedUrl += '&zl=20&dir=1&dl=2&jsonp=onSuccess';
    
      $.ajax({
      type: 'GET',
      url: composedUrl,
      dataType: 'jsonp',
      contentType: 'application/json; charset=utf-8'
      });
     }
    
     function onSuccess(data) {
      if (data.resourceSets[0] != null) {
      if (data.resourceSets[0].estimatedTotal != 0) {
       alert('View available');
      }
      }
     }
     
    
     </script>
    </head>
    <body onload="getMap();">
     <div id="map" style="position: relative; width: 800px; height: 600px;">
     </div>
    </body>
    </html>
    Attrib to Nicolas Boonaert

    Check Bird Eye View Availablity In Bing Map Version 7.0
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    PROFIT100 Consulting is offline Member Green Belt
    Join Date
    Sep 2009
    Location
    Darmstadt, Germany
    Posts
    94

    MapPoint-AddIn for Checking Bird Eye View Availability

    If you are using MapPoint you don´t have to program.
    It´s quite easy. There is a powerful tool available:

    Bird´s Eye availibility check

    Kind regards
    Manfred


    PROFIT1oo™ Consulting - Microsoft® MapPoint ISV (Independent Software Vendor)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add the layers in bing map version 7.0 as we add by using the VEShapLayer in version 6.3
    By vipulsinghal2006 in forum Bing Maps and MapPoint Web Service
    Replies: 3
    Last Post: 05-16-2011, 11:05 PM
  2. Replies: 0
    Last Post: 02-08-2011, 11:50 AM
  3. Replies: 0
    Last Post: 08-24-2010, 01:00 PM
  4. Bing Maps Adds Streetside, Enhanced Bird’s Eye, Photosynth and More
    By VirtualEarth MSDN Blog in forum Bing Maps Blogs & Tweets
    Replies: 0
    Last Post: 12-02-2009, 01:30 PM
  5. Network Version Availability?
    By coop3dw in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-01-2002, 10:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24