Follow along at: slides.com/kkowalsky/webmap
Mapping online is EXPLODING!
"These tiles are typically 256x256 pixels and are placed side-by-side in order to create the illusion of a very large seamless image."
1. Tiles: the baselayer
Why tiles?
There are 2 types of tiles:
Raster
3. Javascript: putting it all together
HTML/CSS Review
"HTML is the noun, CSS is the adjective & Javascript is the verb" -A very smart person
HTML uses <tags>
<img> You can use them for images </img>
<h1> Inserting words </h1>
<p> Writing a lot of words </p>
<a> Links </a>
<div> ALL SORTS OF THINGS! </div>
All we need for today: <div>
<div> defines a section/element to a web page
With Leaflet,
we just need a div called 'map'
selector = tag/class/id
selector{
property:
value;}
property = what are you styling?
value = what do you want it to be?
Example:
We have a div called 'map' in HTML
Spatial Data
What kind of data can we get?
Raster vs. Vector
We're gonna focus on vector
3 requirements:
Familiar formats: The Shapefile
Web formats:
You can convert to geoJSON!
geojson.io
Special thanks to: