-
Notifications
You must be signed in to change notification settings - Fork 0
/
TUgis.html
229 lines (205 loc) · 4.67 KB
/
TUgis.html
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html><html><head><title></title><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
background:#000;
background-size:100%;
color:#fff;
margin:0;
padding:0;
font-weight:bold;
}
h1, h2, h3, p {
margin:0;
}
strong {
background:rgba(255, 255, 255, 0.3);
}
em, a {
font-style:normal;
color:#8dbd0c;
}
a {
background: #34d0e7;
color:#000;
text-decoration:none;
}
img {
width:80%;
}
div {
cursor:pointer;
cursor:hand;
position:absolute;
top:0px;
left:0px;
padding:75px;
line-height:97%;
}
div.center {
text-align:center;
}
div.imageText {
text-shadow:0px 0px 5px rgba(0,0,0,0.2);
}
</style><script type='text/javascript'>
window.onload = function() {
var s = document.getElementsByTagName('div'), cur = 0, ti;
if (!s) return;
function go(n) {
cur = n;
var i = 1e3, e = s[n], t;
for (var k = 0; k < s.length; k++) s[k].style.display = 'none';
e.style.display = 'inline';
e.style.fontSize = i + 'px';
if (e.firstChild.nodeName === 'IMG') {
document.body.style.backgroundImage = 'url(' + e.firstChild.src + ')';
e.firstChild.style.display = 'none';
if ('classList' in e) e.classList.add('imageText');
} else {
document.body.style.backgroundImage = '';
document.body.style.backgroundColor = e.style.backgroundColor;
}
if (ti !== undefined) window.clearInterval(ti);
t = parseInt(e.getAttribute('time-to-next') || 0, 10);
if (t > 0) ti = window.setTimeout(fwd, (t * 1000));
while (
e.offsetWidth > window.innerWidth ||
e.offsetHeight > window.innerHeight) {
e.style.fontSize = (i -= 2) + 'px';
if (i < 0) break;
}
e.style.marginTop = ((window.innerHeight - e.offsetHeight) / 2) + 'px';
if (window.location.hash !== n) window.location.hash = n;
document.title = e.textContent || e.innerText;
}
document.onclick = function() { go(++cur % (s.length)); };
function fwd() { go(Math.min(s.length - 1, ++cur)); }
function rev() { go(Math.max(0, --cur)); }
document.onkeydown = function(e) {
if (e.which === 39) fwd();
if (e.which === 37) rev();
};
document.ontouchstart = function(e) {
var x0 = e.changedTouches[0].pageX;
document.ontouchend = function(e) {
var x1 = e.changedTouches[0].pageX;
if (x1 - x0 < 0) fwd();
if (x1 - x0 > 0) rev();
};
};
function parse_hash() {
return Math.max(Math.min(
s.length - 1,
parseInt(window.location.hash.substring(1), 10)), 0);
}
if (window.location.hash) cur = parse_hash() || cur;
window.onhashchange = function() {
var c = parse_hash();
if (c !== cur) go(c);
};
go(cur);
};
</script></head><body>
<div>from <em>PDF</em> to <em>Web Map</em></div>
<div>Phillip Reese<br/>
<br/>
<br/>
Center for GIS @ Towson University</div>
<div><img src="img/MDHC1.png" /></div>
<div><strong>Requests for 2014:</strong><br/>
<br/>
Ability to <em>filter</em>
<br/>
<br/></div>
<div><img src="img/MDHC2.png" /></div>
<div><img src="img/MDHC2.png" />
<a>by program</a>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
<div><img src="img/MDHC2.png" />
<br/>
<br/>
<a>by year</a>
<br/>
<br/>
<br/>
</div>
<div><img src="img/MDHC2.png" />
<br/>
<br/>
<br/>
<br/>
<a>by political boundary</a>
<br/>
</div>
<div><img src="img/MDHC3.png" /><br/>
<br/>
<br/>
<a>Mapbox.js</a>
</div>
</div>
<div><img src="img/MDHC4.png" /><a>+ Mapbox SimpleStyle</a>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
<div><img src="img/MDHC5.png" /><br/>
<br/>
<br/>
<a>+ Bootstrap</a>
</div>
<div>= lots of shortcuts</div>
<div><img src="img/MDHCprice.png" />
<a>& free </a>
<br/>
<br/>
<br/>
<br/>
<br/></div>
<div>Workflow</div>
<div><img src="img/MDHC6.png" />
<br/>
<br/>
<a>Geocode + Joins</a>
</div>
<div><img src="img/MDHC7.png" />
<br/>
<br/>
<a>Convert to geoJSON</a>
<br/>
<br/>
</div>
<div><img src="img/MDHCgeojson.png" /></div>
<div><img src="img/MDHC8.png" />
<br/>
<br/>
<br/>
<a>style and upload boundary layers</a>
</div>
<div>write app
<br/>
<br/>
...
</div>
<div><img src="img/MDHCfinal.png" />
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a href="http://pages.towson.edu/preese/mdhc/dist/index.html"target="_blank">app </a>
</div>
<div>reflections</div>
<div>Mapbox has great tools</div>
<div>Documentation assumes extensive javascript knowledge</div>
<div>1100 points is probably stretching things a bit</div>
<div>thanks</div>