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.
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 ...
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.
Here's some code from the msdn forums:
Attrib to Nicolas BoonaertHTML 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>
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 ~
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)
There are currently 1 users browsing this thread. (0 members and 1 guests)