src/layer/BMNGRestLayer.js
function (serverAddress, pathToData, displayName, initialTime) {
            Layer.call(this, displayName || "Blue Marble time series");

            /**
             * A value indicating the month to display. The nearest month to the specified time is displayed.
             * @type {Date}
             * @default January 2004 (new Date("2004-01"));
             */
            this.time = initialTime || new Date("2004-01");

            // Intentionally not documented.
            this.timeSequence = new PeriodicTimeSequence("2004-01-01/2004-12-01/P1M");

            // Intentionally not documented.
            this.serverAddress = serverAddress;

            // Intentionally not documented.
            this.pathToData = pathToData;

            // Intentionally not documented.
            this.layers = {}; // holds the layers as they're created.

            // Intentionally not documented.
            this.layerNames = [
                {month: "BlueMarble-200401", time: BMNGRestLayer.availableTimes[0]},
                {month: "BlueMarble-200402", time: BMNGRestLayer.availableTimes[1]},
                {month: "BlueMarble-200403", time: BMNGRestLayer.availableTimes[2]},
                {month: "BlueMarble-200404", time: BMNGRestLayer.availableTimes[3]},
                {month: "BlueMarble-200405", time: BMNGRestLayer.availableTimes[4]},
                {month: "BlueMarble-200406", time: BMNGRestLayer.availableTimes[5]},
                {month: "BlueMarble-200407", time: BMNGRestLayer.availableTimes[6]},
                {month: "BlueMarble-200408", time: BMNGRestLayer.availableTimes[7]},
                {month: "BlueMarble-200409", time: BMNGRestLayer.availableTimes[8]},
                {month: "BlueMarble-200410", time: BMNGRestLayer.availableTimes[9]},
                {month: "BlueMarble-200411", time: BMNGRestLayer.availableTimes[10]},
                {month: "BlueMarble-200412", time: BMNGRestLayer.availableTimes[11]}
            ];

            this.pickEnabled = false;
        }
function (serverAddress, pathToData, displayName, initialTime) {
            Layer.call(this, displayName || "Blue Marble time series");

            /**
             * A value indicating the month to display. The nearest month to the specified time is displayed.
             * @type {Date}
             * @default January 2004 (new Date("2004-01"));
             */
            this.time = initialTime || new Date("2004-01");

            // Intentionally not documented.
            this.timeSequence = new PeriodicTimeSequence("2004-01-01/2004-12-01/P1M");

            // Intentionally not documented.
            this.serverAddress = serverAddress;

            // Intentionally not documented.
            this.pathToData = pathToData;

            // Intentionally not documented.
            this.layers = {}; // holds the layers as they're created.

            // Intentionally not documented.
            this.layerNames = [
                {month: "BlueMarble-200401", time: BMNGRestLayer.availableTimes[0]},
                {month: "BlueMarble-200402", time: BMNGRestLayer.availableTimes[1]},
                {month: "BlueMarble-200403", time: BMNGRestLayer.availableTimes[2]},
                {month: "BlueMarble-200404", time: BMNGRestLayer.availableTimes[3]},
                {month: "BlueMarble-200405", time: BMNGRestLayer.availableTimes[4]},
                {month: "BlueMarble-200406", time: BMNGRestLayer.availableTimes[5]},
                {month: "BlueMarble-200407", time: BMNGRestLayer.availableTimes[6]},
                {month: "BlueMarble-200408", time: BMNGRestLayer.availableTimes[7]},
                {month: "BlueMarble-200409", time: BMNGRestLayer.availableTimes[8]},
                {month: "BlueMarble-200410", time: BMNGRestLayer.availableTimes[9]},
                {month: "BlueMarble-200411", time: BMNGRestLayer.availableTimes[10]},
                {month: "BlueMarble-200412", time: BMNGRestLayer.availableTimes[11]}
            ];

            this.pickEnabled = false;
        }
function ( serverAddress , pathToData , displayName , initialTime ) { Layer . call ( this , displayName || "Blue Marble time series" ) ; /**
             * A value indicating the month to display. The nearest month to the specified time is displayed.
             * @type {Date}
             * @default January 2004 (new Date("2004-01"));
             */ this . time = initialTime || new Date ( "2004-01" ) ; // Intentionally not documented. this . timeSequence = new PeriodicTimeSequence ( "2004-01-01/2004-12-01/P1M" ) ; // Intentionally not documented. this . serverAddress = serverAddress ; // Intentionally not documented. this . pathToData = pathToData ; // Intentionally not documented. this . layers = { } ; // holds the layers as they're created. // Intentionally not documented. this . layerNames = [ { month : "BlueMarble-200401" , time : BMNGRestLayer . availableTimes [ 0 ] } , { month : "BlueMarble-200402" , time : BMNGRestLayer . availableTimes [ 1 ] } , { month : "BlueMarble-200403" , time : BMNGRestLayer . availableTimes [ 2 ] } , { month : "BlueMarble-200404" , time : BMNGRestLayer . availableTimes [ 3 ] } , { month : "BlueMarble-200405" , time : BMNGRestLayer . availableTimes [ 4 ] } , { month : "BlueMarble-200406" , time : BMNGRestLayer . availableTimes [ 5 ] } , { month : "BlueMarble-200407" , time : BMNGRestLayer . availableTimes [ 6 ] } , { month : "BlueMarble-200408" , time : BMNGRestLayer . availableTimes [ 7 ] } , { month : "BlueMarble-200409" , time : BMNGRestLayer . availableTimes [ 8 ] } , { month : "BlueMarble-200410" , time : BMNGRestLayer . availableTimes [ 9 ] } , { month : "BlueMarble-200411" , time : BMNGRestLayer . availableTimes [ 10 ] } , { month : "BlueMarble-200412" , time : BMNGRestLayer . availableTimes [ 11 ] } ] ; this . pickEnabled = false ; }
Constructs a Blue Marble layer.
@alias BMNGRestLayer
@constructor
@augments Layer
@classdesc Represents the 12 month collection of Blue Marble Next Generation imagery for the year 2004.
By default the month of January is displayed, but this can be changed by setting this class' time
property to indicate the month to display.
@param {String} serverAddress The server address of the tile service. May be null, in which case the
current origin is used (see window.location).
@param {String} pathToData The path to the data directory relative to the specified server address.
May be null, in which case the server address is assumed to be the full path to the data directory.
@param {String} displayName The display name to assign this layer. Defaults to "Blue Marble" if null or
undefined.
@param {Date} initialTime A date value indicating the month to display. The nearest month to the specified
time is displayed. January is displayed if this argument is null or undefined, i.e., new Date("2004-01");
See {@link RestTiledImageLayer} for a description of its contents. May be null, in which case default
values are used.
Constructs a Blue Marble layer .