Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 881 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 881 Bytes

es2-service-template

EarthServer 2 service template

Main file is "service.js". This file creates the main UI components of the page (main dock (the left one), info dock, gis toolbar and coordinates overlay).

###General Info ####Widget Initialization A widget can be initialized with the following command:

var widget = $("<div>").widgetName({option: optionValue});

Any widget method can be called like this:

widget.widgetName("methodName", params);

In order to avoid passing the method name as a string argument, one can get the widget instance, Using the

var widgetInstance = widget.widgetName("instance");

and then call any method in the following way:

widgetInstance.methodName(params);

###API ####mainDock Widget #####Methods addProjectionSelectPanel addAvailableCoveragesPanel addQueryTerminalPanel