-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht1loader.js
More file actions
41 lines (36 loc) · 1.15 KB
/
t1loader.js
File metadata and controls
41 lines (36 loc) · 1.15 KB
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
/*globals jQuery, L, cartodb, geocities, econColors, altColors, Highcharts, science: true */
var regionPromise,
cityPromiseT1,
cityPromiseT2,
countyPromiseT1,
countyPromiseT2,
tractPromise;
(function($) {
/*
Load all the data we'll need for these visualizations
*/
regionPromise = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t1/region'
});
cityPromiseT1 = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t1/cities'
});
cityPromiseT2 = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t2/cities'
});
countyPromiseT1 = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t1/counties'
});
countyPromiseT2 = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t2/counties'
});
tractPromise = $.ajax({
dataType: 'json',
url: 'http://vitalsigns-production.elasticbeanstalk.com/t1t2/t1/tract'
});
})(jQuery);