Web Cartographer & Geo ICT developer
Maptime Amsterdam & Utrecht
Internship Geo Web Visualization
Msc Geo Information Science & Remote Sensing
Time for making maps!
Maptime is hands on!
This presentation
All materials needed:
https://github.com/maptime-ams/vector-tiles-workshopAt the end of this workshop, you will have your own web page with an vector-tile based map! Customized to your liking and creativity! Your web page will be hosted on Github, so you can immediately share your progress with all your family and friends!
Let's start from the beginning
Analogue paper maps
Digital maps | VS | Web Maps |
---|---|---|
Data | Tiles, styles and servers | |
On the computer | View in a browser | |
Calculate, analyze | scroll, pan, zoom |
Digital maps
GIS software
GIS on the Web is not user friendly..
1996 Mapquest first with a web service!
But really slow to load..
in 2004 Endoxon found a way for quick online mapping! map.search.ch
2005 Google Maps took over!
The solution?
All tiles size 256x256 pixels
Placed in a grid, sharing boundaries
Seamless map
All these little tiles load way faster than one big map!
We call this slippy maps
Each zoom level has its own set of tiles!
Zoom level 0: 1 tile for the whole world.
Increases exponentially...
Zoom level 1: 4 tiles
Zoom level 2: 16 tiles
etc.
Tiles are rendered in advance.
Stored in a cache.
Tiles are just images on the web with a url
http://tile.openstreetmap.org/5/16/10.png http://tile.openstreetmap.org/17/67320/43073.png{z/x/y}
Data, styled, tiles, server:
Base Layer
Additional Data:
Layers
Interface and Interaction
Zoom, panning, clicking etc.
Start with Making a web page
Or use Code Academy
Rendering is done on client side not by the server!
So different clients can style a map different!
Small tile size! So faster data transfer.
High resolution!
Access to feature information!
No colors
Arrays in a 256 x 256 matrix
Same tiling schema as Raster png tiles.
Binary format
Simplifies geometries
Based on the binary protocol buffer (.pbf) from Google.
Standard already used by Esri.
Web Mercator projection, Google tiling scheme.
.mvt - .pbf
.mbtiles
Make with Mapbox Studio
Mapzen
https://tile.mapzen.com/mapzen/vector/v1/{layers}/{z}/{x}/{y}.{format}
https://openmaptiles.com/hosting/
Licenses..
Use locally offline
Tile servers
NL Amsterdam Datalab.
"https://t1.data.amsterdam.nl/wm/{z}/{x}/{y}.pbf"
Mapbox studio
JavaScript
Feel free to contact me!
niene.boeijen@gmail.com
Everything is on Github
Used for code.
Version control.
Sharing.
Documentation.
Full code example a map with the Mapbox GL JS library
a testendpoint where to find some tiles
a standard style for you to edit
How to make your own vector tiles
How to download OSM vector tiles
MapboxGL JS
//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]
});
Use the INTERNET!
Use the MapboxGL JS documentation!
StackOverflow is awesome!
Ask me
There is more to find on the Internet
Do not keep yourself to the assignments!!
The workshop:
https://github.com/maptime-ams/vector-tiles-workshop/wikiThe materials needed:
https://github.com/maptime-ams/vector-tiles-workshopUse the world tiles
Amsterdam tiles contain Dutch words!!
Open Map tile for world map explained bottom section, then scroll up again for the explanations.
Go to https://openmaptiles.com/hosting/ and generate your own free key.