A mapping party! Photo by MapBox.
I use OpenStreetMap (OSM) heavily since I learned how to edit the map. OSM is the Wikipedia of worldwide mapping: it allows anyone to edit and contribute and allows anyone to copy and extract the data.
I edit places that lack information, fix mistakes (like how roads are drawn, [...]
A mapping party! Photo by MapBox.
I use OpenStreetMap (OSM) heavily since I learned how to edit the map. OSM is the Wikipedia of worldwide mapping: it allows anyone to edit and contribute and allows anyone to copy and extract the data.
I edit places that lack information, fix mistakes (like how roads are drawn, or typos), and add new places. This work is important to my app because what is shown on OpenStreetMap is what appears in my iOS app, the Chicago Bike Map app.
The Chicago Bike Map app map tiles currently look like the above screenshot. Before releasing the next version I will download the latest version of “planet”, which has 100% of buildings now, thanks to Ian Dees.
When I locate a place that needs more detail and I want to add it, I open JOSM.app and then, on the OpenStreetMap.org website, I click “Edit>Edit with Remote Control”. JOSM pans over to that spot and downloads all of the OSM data. It works very much like a GIS application and AutoCAD: it has points and polygons that you can move or resize. When you’re done adding features or editing the geometry or metadata of existing ones, click “Upload data”, add a message summarizing the changes you made, and hit the “Upload” button.
Screencast showing how I locate places to which to add detail and then add them with JOSM.
Your changes will be integrated in the OSM database almost immediately. The changes will appear on the live OpenStreetMap.org map tiles in minutes. The “extract services”, which take the data out and send to you as a compressed file or even ESRI shapefile, will read the “planet” file (complete OSM database) soon; some update nightly while others update weekly.
Here are the extract services I use (each one for different reasons):
- BBBike.org – nightly; allows you to select any area with a self-drawn polygon; exports in ESRI shapefile and other formats; extracts take 15-30 minutes.
- Michal Migurski’s Metro Extracts - monthly; has ~100 cities pre-extracted; this is now hosted on Smart Chicago Collaborative’s resources alongside my Crash Browser.
- GEOFABRIK - nightly; all continents, many countries and all fifty states are pre-extracted;
Events!
These are copied straight from the Smart Chicago Collaborative website. I will be at the Map-a-Thon. I’m still thinking about the Hackathon. While I can’t program in the languages required, I can write decent documentation.
OpenStreetMap Map-a-Thon
Beginning mappers are invited to be a part of a national OpenStreetMap Map-a-thon by learning how to use our tools to improve the map in your area. You can add your favorite restaurant or comic book store, a local school or hospital. During the map-a-thon we’ll walk you through the process of finding your area, creating an account, and making your first edit. With that foundation, you can go on to make an impact by adding tons of information relevant to you and your community!
Attend the Map-a-thon April 20th and 21st at 1871 on the 12th floor of the Merchandise Mart, 222 Merchandise Mart Plaza from 12 PM to 6 PM. Participants will enjoy food and drinks thanks to Smart Chicago Collaborative.
For more information about the map-a-thon and to RSVP, please visit the Meetup page for the event.
OpenStreetMap Hack Weekend
If you know your way around a compiler, feel comfortable with JSON and XML, or know the difference between an ellipsoid and a geoid, then the Hack Weekend is for you. We’re looking for those with technical know-how to help make a difference in OpenStreetMap’s core software by writing patches and new software to help make mapping faster and easier. Special thanks to Knight-Mozilla OpenNews for their support and sponsorship.
The hack weekend will be held April 27th and 28th at 1871 from 9 AM to dinner time each day.
For more information about the hack weekend, please visit the OSM wiki page for the event. Two MapBox staffers will be here. MapBox is awesome; they make TileMill which makes my iOS app possible.
On February 5, 2013, I gave a very short presentation to the Chicago GIS Network Meetup group about alternatives to Google when it comes to mapping on the web. I created the presentation and outline a couple hours before giving it and came up with this slideshow with three frames.
Google Maps and its [...]
On February 5, 2013, I gave a very short presentation to the Chicago GIS Network Meetup group about alternatives to Google when it comes to mapping on the web. I created the presentation and outline a couple hours before giving it and came up with this slideshow with three frames.
Google Maps and its data is a one-way street (or many one-way streets). Google will take data but won’t give it back.
Google Maps has all of these features, but they’re easier to manipulate when you use an alternative. Alternatives like: MapBox, TileMill, OpenLayers, OpenStreetMap (made easy with JOSM), GeoCommons – I’m sure there are plenty more.
OpenStreetMap is the Wikipedia of online mapping and geographic data. Considering switching to OSM.
For a Grid Chicago article I was writing, I wanted to draw on a map to demonstrate to readers where people were commuting and not commuting. I wanted the map to show CTA lines. I didn’t want to use a Google Maps screenshot because it would have been low resolution, and I didn’t think the [...]
For a Grid Chicago article I was writing, I wanted to draw on a map to demonstrate to readers where people were commuting and not commuting. I wanted the map to show CTA lines. I didn’t want to use a Google Maps screenshot because it would have been low resolution, and I didn’t think the styling would be appropriate.
I opened up TileMill and whipped up my own maps! I already had the base layers set up for the Chicago Bike Map app, so I duplicated that project and then added the Chicago Transit Authority and Metra train lines with data and styles prepared by OpenPlans (created for its Chicago bike sharing Shareabouts installation; download the data and styles here). Highways, the most common geographic reference point in cities, are also included on the map.
Data comes from OpenStreetMap contributors and the styling is OSM-Bright.
Go grab them on Flickr. Use them as needed but please provide attribution to “Steven Vance, OpenPlans, and OpenStreetMap contributors”.
Chicago map, with Metra
Chicago map, with CTA
Chicago map, with CTA and Metra
This interactive map was created for a Grid Chicago article to show the cities and Amtrak routes mentioned. Click and drag it around or hover your mouse on the red train station markers.
Want to create a map like that and publish it on your own website? It’s easy. I’ll show you [...]
This interactive map was created for a Grid Chicago article to show the cities and Amtrak routes mentioned. Click and drag it around or hover your mouse on the red train station markers.
Want to create a map like that and publish it on your own website? It’s easy. I’ll show you how to do it in less than 30 minutes. First, download the following files:
- TileMill application (for Mac, Windows, and Linux)
- Railroads in the United States (.zip) (which includes Amtrak routes in a separate shapefile) ~40MB
- Amtrak stations (.zip) (includes an Amtrak Cascades station in Vancouver, BC)
- State boundaries (.zip) ~40MB
- Illinois places (.zip) (these are municipalities)
All shapefiles are from the United States Department of Transportation, Bureau of Transportation Statistics’s National Transportation Atlas 2012 edition except for Illinois places, which comes from the Census Bureau’s TIGER project.
At the end of this tutorial, you’ll have a good introduction on how to find geographic data, build a map with TileMill, style the map, and publish it for the public. Your map will not look like mine as this tutorial doesn’t describe how to add labels or use the hover/info feature.
Tutorial to make Amtrak Illinois map
- Unzip the four ZIP files you downloaded and move their contents into a folder, like /Documents/GIS/Amtrak Illinois/shapefiles. This is your project folder.
- Install TileMill and open it.
- Set up a project. In the Projects pane, click “New Project”. In the filename field, title it “amtrak_illinois”. Ensure that the checkbox next to “Default data” is checked – this shows a world map and helps you get your bearings (but it’s not absolutely necessary).
- Get familiar with TileMill’s layout. Your new project will open with the map on the left side and your Carto style code on the right side. There are four buttons aligning the left edge of your map. From top to bottom they are: Templates, Font list, Carto guide, and Layers.
- Add a layer. We’re going to add the four shapefile layers you downloaded. Click the “Layers” button and then click “Add layer”. In the ID field, type in “amtrak_routes”. For Datasource, browse to your project folder and find “amtrak.shp” – this file has the Amtrak route lines. Then click “Done”. Click “Save & Style”.
- Style that layer. When you click “Save & Style” after adding a layer, your attention will be called to the Carto style code on the right side of TileMill. A section of code with the “amtrak_routes” #selector will have been inserted with some default colors and styles. If you know CSS, you will be familiar with how to change the Amtrak routes line styles. Change the “line-color” to “#000″. After “line-color”, add a new line and insert “line-opacity: 0.5;”. This will add some transparency to the line. Press the “Save” button above the code.
- Add remaining layers. Repeat Step 5 and add 3 more layers: “amtrk_sta.shp” (ID field: “amtrak_stations”), “state.shp” (ID field: “states”), and “tl_2012_17_place.shp” (ID field: “illinois_cities”).
- Hide bus stations. The Amtrak stations layer shows bus and ferry stations as part of Amtrak’s Thruway connections. You probably don’t want to show these. In your Carto style code, rename the #selector from “#amtrak_stations” to “#amtrak_stations[STNTYPE='RAIL']“. That makes the following style code only apply to stations with the “rail” type. Since there’s no style definition for things that aren’t of that type, they won’t appear.
Screenshot of my map.
Prepare your map for uploading
TileMill has many exporting options. You can save it as MBTiles and publish the map for free using MapBox (TileMill’s parent), or you can export it as image files (but it won’t be interactive), or you can display the map using the Leaflet JavaScript map library (which I use for the Chicago Bike Map app). This tutorial will explain how to export MBTiles and upload to MapBox, the server I’m using to display the map at the top of this page.
- Change project settings. To upload to MapBox, you’ll have to export your project as MBTiles, a proprietary format. Click the “Export” button above your Carto style code and click “MBTiles”. You’ll be asked to provide a name, description, attribution, and version. Input appropriate text for all but version.
- Adjust the zoom levels. Adjust the number of zoom levels you want (the more you have the longer it takes to export and upload your project, and you might exceed MapBox’s free 50 MB account limit). My map has zoom levels 8-11.
- Adjust the bounds. You’ll then want to draw your bounds: how much of the map’s geographic extents you want to export. Zoom to a level where you can see the entire state of Illinois in your map. Hold down the Shift key and drag a box around the state, plus a buffer (so viewers don’t fall of your map when they pan to the edges).
- Export your map. Click Export and watch the progress! On a four-year-old MacBook it took less than one minute to export the project.
- Bring the export to your project folder. When export finishes, click the “Save” button and browse to your project folder. Click the file browser’s save button.
- Upload to MapBox. Login to MapBox’s website and click “Upload Layer”. Browse to your project folder, select the .mbtiles folder, and click “Upload file”. Upon a successful upload, your map will display.
- Embed it in your website. Click the “Share” button in the upper left corner of your map and copy the embed code. Paste this into the HTML source code of a webpage (or in a WordPress post) and save that (I’m not going to provide instructions on how to do that).
Now you know how to find geographic data, build a custom map using the TileMill application, begin to understand how to style it, and embed your map for the public on a website or blog.
N.B. I was originally going to use QGIS to build a map and then publish a static image before I realized that TileMill + MapBox (the website) can build a map but publish an interactive feature instead of a static image. I’m happy I went that route. However, I did use QGIS to verify the data and even create a new shapefile of just a few of the key train stations on the Lincoln Service (the centerpiece of my Grid Chicago article).
About Steven Can Plan
I started this blog in 2007 as the writing assignment for an introductory urban planning class at UIC. It's about cities (mainly Chicago), GIS oftentimes, and transportation (mainly bicycling). Learn more about me, Steven Vance. I also write for Streetsblog Chicago.
Steven Can Plan is hosted on Dreamhost.
Chicago Bike Map App

The Chicago Bike Map app is a bike and street map stored entirely in your iOS device – no data connection required. The map is designed to look much like the City of Chicago's official printed and online bike map. The app works on iPhone, iPod touch, and iPad.
- Download from the iTunes Store
- Demo the app online
- On iOS, search for "chicago bike map" in the App Store app
Highly Recommended Bike Products

So far I haven't had a flat with this tire. I've used Continental Gatorskin and Panaracer T-Serv, both of which have had flats (same Chicago streets). The Gatorskin has less tread than both, and wears to a slick surface faster.

Brooks B67 leather sprung saddle
So far my longest trip was 40 miles on this saddle. It molds to your butt like Birkenstock sandals mold to your feet. The springs make the bike ride a little more comfortable and more fun (weird, because you bounce up and down on them). It also looks gorgeous. Comes in 3 colors - I got black.

Detours Toocan utility pannier
I've used this pannier to carry groceries, books, my laptop, clothing, anything. I like it because it's stylish (but also "normal" looking at the same time), stands up on its own, is extremely durable, and has the most universal attachment system: two hooks.
Advertisement
Books

Instant City: Life and Death in Karachi by Steve Inskeep
I reviewed this book that the publisher sent to me.

Traffic: Why We Drive the Way We Do (and What It Says About Us) by Tom Vanderbilt
As someone who doesn't like driving, but believes that cars can be efficient in moving groups of people and goods, this is my favorite book.

The Death and Life of Great American Cities (50th Anniversary Edition) (Modern Library) by Jane Jacobs

Making Maps: A Visual Guide to Map Design for GIS by John Krygier PhD, Denis Wood PhD
If you are going to make a map, whether it be hand drawn or digital, you should really give this book a read. Then read it every time you make a map. It will help make sure your maps are laid out sensibly, in a way that others can easily read, and that it doesn't include fluff or unnecessary data.
Transit & Transportation











