Web Mapping Quick Start
Hi! I'm Dan. You can reach me at @danswick or dswick@ccsfgis.org.
I used to do GIS for an environmental NGO and city government. Now I work at Mapbox!
Who are you? Why are you here?
This course is about what you want to learn.
But the goals and objectives of this course remain the same regardless. By the end you should:
Be able to think critically about web maps
Understand how web maps are built
Have a semi-thorough vocabulary
Feel confident and stoked about what you've accomplished!
We'll be keeping things lighthearted throughout the class, so expect plenty of cute puppy gifs along the way
So what is a web map?
Most literally: a map on the web.
We can make maps anywhere and put them on the web...
... or we can use the web to make maps.
So what makes a map?
Maps are made of styled geographic data.
There are many geographic data formats.
They typically link shapes and locations with attributes, and sometimes encode styling.
Now, what data formats might you encounter when making a web map?
By a show of hands, which of these you have encountered already?
Shapefile
File geodatabases
CSV (comma-separated values)
KML
GeoJSON
You might also encounter geospatial databases like PostGIS or SpatiaLite that store and serve data dynamically.
All of these formats find themselves in the web mapping conversation. Often because you need to convert data between them.
When it comes to data and web mapping, another crucial part of the conversation is OpenStreetMap (OSM).
geospatial revolution video. How road maps are made --> Ushahidi and OSM for Haiti response. Start at 7m5s.
What is OpenStreetMap?
... a crowd-sourced reference map
"The Wikipedia of maps"
... a community of mappers
Map Kibera (kih-bear-uh) (http://mapkibera.org/) is a projet to map the Kibera division of Nairobi, Kenya, the largest urban slum in Africa.
Now including you!
Exercise 1: OSM
Go to OpenStreetMap.org.
Search for a place or an address.
Find the best match from Nominatim.Both nominatum and geonames results. We're going with Nominatum to keep things consistent.
Click on it to zoom there.
Toggle through the different reference layers.
Each emphasizes a different set of mappable features.
Create an account...
Two ways to edit OSM: web editor iD or advanced editor JOSM.

iD: just click edit up in the corner︎
JOSM
(let's stick with iD for today)
But what to edit? Suggestions:
Trace some buildings
Add some addresses
Add some POIs (points of interest)
To learn how to tag anything you add to the map: wiki.osm.org / wiki / Map_Features
Am I doing it the right way? Read about wiki.osm.org / wiki / Good_practice
Most important rule is to make wiki.osm.org / wiki / Good_changeset_comments
Let's give it a try!
Important things to know:
ONE. No copying from Google products!
TWO. OSM is licensed under the Open Database License. There are certain restrictions and requirements when using or modifying OSM data.
Time for advanced maneuvers.
Play MapRoulette
- OR -
Do some HOT tasks (Humanitarian OSM Team)
You know when OSM gets really cool?



When you get outside!
Some places to learn more: learnosm.org / wiki.osm.org / help.osm.org
OSM portion of this presentation borrows from OSM 101.
BREAK
Apart from the OSM project itself, why is OSM so crucial to web mapping?
Because getting data is hard.
But OSM makes it easy!You will often find yourself in need of data for a project and unable to find a comprehensive dataset. This is where OSM comes in. If OSM doesn't have the data you're looking for, you can add it yourself, then pull the newly-created data into your project from OSM. No database required and you've given back to the community!
You can download the whole planet from OpenStreetMap for free!
(that drawing by Meghan Hade)
Planet.osm
(This is not recommended. The file is huge.)
But: If you see geodata with the file extension .osm, don't panic.
OSM has its own data format.
Though it is not commonly used in GIS, an increasing number of tools support .osm files to a degree, including ArcGIS and QGIS and CartoDB.
The planet is huge, but you can download a small portion of the planet via a bounding box.
Thankfully, you can also download metro regions as shapefiles via Metro Extracts. (Here's a help guide.)
Other great sources for free data:
Open data portals!
Government agencies create and maintain lots of geodata.
Sometimes they put it online for download on an open data portal.
Open data portals typically have shapefile data and tabular data (like in CSVs).
Even outside of open data portals, the Internet at large is full of geodata.
Now that we've talked about data formats and getting data, we're basically ready to make a map, right?
What tools do people use to make quick and dirty web maps?
Google Maps
CartoDB
Mapbox
ArcGIS Online
You can take things much further with JavaScript libraries like Leaflet, D3, and many others.
LET ME STOP YOU RIGHT THERE!
It's cartography time!
In print or on the web, maps are information design.
Cartographers have been thinking about how to do that effectively in print for hundreds of years.
Too often in web mapping, design decisions are constrained by the tools available.
"Cartographers limit themselves – because of a lack of software skills or a client’s desired final product – to using pre-fabricated tools for Web map design (e.g., Google Maps, Esri’s ArcGIS Online). By the time data-organization and design decisions are considered, the potential efficacy of the map’s communication is already grossly constrained by the limitations of the tool chosen." - Ian Muehlenhaus in Going Viral: The Look of Online Persuasive Maps
Developers and mappers don't always speak the same language, which leads to poor information design decisions.
We're gonna change all that. Starting next time, we will talk more about magical languages of web mapping introduced earlier.
(Don't be intimidated!)
For the rest of today: some vocabulary and key concepts in mapping to help us think more critically about web maps.
There are several types of maps, but we can mostly break them down into two categories:
Thematic maps
and Reference maps.
"Thematic maps are data maps of a specific subject or for a specific purpose. Statistical thematic maps include a variety of different map types such as choropleth or shaded maps, dot maps, proportional symbol maps, and isarithmic maps." - U.S. Census Bureau
Some examples:
"A reference map is a map that emphasizes the geographic location of features. ... For these maps, the goal is to display a lot of different kinds of information without drawing the reader's attention to any one theme of information more than any other theme." - Esri Mapping Center
Why might you use a reference map?
Wayfinding
Transit
Navigation
Topographic
All of these map classes are well described in print cartography, but they have corollaries in web cartography as well.
Historically, web mapping has evolved without much cartographic theory.
There was Google, and then there were mashups....


HousingMaps.com, by Paul Rademacher, 2005
... which led to an explosion in special thematic maps...
... that defy classification.
Many cartographers not fond of heat maps.
The term "heatmap" is imprecise. Isopleth? Point density? Interpolation?
On the web it usually means kernel density and usually just shows population density.
Where the points are sparse or coincident, kernel density generates a meaningless blur:
Common JavaScript libraries that generate "heat maps" dynamically use zoom level as a proxy for kernel size, which makes no sense analytically.
The default color scheme is horrid. (Nicknames: "Tacky Angry Rainbow" and "Angry Fruit Salad".)
Tacky Angry Rainbow
Angry
Fruit
Salad
They arise from demand from people who don't know what they are doing, but know they want to show a lot of points on a map.
Alternative: clustering.
Entirely different (although they look similar): dot density maps.
Someone clever putting a lot of points on maps quite artfully: Eric Fischer.
We should still strive for sound cartography in mashups.
A few high level concepts from cartography, which is a visual enterprise:
Don't worry if you don't catch all of this right away. We're glossing over topics that people dedicate entire careers to. There are links along the way for you to explore later if you want more!
1. Visual variablesThe differences in map elements as perceived by the human eye. There are 7 classical categories of visual variables: position, size, shape, value, color, orientation, and texture.
A French cartographer named Jacques Bertin identified seven main categories of visual variables: position, size, shape, value, color, orientation, and texture.
Further reading on visual variables.
2. Visual hierarchyVisual hierarchy is the order in which the human eye (brain) perceives what it sees. As cartographyers, this helps us prioritize information and help guide our viewers and users through the information we've designed. How is this concept different from visual variables?
BAD


GOOD
Further reading on visual hierarchy.
3. Visual argumentUse visual elements to map relationships between map elements from one image, the base, to another image(s), the target. https://books.google.com/books?id=29uSBQAAQBAJ&pg=PA54&lpg=PA54&dq=cartography+%22visual+argument%22&source=bl&ots=u0-7yaF8aJ&sig=WncXbrfxVAjFmuxQnFDGCy-2b7I&hl=en&sa=X&ved=0ahUKEwjyhvLCptfKAhULw2MKHYLtByIQ6AEIIjAB#v=onepage&q=cartography%20%22visual%20argument%22&f=false. Not a single transfer of features or properties, but a mapping of a whole web of relations between nodes. Also visual analogy.
An important concept for web cartography is "screen real-estate".
Panning and zooming, which we will talk more about next time, are a way around all of this but.... for some maps it is overkill & potentially a cop-out.
The main thing the web brings to cartography is interactivity, which can take many forms.
In web design and development, people make entire careers out of designing for interactivity.
The field is called UI/UX, which is shorthand for user interface and user experience.
It means you think through how people who visit your site will interact with it, and you design the interface to guide the user toward the experience you want them to have.
UI/UX is a really important component in web mapping.
(Project managers creating government web portals for geospatial data, I am talking to you.)
For this reason, while it makes sense in print cartography to talk about map readers, in web cartography we talk about map users.
Next time we will explore some forms of interactivity that are standard in out-of-the-box tools.
Panning & Zooming
Info Boxes
Tooltips
Highlighting
Charts
Embedded images/video
Geocode box
"Zoom to my location" button
Animation
All these whizz-bangs are neato!
But we must use them sparingly, wisely, and with purpose.
So, you have some homework. But it's fun homework.
FIRST: Find a cool web map online and bring the link with you next week.
Think about what type of web map it is and why you think it's a cool web map.
Also think about how it could be better.
THEN: Send me an email (dswick@ccsfgis.org) and tell me what you want to learn in the next few weeks.
See you next week!
Presentation made with big