forked from cite-sa/es2-service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoordinate-overlay.js
29 lines (29 loc) · 1.37 KB
/
coordinate-overlay.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
$(function () {
$.widget("earthserver.coordinateOverlay", {
options: {
container: undefined
},
_create: function () {
$("<div>", {id: "coordinate-overlay"})
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/latitude(h100)w.png"}))
.append($("<span>", {id: "terrain-latitude"})
.text("39.17°S"))
)
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/longitude(h100)w.png"}))
.append($("<span>", {id: "terrain-longitude"})
.text("0.63°E"))
)
/*.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: ""}))
.append($("<span>", {id: "terrain-elevation"}))
)*/
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/eye_no_lashes(h100)w.png"}))
.append($("<span>", {id: "eye-altitude"})
.text("1,870 km"))
).appendTo(this.options.container);
}
})
});