getting Bing aerial imagery date

5071
2
06-18-2010 10:05 AM
DavidRaybuck
Emerging Contributor
Is it possible to programmatically obtain the Bing imagery date or year for VETiledLayers?
Tags (2)
0 Kudos
2 Replies
RichardDaniels
Honored Contributor
Yes there is, you need to use the Bing Maps API to obtain this information using the map class with the VEMap.GetImageryMetadata (see http://msdn.microsoft.com/en-us/library/cc966714.aspx )method. Check out http://msdn.microsoft.com/en-us/library/bb412551(v=MSDN.10).aspx for information about using the Bing API.

Here is the method call, where map was set with map = new VEMap('myMap').

         // Get imagery meta data of the current map
         function GetMetadata()
         {

            map.GetImageryMetadata(MetadataCallback, null);
         }

         function MetadataCallback(metaData)
         {
            alert("Imagery date range: " + metaData.DateRangeStart + " - " + metaData.DateRangeEnd);
         }

Rich
0 Kudos
DavidRaybuck
Emerging Contributor
Thanks danielri.  I know this is possible with Bing's javascript API, but I was wondering if it is possible within the ArcGIS API for Flex.
0 Kudos