apps/util/GoToBox.js
function (worldWindow) {
        var thisGoToBox = this;

        this.wwd = worldWindow;
        $("#searchBox").find("button").on("click", function (e) {
            thisGoToBox.onSearchButton(e);
        });

        this.geocoder = new WorldWind.NominatimGeocoder();
        $("#searchText").on("keypress", function (e) {
            thisGoToBox.onSearchTextKeyPress($(this), e);
        });
    }
function (worldWindow) {
        var thisGoToBox = this;

        this.wwd = worldWindow;
        $("#searchBox").find("button").on("click", function (e) {
            thisGoToBox.onSearchButton(e);
        });

        this.geocoder = new WorldWind.NominatimGeocoder();
        $("#searchText").on("keypress", function (e) {
            thisGoToBox.onSearchTextKeyPress($(this), e);
        });
    }
function ( worldWindow ) { var thisGoToBox = this ; this . wwd = worldWindow ; $ ( "#searchBox" ) . find ( "button" ) . on ( "click" , function ( e ) { thisGoToBox . onSearchButton ( e ) ; } ) ; this . geocoder = new WorldWind . NominatimGeocoder ( ) ; $ ( "#searchText" ) . on ( "keypress" , function ( e ) { thisGoToBox . onSearchTextKeyPress ( $ ( this ) , e ) ; } ) ; }
Constructs a GoToBox.
@alias GoToBox
@constructor
@classdesc Provides a search box enabling the user to find and move to specified locations.
@param {WorldWindow} worldWindow The WorldWindow to associate this GoToBox with.
Constructs a GoToBox .