-
Notifications
You must be signed in to change notification settings - Fork 1
/
service.js
34 lines (30 loc) · 1.45 KB
/
service.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$(function () {
$.widget("earthserver.service", {
options: {},
_create: function () {
var self = this;
/* Build navbar */
$("#service-navbar").navbar({
serviceLogo: "images/logos/service_logo_dummy.jpg",
serviceLogoUrl: "http://www.serviceUrl.com",
homeUrl: "http://www.homeUrl.com"
});
/* main dock (required) */
var leftDock = $("<div>").mainDock().mainDock("instance");
$("<div>").plotDock().plotDock("instance");
/* info dock (required) */
var infoDock = $("<div>").infoDock().infoDock("instance");
var infoPanel = infoDock.getInfoPanel()
.addTab("about", "about", "Title1", "SubTitle1", "jndfabv adfndfvbs dfasvikjadsfv")
.addTab("contact", "contact", "Title2", "SubTitle2", "afhofbon fbojirwegi0 fbh0bfeno")
.addTab("tour", "tour", "Title3", "SubTitle3", "dfabhijdfb fbohidfb dfboihbfd hoibdf ");
/* gis toolbar (required) */
var gisToolbar = $("<div>").gisToolbar().gisToolbar("instance");
gisToolbar.addClickHandler("#zoom-in-tool", function() {
console.log("Zoom in.")
});
/* coordinates overlay (required) */
var coordinates = $("<div>").coordinateOverlay().coordinateOverlay("instance");
}
})
});