-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
786 lines (761 loc) · 27.6 KB
/
index.html
File metadata and controls
786 lines (761 loc) · 27.6 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
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
<!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>Web Maps for Developers</title>
<link rel="stylesheet" href="reveal.js/css/reset.css">
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<link rel="stylesheet" href="reveal.js/css/theme/webmapper.css">
<script src="https://kit.fontawesome.com/1c94892226.js"></script>
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal.js/lib/css/monokai.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- INTRODUCTION -->
<section data-background="img/Screenshot_background2.png">
<section>
<h1> Web Maps for Web Developers</h1>
<h3> Niene Boeijen </h3>
<h4>github.com/NieneB/webmapping_for_developers</h4>
</section>
<section>
<h2></h2><a target="blank" href="https://nieneb.nl">Niene Boeijen </a></h2>
<div style="float:left; width:50%;">
</br>
<img src="https://raw.githubusercontent.com/NieneB/Webmapping_for_beginners/gh-pages/img/wur.jpg"
width="250px" />
<a target="blank" class="noBackground" href="https://waag.org/en/users/niene-boeijen">
<img src="https://raw.githubusercontent.com/NieneB/Webmapping_for_beginners/gh-pages/img//WS_logo.jpg"
height="100px" />
</a>
<a target="blank" class="noBackground" href="http://maptime.io">
<img src="https://raw.githubusercontent.com/NieneB/Webmapping_for_beginners/gh-pages/img//maptimeAMS.png"
height="200px" />
</a>
<a target="blank" class="noBackground" href="http://webmapper.net">
<img src="img/webmapper_logo_tekst.png" height="120px" /> </a>
</div>
<div style="float:right; width: 50%;">
<p style="color:#535353;">Propedeuse Art Academy</p>
<p style="color:#535353;">MSc Geo Information Science</p>
<p style="color:#535353;">Internship Geo Web Visualization</p>
<p style="color:#535353;">Maptime Amsterdam & Utrecht</p>
<p style="color:#535353;">Web Cartographer</p>
</div>
<aside class="notes">
Full Stack Web Map Developer.
</aside>
</section>
<section data-background-image="img/webmapperbkg.png" style=" text-shadow: 0px 0px 4px #333333">
<h3 style=" text-shadow: 2px 2px 4px #333333"><a target="blank"
href="http://webmapper.net">Webmapper</a></h3>
<h4 style=" color:#eeeeec; text-shadow: 2px 2px 4px #333333 ">Utrecht, the Netherlands</h4>
<br />
<br />
<br />
<br />
<p style="color:#eeeeec;">Data - Design - Technology</p>
</section>
<section data-background-image="img/webmapperbkg.png"
style="color:#eeeeec; text-shadow: 0px 0px 4px #333333">
<h3 style="color:#eeeeec; text-shadow: 2px 2px 4px #333333"><a
href="http://webmapper.net"></a>Webmapper</a></h3>
<h4 style="color:#eeeeec; text-shadow: 2px 2px 4px #333333 ">Utrecht, the Netherlands</h4>
<br />
<br />
<br />
<br />
<p style="color:#eeeeec;">We make interactive maps & geo data visualizations</p>
<p style="color:#eeeeec;">Our expertise is open {source; data; standards}</p>
<p style="color:#eeeeec;">We combine cartography with web technology</p>
</section>
<section>
<h1> What I make:</h1>
<div style="float: left; width: 50%">
<a target="blank" href="https://apps.webmapper.nl/takemeto1943/#14.5/51.76409/5.60482"><img
src="img/Take me to 1943 - Mozilla Firefox.png" /></a>
<a target="blank" href="https://nieneb.github.io/coastline_example_embed/index.html"><img
src="img/Test Viewer WM Cloud stack - Mozilla Firefox.png" /></a>
</div>
<div style="float: right; width: 50%">
<a target="blank"
href="https://apps.webmapper.nl/crafty_map/#14.5/51.76409/5.60482/17.6/60"><img
src="img/Crafty Map - Mozilla Firefox.png" /></a>
<a target="blank" href="https://nieneb.github.io/mycelium/#13.2/52.35663/4.90706/10/58"><img
src="img/Kaart | Paradijs in de Polder - Mozilla Firefox.png" /></a>
</div>
</section>
<section>
<h1>The Goal of this evening</h1>
<p>From Geo Data to the web</p>
<p> What you need to know as a web developer wanting to make a web map </p>
<p>Focus on the client side </p>
<img src="img/desktop_web1.jpg" width="500px" />
</section>
</section>
<!-- WHAT IS GEO? -->
<section data-background="img/screenshot_background.png">
<section>
<h1> Let's talk maps! </h1>
<blockquote>
<p><q>"Everything is related to everything else, but near things are more related than distant
things"</q></p>
<p>Tobler's first law of geography</p>
</blockquote>
<aside class="notes">
Maps show us what is near. Everybody loves to look up their home - born location. job. Spots they know.
</aside>
</section>
<section>
<h1>Power of Maps</h1>
<blockquote>
<p style="font-size: 80%;"><q>.. we have no
choice but to think and see spatially.</q></p>
<p style="font-size: 80%;"><q>They stimulate both sides of our brain: the right side that’s
intuitive and aesthetic, and the left side that’s rational
and analytical. Maps are this wonderful combination of both.</q></p>
<p><a target="blank" href="http://learn.arcgis.com/en/arcgis-book/chapter3/">Allen Carroll</a>
</p>
</blockquote>
<aside class="notes">
Overleving is ruimtelijk denken. Onze hersenen werken ruimtelijk.
Een mooie kaart stimuleerd daarom beide zijde van onze hersenen. Rechts voor intuity and
aesthetcis, links
rationeel anlytisch en ruimtelijk.
</aside>
</section>
<section>
<h1>What is <u>Geo</u> Data ?</h1>
<aside class="notes"> Hiervoor gaan we gebinnen bij het begin. Map is collection of geo data. Wat is
geo data? Wat
is er anders aan? </aside>
</section>
<section>
<h1><u>Geo</u> Data </br>= Data + Location</h1>
<img src="img/point_line_polygon.jpg" height="230px">
<img src="img/attributes.jpg" height="230px">
</section>
<section>
<h1>Maps = Collection of <u>Geo</u> data</h1>
<p>Maps organize complex data about the environment. </p>
<p>Reveal patterns and relationships.</p>
<p>Maps allow us to communicate about location using a <u>common framework</u></p>
</section>
<section>
<h1>Coordinate system</h1>
<p>Communicate locations & distances on the Earth's surface</p>
<img src="img/round_flat.jpg" width="50%">
</section>
<section>
<h1>Shape of the earth?</h1>
<img src="img/geoid.jpg" width="50%" />
<p>The real shape of the earth is too complex to be useful as a reference for measurement..</p>
</section>
<section>
<h1>Geographic coordinate system</h1>
<img src="img/geograpic_coord.jpg" width="50%" />
<p>3D model</p>
<p>Longitude, Latitude</p>
</section>
<section>
<h4>Geographic Coordinate System:</h4>
<h1>WGS84 EPSG:4326 </h1>
<p>Lon Lat in decimal degrees</p>
<p>GPS</p>
<aside class="notes">standardize the way we describe locations on a map
GeoJSON is a geospatial data interchange format based on JavaScript
Object Notation (JSON).
GeoJSON uses a geographic coordinate reference system, World Geodetic
System 1984, and units of decimal degrees.
geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon.
</aside>
</section>
<section>
<h1>Projected coordinate system</h1>
<img src="img/projected_coord.jpg" width="50%" />
<p>Mathematical projection / translation</p>
<p>2D</p>
</section>
<section>
<h4>Projected Coordinate System:</h4>
<h1>Spherical/Web Mercator EPSG:3857</h1>
<p>Square, scale not relevant, shapes important</p>
<p>Google scheme EPSG:900913</p>
<img src="img/image23.png" width="25%" />
<aside class="notes">first introduced by Google and is used in almost 100% of web maps</aside>
</section>
<section>
<p><i>We store data in EPSG:4326, but display it in EPSG:3857!</i></p>
</section>
<section>
<p>Standard way to store most geodata for the Web:</p>
<p><a href="http://geojson.org/">GeoJSON</a></p>
<pre><code>
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [5.2394137,52.0819662]
},
"properties": {
"name": "Hotel Theater Figi"
}
}</code></pre>
</section>
<section>
<h1>Why is Mercator wrong?</h1>
<p><a href="https://bramus.github.io/mercator-puzzle-redux/">True Size puzzle</a></p>
<p><a href="https://www.youtube.com/watch?v=eLqC3FNNOaI">West Wing</a></p>
</section>
<section>
<img src="img/orange_peel.jpg" />
</section>
<section>
<h4>Projected Coordinate System:</h4>
<h1>RD New EPSG:28992</h1>
<p>Netherlands!</p>
<img src="img/rd_new.gif" width="49%" />
<img src="img/bessel.jpg" width="40%" />
</section>
<section>
<h4>Geographic Coordinate System:</h4>
<p>WGS84 EPSG:4326</p>
<h4>Projected Coordinate System:</h4>
<p>Web Mercator EPSG:3857</p>
<h4>Projected Coordinate System:</h4>
<p>RD New EPSG:28992</p>
</section>
<section>
<img src="https://media.giphy.com/media/6KKab1ydLq1uU/giphy.gif">
<br />
<p><a target="blank" href="http://lyzidiamond.com/posts/4326-vs-3857">[1]</a></p>
<p><a target="blank"
href="https://alastaira.wordpress.com/2011/01/23/the-google-maps-bing-maps-spherical-mercator-projection/">[2]</a>
</p>
</section>
</section>
<section data-background-image="img/Screenshot_background3.png">
<section>
<h1>Getting my map to the web</h1>
<img src="img/desktop_web1.jpg" width="500px" />
</section>
<section>
<img src="img/web_map_universe.png" />
</section>
<section>
<img src="img/muur.png" width="600" />
</section>
<section>
<h1> OGC standards</h1>
<ul>
<li>WMS Web Map Service</li>
<li>WMTS Web Map Tile Service</li>
<li>WFS Web Feature Service</li>
</ul>
<h1>Defacto - Community standard </h1>
<ul>
<li>Google/OSM (XYZ)</li>
<li>TMS Tile Map Service</li>
<li>QuadTrees (microsoft)</li>
</ul>
<!-- https://developers.google.com/maps/documentation/javascript/coordinates -->
</section>
<section>
<img src="img/desktop_web1.jpg" />
</section>
</section>
<!-- WEB MAPS -->
<section data-background="">
<section>
<h1>What is a web map?</h1>
</section>
<section>
<p><i>Analogue paper maps</i></p>
<table style="color: #535353;">
<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="img/webmapping_4_steps.jpg">
</section>
<section data-background="img/osm_viewer.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="img/mapquest.jpeg" style="float:right; width:50%">
</section>
<section>
<h4>But really slow to load..</h4>
<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="img/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>Slippy maps, Google/OSM (XYZ) - TMS - QuadTrees (Microsoft)</p>
<p class="fragment grow">All these little tiles load way faster than one big map!</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="img/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 just images on the web</p>
<p><a
href="http://tile.openstreetmap.org/5/16/10.png">http://tile.openstreetmap.org/5/16/10.png</a>
</p>
<p>/z/x/y</p>
</div>
<div style="float: right; width: 50%">
<img src="img/tiles.gif">
</div>
</section>
<section>
<p>Tiles are styled and rendered in advance</p>
<img src="img/tile_creation.png" width="50%">
</section>
</section>
<!-- VECTOR -->
<section data-background="img/Screenshot_background2.png">
<section>
<h1>Vector Tiles</h1>
<p> the newest technology!</p>
</section>
<section>
<h1>From Raster to Vector</h1>
<img src="img/map-tiles-2-w800.png" />
</section>
<section>
<h1>Disadvantages Raster Tiles</h1>
<p>No interaction with objects</p>
<p>No information available about objects</p>
<p>Multiple visualizations = multiple tile sets</p>
</section>
<section>
<h1>Vector Tile</h1>
<div style="float:left; width:50%;">
<img src="https://mapzen.com/resources/projects/vector-tiles/square-of-math.gif">
</div>
<div style="float:right; width:50%">
<p> No colours</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>
<img src="img/vector_tile_creation.png" />
</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> Direct access to feature information.</p>
</section>
<section>
<h1>Standards</h1>
<a href="https://www.mapbox.com/vector-tiles/specification/">Mapbox Vector Tile Standard. </a>
<p>Based on the binary protocal 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>Want to know more?</h1>
<p>About <a href="https://docs.mapbox.com/vector-tiles/reference/">Vector-tiles</a> from Mapbox
</p>
<p><a href="https://docs.mapbox.com/mapbox-gl-js/api/">MapboxGL.js</a></p>
<p><a href="https://openmaptiles.org/">Open map tiles</a> alternative</p>
<p><a href="https://cartiqo.nl">Cartiqo</a> our own alternative</p>
</section>
</section>
<!-- GENERAL MAKING MAPS -->
<section data-background="img/Screenshot4.png">
<section>
<h1>The Client side</h1>
</section>
<section>
<h2>Web Map Building blocks</h2>
<ul>
<li>Map Interface and Interaction</li>
<li>Zoom, panning, clicking etc.</li>
<li>Map events</li>
<li>Tiles (raster/vector) as Base Layer</li>
<li>Additional Data <ul>
<li>File (GeoJSON)</li>
<li>WMS,WFS</li>
<li>Tiles</li>
</ul>
</li>
</ul>
</section>
<section>
<img src="img/web_map_building_blocks.png" height=" 50%">
</section>
<section>
<h1 style="font-size: 80%;">JavaScript Libraries for Mapping</h1>
<p><a href="https://openlayers.org/">OpenLayers</a>
<p><a href="http://leafletjs.com/">Leaflet.js</a></p>
<p><a href="https://d3js.org/">D3.js</a></p>
<p> <a href="https://developers.arcgis.com/javascript/">ArcGIS Javascript API</a></p>
<p><a href="https://www.mapbox.com/mapbox.js/api/v3.1.1/">MapboxGL.js</a></p>
<p> <a href="https://github.com/tangrams/tangram">Tangram</a></p>
<p> <a href="https://carto.com">CARTO</a></p>
<p><a href="https://developer.here.com/develop/javascript-api">HERE Maps</a></p>
<p><a href="https://developers.google.com/maps/documentation/javascript/">Google Maps
API</a>
</p>
</section>
<section>
<h1>Vector tiles</h1>
<p><a href="https://www.mapbox.com/mapbox-gl-js/api/">MapboxGL.js</a></p>
<p><a href="https://openlayers.org/en/latest/examples/osm-vector-tiles.html">OpenLayers 3</a> --
<a href="http://leafletjs.com/plugins.html#vector-tiles">Leaflet</a>several plugins available
</p>
<p><a
href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html">ArcGIS
API for JavaScript</a></p>
<p>Mapzen <a href="https://github.com/tangrams/tangram">Tangram</a></p>
</section>
<section>
<p> Let's look at Leaflet for Raster tile maps</p>
<p> and MapboxGL.js for Vector Tile maps </p>
<p> Both in the workshop!</p>
</section>
<section>
<p>When to use what?! </p>
<img src="https://media.giphy.com/media/xT0xeBA6roXgqpDxVm/giphy.gif" width="300"/>
</section>
</section>
<!-- RASTER TILES AND LEAFLET -->
<section data-background-image="img/osm.png">
<section>
<h1>Leaflet.js</h1>
</section>
<section>
<a target="blank" href="http://leafletjs.com"><img src="img/leaflet-logo.png"></a>
<p>An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps</p>
<blockquote> simplicity, performance and usability </blockquote>
</section>
<section>
<p>Developed by: <a href="http://agafonkin.com/en/">Vladimir Agafonkin.</a></p>
<p>Weighing about 38 KB of JS. </p>
<p>Has all the mapping features most developers ever need.</p>
<p>Can be extended with <a href="http://leafletjs.com/plugins.html">Plugins</a></p>
<p>Well <a href="http://leafletjs.com/reference-1.2.0.html">documented</a></p>
</section>
<section>
<h1>What Leaflet does not do:</h1>
<p>Provide data for you.</p>
<p>Provide the basemap.</p>
<p>Its not GIS</p>
<p>Leaflet is a framework </p>
</section>
<section>
<h1>Layers</h1>
<div style="float: left; width: 50%;">
<p>Base Layer</p>
<p>Raster</p>
<img src="img/raster.png" width="500px">
</div>
<div style="float: right; width: 50%;">
<p>Data Layer / Feature Layer</p>
<p>Vector</p>
<img src=" img/vector_types.png" width="500px" />
</div>
</section>
<section>
<h1> Raster tile base map providers</h1>
<p> <a target="blank" href="http://leaflet-extras.github.io/leaflet-providers/preview/"> Overview
Leaflet
providers</a> </p>
<p> <a target="blank"
href="https://www.pdok.nl/introductie/-/article/basisregistratie-topografie-achtergrondkaarten-brt-a-">PDOK
Basemaps</a></p>
<img src="img/raster.png" width="500px">
</section>
<section>
<pre><code data-trim data-noescape>
let map = L.map('map').setView([51.505, -0.09], 13);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
</code></pre>
</section>
<section>
<h1>Adding data layers</h1>
<p>WMS, WFS (slow)</p>
<p>GeoJSON</p>
<pre><code>
let marker = L.marker([52.372825, 4.900321]).addTo(map);
// ADD a WMS layer
let cbs = L.tileLayer.wms('https://geodata.nationaalgeoregister.nl/wijkenbuurten2018/wms', {
'layers': 'cbs_buurten_2018',
'styles': 'wijkenbuurten2018:wijkenbuurten_thema_buurten_gemeentewijkbuurt_percentage_eenpersoonshuishoudens',
'srs': 'EPSG:28992',
'format': 'image/png',
'transparent': true,
'opacity': 0.5
}).addTo(map);
</code></pre>
</section>
<section>
<h1>Projections</h1>
<p><a href="https://kartena.github.io/Proj4Leaflet/">Proj4Leaflet</a></p>
<p><a href="http://proj4js.org/">Proj4js</a></p>
<p> Use EPSG:28992 > Government in Netherlands obliged to use it! </p>
</section>
</section>
<!-- Mapbox GL JS-->
<section data-background="img/Screenshot5.png">
<section>
<h1>MapboxGL.js</h1>
</section>
<section data-background="img/mapbox-gl-js.jpg">
<img src="https://cdn-images-1.medium.com/max/1600/0*ok6yuDnTx4o2PSFx.png" width="500">
<ul>
<li>
<a>https://www.mapbox.com/mapbox-gl-js/api/</a>
</li>
<li>
<a>https://www.mapbox.com/mapbox-gl-js/style-spec</a>
</li>
</ul>
</section>
<section>
<img src="img/vector_tile_creation.png">
</section>
<section>
<img src="img/tiles_styles_sprites_glyphs.png">
</section>
<section>
<pre><code data-trim data-noescape>
mapboxgl.accessToken = 'yourowntoken';
var map = new mapboxgl.Map({
container: 'map-container',
style: 'style.json',
hash: true,
zoom: 11,
pitch: 60,
bearing: 62.4,
center: [ 4.8, 52.4]
});
</code></pre>
</section>
<section>
<h1> style.json</h1>
<pre><code data-trim data-noescape>
{
"version": 8,
"name": "Mijn eigen Stijl",
"sprite": "url",
"glyphs": "url/{fontstack}/{range}.pbf",
"sources": {...},
"layers": [
{
"id": "background",
"type": "background",
"paint": { "background-color":"#FFFFFF" }
},
{...}
]
}
</code></pre>
</section>
<section>
<h1>Layers or layers ??? </h1>
<p>Source</p>
<p>Data layers in tile</p>
<p>Style layer</p>
<p>Leaflet every source is a layer</p>
<div style="float: left; height:300px;">
<img src="https://media.giphy.com/media/3o7TKotoInxXzk7Oq4/giphy.gif" />
</div>
<div style="float: right; height:300px;">
<img src="img/elevation_map.jpg" />
</div>
</section>
<section>
<h1>Vector Tile providers</h1>
<ul>
<li>Mapbox</li>
<li>Maptiler</li>
<li>OpenMapTiles</li>
<li>OpenZoomStack</li>
<li>ESRI</li>
<li>Cartiqo</li>
<li>PDOK? </li>
</ul>
</section>
<section>
<p>Use without token requires own source data!</p>
</section>
<section>
<h1>Generators</h1>
<div style="float:left; width:50%;">
<img src="http://erictheise.com/geostack-deck/images/Map-nik-cake-osm-7.png">
</div>
<div style="float:right; width:50%;">
<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="http://postgis.net/docs//ST_AsMVT.html">PostGIS MVT</a></p>
<p><a href="https://github.com/mapbox/awesome-vector-tiles">More </a> command line tools</p>
</div>
</section>
</section>
<section>
<section data-background-image="img/cartiqoBack.png">
<p style="color: #eeeeec;" class="cartiqo">cartiqo</p>
<img src="img/cartiqo-circle.png" width="100" />
<p style="color: #eeeeec;">Vector Tiles of the Netherlands</p>
<p style="color: #eeeeec;">Based on Dutch Open Geo data & OSM</p>
</section>
<section data-background-image="img/cartiqoBack.png">
<p style=" font-size: 50px; color: #eeeeec">Consistent</p>
<p class="fragment slide-up" style=" font-size: 50px; color: #eeeeec">Accurate</p>
<p class="fragment slide-up" style=" font-size: 50px; color: #eeeeec">Simple</p>
<p class="fragment slide-up" style=" font-size: 50px; color: #eeeeec">Fast</p>
</section>
<section data-background-image="img/cartiqoBack.png" style="color: #eeeeec;">
<p style="color: #eeeeec;">Easy understandable layers and naming</p>
<p style="color: #eeeeec;">Uniform throughout all zoom levels and source data</p>
<p style="color: #eeeeec;"><a href="https://cartiqo.nl">cartiqo.nl</a></p>
<p style="color: #eeeeec;"><a
href="https://github.com/webmapper/cartiqo-documentation">Documentation </a></p>
</section>
<section data-background-image="img/cartiqoBack.png">
<p style=" font-size: 50px; color: #eeeeec">Developed by Webmapper</p>
<p style=" font-size: 50px; color: #eeeeec">Hosted on <a href="https://maptiler.nl/">Maptiler.nl</a>
</p>
</section>
</section>
<!-- THE WORKSHOP -->
<section data-background="img/screenshot_background.png">
<section>
<h1> Let's Map!</h1>
<p>Everything is on Github</p>
</section>
<section>
<h4>github.com/NieneB/webmapping_for_developers</h4>
</section>
<section>
<h1>Thank you!</h1>
<p>Feedback please?</p>
<p>Stay in touch or questions: </p>
<p><i>niene@webmapper.net</i></p>
</section>
<section>
<table>
<tr>
<td><a href="niene@webmapper.net"><i class="fa fa-envelope"> </i>niene@webmapper.net</a>
</td>
</tr>
<tr>
<td><a href="https://twitter.com/BNiene"><i class="fab fa-twitter-square">
</i>@BNiene</a></td>
</tr>
<tr>
<td><a href="https://github.com/NieneB/"><i class="fab fa-github"> </i>NieneB</a></td>
</tr>
<tr>
<td><a href="https://nieneb.nl/online-projects/"><i class="fa fa-link">
</i>NieneB.nl</a></td>
</tr>
<tr>
<td><a href="https://www.linkedin.com/in/niene-boeijen-24a8a429/"><i
class="fab fa-linkedin"></i>Niene
Boeijen</a></td>
</tr>
<tr>
<td><a href="https://www.instagram.com/volvo_343_dl_1980/"><i class="fab fa-instagram">
</i>volvo_343_dl_1980</a></td>
</tr>
</table>
</section>
</section>
</div>
</div>
<script src="reveal.js/js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
slideNumber: false,
hash: true,
// Flags if speaker notes should be visible to all viewers
showNotes: false,
dependencies: [
{ src: 'reveal.js/plugin/markdown/marked.js' },
{ src: 'reveal.js/plugin/markdown/markdown.js' },
{ src: 'reveal.js/plugin/notes/notes.js', async: true },
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true }
]
});
</script>
</body>
</html>