-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMetadataDisplay.js
120 lines (94 loc) · 4.12 KB
/
MetadataDisplay.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
* Created by researchcomputer on 8/4/16.
*/
define([''], function(ww) {
"use strict";
// Data Display
var Metadata = function (control) {
this.control = control;
// Individual Earthquakes
this.magnitudePlaceholder = document.getElementById('magnitude');
this.locPlaceholder = document.getElementById('location');
this.eventdatePlaceholder = document.getElementById('time');
this.latitudePlaceholder = document.getElementById('latitude');
this.longitudePlaceholder = document.getElementById('longitude');
this.depthPlaceholder = document.getElementById('depth');
// Query Metadata
this.earthquakecountPlaceholder = document.getElementById('eq_count');
this.min_datePlaceholder = document.getElementById('minDate');
this.max_datePlaceholder = document.getElementById('maxDate');
this.minMagnitudePlaceholder = document.getElementById('minMagnitude');
this.maxMagnitudePlaceholder = document.getElementById('maxMagnitude');
this.minDepthPlaceholder = document.getElementById('minDepth');
this.maxDepthPlaceholder = document.getElementById('maxDepth');
this.drawnMaxLatPlaceholder = document.getElementById('drawnMaxLat');
this.drawnMinLatPlaceholder = document.getElementById('drawnMinLat');
this.drawnMaxLongPlaceholder = document.getElementById('drawnMaxLong');
this.drawnMinLongPlaceholder = document.getElementById('drawnMinLong');
this.drawnRLatPlaceholder = document.getElementById('drawnRLat');
this.drawnRLongPlaceholder = document.getElementById('drawnRLong');
this.drawnRadiusPlaceholder = document.getElementById('drawnRadius');
};
Metadata.prototype.setMagnitude = function(value) {
this.magnitudePlaceholder.textContent = value;
};
Metadata.prototype.setlocation = function (value) {
this.locPlaceholder.textContent = value;
};
Metadata.prototype.settime = function (value) {
this.eventdatePlaceholder.textContent = value;
};
Metadata.prototype.setlatitude = function (value) {
this.latitudePlaceholder.textContent = value;
};
Metadata.prototype.setlongitude = function (value) {
this.longitudePlaceholder.textContent = value;
};
Metadata.prototype.setdepth = function (value) {
this.depthPlaceholder.textContent = value;
};
Metadata.prototype.seteq_count = function (value) {
this.earthquakecountPlaceholder.textContent = value;
this.control.endRedraw();
};
Metadata.prototype.setminDate = function (value) {
this.min_datePlaceholder.textContent = value;
};
Metadata.prototype.setmaxDate = function (value) {
this.max_datePlaceholder.textContent = value;
};
Metadata.prototype.setminMagnitude = function (value) {
this.minMagnitudePlaceholder.textContent = value;
};
Metadata.prototype.setmaxMagnitude = function (value) {
this.maxMagnitudePlaceholder.textContent = value;
};
Metadata.prototype.setminDepth = function (value) {
this.minDepthPlaceholder.textContent = value;
};
Metadata.prototype.setmaxDepth = function (value) {
this.maxDepthPlaceholder.textContent = value;
};
Metadata.prototype.setminLatitude = function (value) {
this.drawnMinLatPlaceholder.textContent = value;
};
Metadata.prototype.setmaxLatitude = function (value) {
this.drawnMaxLatPlaceholder.textContent = value;
};
Metadata.prototype.setminLongitude = function (value) {
this.drawnMinLongPlaceholder.textContent = value;
};
Metadata.prototype.setmaxLongitude = function (value) {
this.drawnMaxLongPlaceholder.textContent = value;
};
Metadata.prototype.setRLatitude = function (value) {
this.drawnRLatPlaceholder.textContent = value;
};
Metadata.prototype.setRLongitude = function (value) {
this.drawnRLongPlaceholder.textContent = value;
};
Metadata.prototype.setRadius = function (value) {
this.drawnRadiusPlaceholder.textContent = value;
};
return Metadata;
});