forked from codeforboston/ungentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
65 lines (55 loc) · 1.34 KB
/
main.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
require.config({
paths: {
'jquery': 'lib/jquery-1.11.2.min',
'jquery-ui': 'lib/jquery-ui-1.11.1',
'backbone': 'lib/backbone-min',
'underscore': 'lib/underscore-min',
'bootstrap': 'lib/bootstrap/bootstrap.min',
'leaflet': 'lib/leaflet-0.7.3/leaflet',
'leaflet.ajax': 'lib/leaflet.ajax',
'mapSync': 'lib/L.Map.Sync',
'stamen': 'lib/stamen',
'colorbrewer': 'lib/colorbrewer',
'fullScreen': 'lib/Control.FullScreen',
'easybutton': 'lib/easy-button',
'geostats': 'lib/geostats',
'rainbow': 'lib/rainbowvis',
'topojson': 'lib/topojson.v1.min',
'censusLayer': 'prospect/CensusLayer/js/CensusLayer',
'timeslider': 'src/timeslider',
'script': 'src/script',
'routes': 'src/routes',
'legend': 'src/legend'
},
shim: {
'leaflet': {
exports: 'L'
},
'mapSync': {
deps: ['leaflet']
},
'leaflet.ajax': {
deps: ['leaflet']
},
'stamen': {
deps: ['leaflet']
},
'backbone': {
deps: ['jquery', 'underscore']
},
'bootstrap': {
deps: ['jquery']
}
}
});
require(['script', 'routes', 'bootstrap', 'jquery-ui'], function(S, routes){
S.bootstrap();
routes.init();
$( window ).resize(function() {
if ($('body').width() > 1000){
$("#map0").css('display', "inline-block");
$("#map1").css('display', "inline-block");
$("#map2").css('display', "inline-block");
}
});
});