src/util/BingImageryUrlBuilder.js
function (imagerySet, bingMapsKey) {
            var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH";

            // Use key specified for this layer
            this.bingMapsKey = bingMapsKey;

            // If none, fallback to key specified globally
            if (!this.bingMapsKey) {
                this.bingMapsKey = WorldWind.BingMapsKey;
            }

            // If none, fallback to default demo key
            if (!this.bingMapsKey) {
                this.bingMapsKey = wwBingMapsKey;
            }
            
            // If using WorldWind Bing Maps demo key, show warning
            if (this.bingMapsKey === wwBingMapsKey) {
                BingImageryUrlBuilder.showBingMapsKeyWarning();
            }

            this.imagerySet = imagerySet;
        }
function (imagerySet, bingMapsKey) {
            var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH";

            // Use key specified for this layer
            this.bingMapsKey = bingMapsKey;

            // If none, fallback to key specified globally
            if (!this.bingMapsKey) {
                this.bingMapsKey = WorldWind.BingMapsKey;
            }

            // If none, fallback to default demo key
            if (!this.bingMapsKey) {
                this.bingMapsKey = wwBingMapsKey;
            }
            
            // If using WorldWind Bing Maps demo key, show warning
            if (this.bingMapsKey === wwBingMapsKey) {
                BingImageryUrlBuilder.showBingMapsKeyWarning();
            }

            this.imagerySet = imagerySet;
        }
function ( imagerySet , bingMapsKey ) { var wwBingMapsKey = "AkttWCS8p6qzxvx5RH3qUcCPgwG9nRJ7IwlpFGb14B0rBorB5DvmXr2Y_eCUNIxH" ; // Use key specified for this layer this . bingMapsKey = bingMapsKey ; // If none, fallback to key specified globally if ( ! this . bingMapsKey ) { this . bingMapsKey = WorldWind . BingMapsKey ; } // If none, fallback to default demo key if ( ! this . bingMapsKey ) { this . bingMapsKey = wwBingMapsKey ; } // If using WorldWind Bing Maps demo key, show warning if ( this . bingMapsKey === wwBingMapsKey ) { BingImageryUrlBuilder . showBingMapsKeyWarning ( ) ; } this . imagerySet = imagerySet ; }
Constructs a URL builder for Bing imagery.
@alias BingImageryUrlBuilder
@constructor
@classdesc Provides a factory to create URLs for Bing image requests.
@param {String} imagerySet The name of the imagery set to display.
@param {String} bingMapsKey The Bing Maps key to use for the image requests. If null or undefined, the key at
[WorldWind.BingMapsKey]{@link WorldWind#BingMapsKey} is used. If that is null or undefined, the default
WorldWind Bing Maps key is used,
but this fallback is provided only for non-production use. If you are using Web WorldWind in an app or a
web page, you must obtain your own key from the
[Bing Maps Portal]{@link https://www.microsoft.com/maps/choose-your-bing-maps-API.aspx}
and either pass it as a parameter to this constructor or specify it as the property
[WorldWind.BingMapsKey]{@link WorldWind#BingMapsKey}.
Constructs a URL builder for Bing imagery .