-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
437 lines (434 loc) · 18.4 KB
/
index.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Maptime</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- Opening slides -->
<section>
<section data-state='openingslide' data-background="img/boston_logo.jpeg" data-background-size='60%'>
</section>
<section data-state='openingslide' data-background="https://www.mapbox.com/help/img/screenshots/dynamic-ny-details.gif">
<h1>Maptime Boston</h1>
<h2>Vector Tile workshop </h2>
<h2>By Niene Boeijen</h2>
</section>
</section>
<!-- Personal information -->
<section>
<section>
<h1>Niene Boeijen </h1>
<div style="float:left; width:50%;">
<a href="http://webmapper.net"><img src="https://raw.githubusercontent.com/wiki/NieneB/Webmapping_for_beginners/img/webmapper_logo_tekst.png" height="120px"> </a>
<a href="http://maptime.io"><img src="https://nieneb.github.io/Webmapping_for_beginners/img/maptimeAMS.png" height="200px"></a>
<a href="https://waag.org/en/users/niene-boeijen"><img src="img/WS_logo.jpg" height="100px"></a>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/wur.jpg" width="250px">
</div>
<div style="float:right; width: 50%;">
<p>Web Cartographer & Geo ICT developer</p>
<p>Maptime Amsterdam & Utrecht</p>
<p>Internship Geo Web Visualization</p>
<p>Msc Geo Information Science & Remote Sensing</p>
</div>
</section>
<section data-background="https://nieneb.github.io/Webmapping_for_beginners/img/webmapper.gif">
<div style="float: right; width: 70%; background-color:rgba(255,255,255,0.8);">
<a href="http://webmapper.net"><img src="https://raw.githubusercontent.com/wiki/NieneB/Webmapping_for_beginners/img/webmapper_logo_tekst.png" height="100px"></a>
<i>
<p>What the map can be</p>
<p>We make interactive maps and visualizations.</p>
<p>Our expertise is open {source; data; standards} </p>
<p>Our power lies in combining cartography with web technology.</p>
</i>
<p>Utrecht, The Netherlands</p>
</div>
</section>
<section data-background=https://nieneb.github.io/Webmapping_for_beginners/img/maptime_chapters.png data-background-size=100%>
<h1>Maptime</h1>
<p>Time for making maps!</p>
<p>Maptime is hands on!</p>
<img style="float: middle; left: 18%; top: 20%; position: absolute; z-index: -2" class="fragment fade-in" src="img/De_Waag_Nieuwmarkt_Amsterdam.jpg"></img>
<div style="float: right; width: 40%;" >
<img class="fragment fade-in" src="https://secure.meetupstatic.com/photos/event/9/1/0/0/highres_459997120.jpeg">
</div>
<div style="float: left; width: 60%;" >
<img class="fragment fade-in" src="https://secure.meetupstatic.com/photos/event/c/5/b/2/highres_458930610.jpeg">
</div>
</section>
</section>
<!-- Workshop Information -->
<section>
<section>
<h2>WIFI:</h2>
<p></p>
<h2>PW:</h2>
<p></p>
</section>
<section>
<p>This presentation</p>
<h1 style=" text-transform: initial"><a href="http://bit.ly/2sA4mly">bit.ly/2sA4mly</a></h1>
<p>All materials needed:</p>
<a href="https://github.com/maptime-ams/vector-tiles-workshop">https://github.com/maptime-ams/vector-tiles-workshop</a>
</section>
</section>
<!-- Program info -->
<section>
<section>
<h2> What will we do?</h2>
<p><ol>
<li>Presentation.</li>
<li>Workshop. </li>
<li>Show and tell. </li>
</ol></p>
</section>
<section>
<h2>Goal of this evening!</h2>
<p> At the end of this workshop, you will have <b>your own web page with an vector-tile based map!</b> Customized to your liking and creativity! Your web page will be hosted on Github, so you can <b>immediately share your progress with all your family and friends!</b></p>
<img src="https://media.giphy.com/media/6KKab1ydLq1uU/giphy.gif">
</section>
</section>
<section>
<h1>Vector tiles!</h1>
<p>Let's start from the beginning</p>
<ul>
<li>What is a Web map?</li>
<li>How to make a Web Map?</li>
<li>From Raster to Vector</li>
<li>Vector tiles and what they look like</li>
<ul>
<li>Standards</li>
<li>Downloading</li>
<li>Making yourself</li>
<li>Hosting</li>
<li>Visualizing</li>
</ul>
</ul>
</section>
<!-- WEB MAPS RASTER -->
<section>
<section>
<h1>What is a web map?</h1>
<p><i>Analogue paper maps</i></p>
<table>
<tr>
<th> Digital maps</th> <th> VS</th><th>Web Maps</th>
</tr>
<tr>
<td> Data </td> <td></td><td> Tiles, styles and servers </td>
</tr>
<tr>
<td> On the computer </td> <td></td><td> View in a browser </td>
</tr>
<tr>
<td>Calculate, analyze</td><td></td><td>scroll, pan, zoom</td>
</tr>
</table>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/webmapping_4_steps.jpg">
</section>
<section data-background="img/osm.png">
<h2><a href="openstreetmap.org">openstreetmap.org</a></h2>
</section>
<section data-background="img/google.png">
<h2><a href="google.com/maps">google.com/maps</a></h2>
</section>
<section>
<h1>a little History</h1>
<div style="float:left; width:50%">
<p>Digital maps</p>
<p>GIS software</p>
<p>GIS on the Web is not user friendly.. </p>
<p>1996 Mapquest first with a web service! </p></div>
<img src="https://s.aolcdn.com/hss/storage/midas/b9b34e399643c72a62fe437ab37b7ed0/203335059/500004990-03-01.jpeg" style="float:right; width:50%">
</section>
<section>
<p>But really slow to load..</p>
<p>in 2004 Endoxon found a way for quick online mapping! <a href="http://map.search.ch">map.search.ch</a></p>
<p>2005 Google Maps took over!</p>
<p> The solution?</p>
<h1 class="fragment grow">Tiles! </h1>
</section>
<section data-background="http://maptime.io/anatomy-of-a-web-map/images/tiles-loading.gif">
<h1>Tiles</h1>
<p>All tiles size 256x256 pixels </p>
<p>Placed in a grid, sharing boundaries </p>
<p> Seamless map </p>
<p class="fragment grow">All these little tiles load way faster than one big map!</p>
<p>We call this slippy maps</p>
</section>
<section >
<h1>Zoom levels</h1>
<p>Each zoom level has its own set of tiles!</p>
<div style="float:right; width:50%">
<p>Zoom level 0: 1 tile for the whole world.</p>
<p>Increases exponentially...</p>
<p>Zoom level 1: 4 tiles</p>
<p>Zoom level 2: 16 tiles</p>
<p> etc. </p>
</div>
<img src="http://www.truenorthgeospatial.com/wp-content/uploads/2015/10/training-tiling.png" style="float:left; width:50%">
<a href="http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/"> Map with tile bounds</a>
</section>
<section>
<h1>Serving tiles</h1>
<div style="float: left; width: 50%">
<p>Tiles are rendered in advance. </p>
<p>Stored in a cache. </p>
<p>Tiles are just images on the web with a url</p>
<a href="http://tile.openstreetmap.org/5/16/10.png">http://tile.openstreetmap.org/5/16/10.png</a>
<a href="http://tile.openstreetmap.org/17/67320/43073.png">http://tile.openstreetmap.org/17/67320/43073.png</a>
<code data-trim data-noescape>{z/x/y}</code>
</div>
<div style="float: left; width: 50%">
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/tiles.gif">
</div>
</section>
<section>
<h2><i>Raster</i> Web Map Building blocks</h2>
<div style="float: left; width: 50%">
<p>Data, styled, tiles, server:</p>
<p><b>Base Layer</b></p>
<p>Additional Data:</p>
<p><b>Layers</b></p>
<p>Interface and Interaction</p>
<p><i>Zoom, panning, clicking etc. </i></p>
</div>
<div style="float: left; width: 50%">
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/tile_creation.png" >
</div>
</section>
</section>
<!-- ABOUT WEBMAPPING -->
<section>
<section>
<h2>How to make a Web Map?</h2>
</section>
<section >
<h2>Making a Web Page</h2>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/html-css-js.png">
<img class="fragment fade-in" src="https://nieneb.github.io/Webmapping_for_beginners/img/html-css-js-file.png">
</section>
<section>
<h2>New to HTML & CSS?</h2>
<p>Start with <a href="https://github.com/NieneB/Webmapping_for_beginners/wiki/Making-a-web-page">Making a web page</a> </p>
<p>Or use <a href="https://www.codecademy.com/learn/web"> Code Academy</a></p>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/html_demo.gif" width="50%">
</section>
<section>
<h2>Maps with JavaScript</h2>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/web_map_building_blocks.png" height=" 50%">
</section>
</section>
<!-- TO VECTOR -->
<section>
<section>
<h1>From Raster to Vector</h1>
</section>
<section data-background="http://mapschool.io/img/raster.png" data-background-size='60%'> </section>
<section data-background="http://mapschool.io/img/vector_types.png" data-background-size='60%'></section>
<section data-background="http://www.emu-analytics.com/perch/resources/map-tiles-2-w800.png" data-background-size='60%'></section>
<section>
<h1>Advantages Vector tiles</h1>
<p> Rendering is done on client side not by the server!</p>
<p> So different clients can style a map different!</p>
<p> Small tile size! So faster data transfer. </p>
<p> High resolution! </p>
<p> Access to feature information!</p>
</section>
<section >
<div style="float: left; width: 40%">
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/tile_creation.png" >
</div>
<div style="float: right; width: 60%">
<img src="img/vector_tile_creation.png" >
</div>
</section>
<section>
<h2>Maps with JavaScript</h2>
<img src="https://nieneb.github.io/Webmapping_for_beginners/img/web_map_building_blocks.png" height=" 50%">
</section>
<section>
<h2>Who What Where?</h2>
<ul>
<li><a href="http://googlemobile.blogspot.nl/2010/12/under-hood-of-google-maps-50-for.html">Google </a></li>
<li><a href="https://www.mapbox.com/maps/">Mapbox </a></li>
<li><a href="http://osm2vectortiles.org/">OSM</a></li>
<li><a href="https://www.apple.com/ios/maps/">Apple</a></li>
</ul>
</section>
</section>
<section>
<section data-background="https://www.mapbox.com/help/img/classic/data-styles-source.gif" data-background-size='90%' >
<h1 style="color:#fff">Vector tiles and what they look like.</h1>
</section>
<section data-background="https://mapzen.com/resources/projects/vector-tiles/square-of-math.gif" data-background-size='90%' >
<div class="fragment fade-in" style="background-color:rgba(255,255,255,0.8); float:right"> <p> No colors</p>
<p> Arrays in a 256 x 256 matrix</p>
<p> Same tiling schema as Raster png tiles.</p>
<p> Binary format</p>
<p> Simplifies geometries</p>
</div>
</section>
<section>
<h1>Standards</h1>
<a href="https://www.mapbox.com/vector-tiles/specification/">Mapbox Vector Tile Standard. </a>
<p>Based on the binary protocol buffer (.pbf) from Google.</p>
<p><a href="https://www.mapbox.com/blog/vector-tile-adoption/">Standard already used by Esri.</a></p>
<p>Web Mercator projection, Google tiling scheme.</p>
<h1>Formats</h1>
<p>.mvt - .pbf</p>
<p>.mbtiles</p>
</section>
<section>
<h1>Where to get them?</h1>
<h3>Download</h3>
<p> <a href="http://osm2vectortiles.org/">osm2vectortiles</a></p>
<p><a href="https://openmaptiles.org/">https://openmaptiles.org/</a></p>
<p>Make with Mapbox Studio</p>
<h3>Hosted</h3>
<p>Mapzen</p>
<pre><code>https://tile.mapzen.com/mapzen/vector/v1/{layers}/{z}/{x}/{y}.{format}</code></pre>
<a href="https://openmaptiles.com/hosting/">https://openmaptiles.com/hosting/</a>
<p><a href="https://developer.mapquest.com/documentation/">Mapquest</a></p>
<p>Licenses..</p>
</section>
<section data-background="http://erictheise.com/geostack-deck/images/Map-nik-cake-osm-7.png">
<h1>Bake them your self</h1>
<div style="background-color:rgba(255,255,255,0.8)">
<p><a href="http://tegola.io/">Tegola </a></p>
<p><a href="https://github.com/mapbox/tippecanoe">TippeCanoe</a></p>
<p><a href="http://docs.geoserver.org/latest/en/user/extensions/vectortiles/tutorial.html">GeoServer </a></p>
<p> <a href="https://github.com/pka/t-rex">T-rex</a></p>
<p><a href="https://github.com/mapbox/awesome-vector-tiles">More </a> command line tools</p>
</div>
</section>
<section data-background="img/amsterdam.png">
<h3>Host yourself?</h3>
<p>Use locally offline</p>
<p><a href="http://docs.geoserver.org/latest/en/user/extensions/vectortiles/tutorial.html">GeoServer </a></p>
<p><a href="http://tegola.io/">Tegola </a></p>
<p> Tile servers</p>
<h3> The Netherlands!</h3>
<p> NL Amsterdam Datalab.</p>
<pre><code data-trim data-noescape>"https://t1.data.amsterdam.nl/wm/{z}/{x}/{y}.pbf"</code></pre>
</section>
<section>
<h1>How to visualize them?</h1>
<p><a href="https://openlayers.org/en/latest/examples/osm-vector-tiles.html">OpenLayers</a> -- <a href="http://leafletjs.com/plugins.html#vector-tiles">Leaflet</a></p>
<p class="fragment grow" ><a href="https://www.mapbox.com/mapbox-gl-js/api/">MapboxGL JS</a></p>
<p><a href="https://d3js.org/">D3.js</a></p>
<p><a href="http://maputnik.com/">Maputnik</a></p>
<p>Mapbox studio</p>
<p>JavaScript</p>
</section>
<section>
<h1> Cool stuff!</h1>
<p><a href="https://www.mapbox.com/gallery/#map-7">Beautiful visualizations!</a></p>
<p><a href="https://parallel.co.uk/os-openmap-cyo/#12.47/54.3741/-2.916">Colouring on the fly!</a></p>
<p><a href="http://apps.webmapper.nl/gebouwen/#15/52.091/5.1222/-58.4/60">Web GL for 3D extrusion!</a></p>
<p><a href="file:///home/niene/Documents/00_Projecten/2017_02_Kadaster_Vector_Tiles/brtviz/openlayers/index.html">JavaScript interactivity</a></p>
</section>
<section>
<h1> More info? </h1>
<p><a href="https://github.com/maptime-ams/vector-tiles-workshop/wiki/Interesting-links">List with links!</a></p>
<p>Feel free to contact me!</p>
<p>[email protected]</p>
</section>
</section>
<!-- WORKSHOP!! -->
<section>
<section>
<h1> Let's get started!</h1>
<img src="https://media.giphy.com/media/AEcZfXZZNCcQU/giphy.gif" width="300px">
<p>Everything is on Github</p>
</section>
<section>
<h1>Github?!</h1>
<img src="https://media.giphy.com/media/TW6M5r0ncBHcQ/giphy.gif" height="200px">
<p>Used for code.</p>
<p>Version control.</p>
<p>Sharing.</p>
<p>Documentation.</p>
</section>
<section>
<h2>What is in the workshop?</h2>
<p>
<ul>
<li><p>Full code example a map with the <a href="https://www.mapbox.com/mapbox-gl-js/api/">Mapbox GL JS library</a></p></li>
<li><p> a <i>test</i>endpoint where to find some tiles</p></li>
<li><p> a standard style for you to edit </p></li>
<li><p><i>How to make your own vector tiles</i></p></li>
<li><p><i>How to download OSM vector tiles</i></p></li>
</ul>
</p>
</section>
<section>
<p>MapboxGL JS </p>
<pre><code data-trim data-noescape>
//Initialize Map
var map = new mapboxgl.Map({
container: "map",
hash: true,
style: style_object,
zoom: 11,
pitch: 60,
bearing: 62.4,
center: [ 4.8, 52.4]
}); </code></pre>
</section>
<section>
<h1>Problems or questions?</h1>
<p>Use <a href="https://en.wikipedia.org/wiki/Internet">the INTERNET!</a></p>
<p> Use the <a href="https://www.mapbox.com/mapbox-gl-js/style-spec/">MapboxGL JS documentation!</a></p>
<p><a href="https://stackoverflow.com/questions/tagged/mapbox-gl-js">StackOverflow</a> is awesome!</p>
<p>Ask me</p>
</section>
<section>
<h1>Be creative!</h1>
<div style="float: left; width: 50%">
<img src="https://media.giphy.com/media/3oEduXdm2gjnrsJBOo/giphy.gif">
</div>
<div style="float: right; width: 50%">
<p>There is more to find on the Internet</p>
<p>Do not keep yourself to the assignments!! </p>
</div>
</section>
<section>
<p>The workshop:</p>
<a href="https://github.com/maptime-ams/vector-tiles-workshop/wiki">https://github.com/maptime-ams/vector-tiles-workshop/wiki</a>
<p>The materials needed:</p>
<a href="https://github.com/maptime-ams/vector-tiles-workshop">https://github.com/maptime-ams/vector-tiles-workshop</a>
</section>
<section>
<p> Use the world tiles</p>
<p>Amsterdam tiles contain Dutch words!! </p>
<p>Open Map tile for world map explained bottom section, then scroll up again for the explanations. </p>
<p> Go to https://openmaptiles.com/hosting/ and generate your own free key. </p>
</section>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
history: true,
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
</body>
</html>