-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcoordinate-overlay.js
26 lines (26 loc) · 1.25 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
$(function () {
$.widget("earthserver.coordinateOverlay", {
options: {
container: $("#service-container")
},
_create: function () {
$("<div>", {id: "coordinate-overlay"})
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/latitude(h100).png"}))
.append($("<span>", {id: "terrainLatitude"}))
)
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/longitude(h100).png"}))
.append($("<span>", {id: "terrainLongitude"}))
)
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: ""}))
.append($("<span>", {id: "terrainElevation"}))
)
.append($("<span>", {class: "coordinate-container"})
.append($("<img>", {class: "coordinate-icon", src: "images/icons/eye(h100).png"}))
.append($("<span>", {id: "eyeAltitude"}))
).appendTo(this.options.container);
}
})
});