apps/util/ServersPanel.js
function (worldWindow, layersPanel, timeSeriesPlayer) {
        var thisServersPanel = this;

        this.wwd = worldWindow;
        this.layersPanel = layersPanel;
        this.timeSeriesPlayer = timeSeriesPlayer;

        this.idCounter = 1;

        this.legends = {};

        $("#addServerBox").find("button").on("click", function (e) {
            thisServersPanel.onAddServerButton(e);
        });

        $("#addServerText").on("keypress", function (e) {
            thisServersPanel.onAddServerTextKeyPress($(this), e);
        });
    }
function (worldWindow, layersPanel, timeSeriesPlayer) {
        var thisServersPanel = this;

        this.wwd = worldWindow;
        this.layersPanel = layersPanel;
        this.timeSeriesPlayer = timeSeriesPlayer;

        this.idCounter = 1;

        this.legends = {};

        $("#addServerBox").find("button").on("click", function (e) {
            thisServersPanel.onAddServerButton(e);
        });

        $("#addServerText").on("keypress", function (e) {
            thisServersPanel.onAddServerTextKeyPress($(this), e);
        });
    }
function ( worldWindow , layersPanel , timeSeriesPlayer ) { var thisServersPanel = this ; this . wwd = worldWindow ; this . layersPanel = layersPanel ; this . timeSeriesPlayer = timeSeriesPlayer ; this . idCounter = 1 ; this . legends = { } ; $ ( "#addServerBox" ) . find ( "button" ) . on ( "click" , function ( e ) { thisServersPanel . onAddServerButton ( e ) ; } ) ; $ ( "#addServerText" ) . on ( "keypress" , function ( e ) { thisServersPanel . onAddServerTextKeyPress ( $ ( this ) , e ) ; } ) ; }
Constructs a servers panel.
@alias ServersPanel
@constructor
@classdesc Provides a list of collapsible panels that indicate the layers associated with a WMS or other
image server. Currently only WMS is supported. The user can select a server's layers and they will be added to
the WorldWindow's layer list.
@param {WorldWindow} worldWindow The WorldWindow to associate this layers panel with.
@param {LayersPanel} layersPanel The layers panel managing the specified WorldWindows layer list.
Constructs a servers panel .