James Seppi
August 4, 2015
Presentation by James Seppi
Software Developer at TNRIS, part of TWDB
Twitter: hydrologee
Viewable at jseppi.github.io/intro-to-web-maps/
Source code at github.com/jseppi/intro-to-web-maps/
A cartographic map on a web page
Can move around (pan) and zoom in and out
Typically streets or satellite imagery
Sometimes with a simplified basemap and additional data overlaid
Found everywhere these days:
News sites, food review sites, travel booking sites, data explorers, etc.
Maps are a valuable tool for communication
Power in communication
Maps show borders, areas of conquest, impacts of policies, natural phenomenon, etc.
By understanding maps and cartography, we have the power to see biases and think critically
MapQuest in 1996
Driving directions, on the Internet, printable
WHOA!
(though so was everything online back then)
Required a full page refresh to pan or zoom
9 years later, in early 2005
Google Maps!
Fluid, continuous panning and zooming
Tiles are 256 x 256 pixel images
When positioned next to each other, they look like one big image
Tiles are rendered at different zoom levels to show different levels of detail
More detail -> More tiles
The number of tiles increases exponentially at each zoom level
Typically the zoom levels are 0 through 19
Zoom level 0: The entire planet in a single tile
Zoom level 1: The entire planet in 4 tiles
Zoom level 2: 16 tiles
...
Zoom level 13: 67,108,864 tiles
...
Zoom level 19: 4^19 tiles
Tiles generally are just for the background or basemap
Use vectors to overlay points, lines, and polygons
Maps with overlaid data are often called thematic maps
Leaflet (Personal Favorite)
CartoDB is an online service for geospatial data visualizations
Or as most people call them, "maps"
Built on Open Source technology like PostGIS and PostgreSQL
Easily import data from a variety of formats (spreadsheets, Shapefiles, KML)
Visualize the data in a web map with presets or customized options
Perform simple or complex analyses
Free for up 50 MB of (converted) data
Sign up at cartodb.com/signup for today's exercises
Natural Earth Data - naturalearthdata.com
This is a great resource for general cartographic data, and it's public domain!
Download Natural Earth Data Populated Places Simple Shapefile: goo.gl/QtJiCn
Open cartodb.com and sign-in
Drag the downloaded .zip
file into your CartoDB Dashboard
Explore the Data View, note the different columns
Explore the Map View, experiment with the Wizards. Try making a Bubble Map.
Click Visualize, then click Publish. Now you have a shareable link!
Download Map Academy's Counties Shapefile: acdmy.org/d/counties.zip
Drag the downloaded .zip
file into your CartoDB Dashboard
Use the Wizard to make a Choropleth Map based on population. Hint: Use pop_sqkm
Visualize and Publish your map once again.
Download All Earthquakes for the Last 30 Days from USGS: goo.gl/hhoAyK
Import the .csv
into your CartoDB account (drag and drop)
Experiment with the Wizard tab. Try Heat Map, Intensity, Density, maybe even Torque.
If time, try finding your own data or using the CartoDB Data Library
Or check out the CartoDB Map Academy: academy.cartodb.com