This project visualizes every track in Iowa which has been mapped in OpenStreetMap. The vast majority of the tracks were identified and mapped by me using a combination of Overpass queries and the Strava Heatmap. View the data at https://karsonkevin2.github.io/Iowa-Tracks/
- Add data to OpenStreetMap
- Fork this project
- Use Overpass Turbo to search for data. For this example,
[out:json][timeout:25];
{{geocodeArea:iowa}}->.searchArea;
(
relation["leisure"="track"]["sport"="athletics"]["athletics"!~".*"](area.searchArea);
relation["leisure"="track"]["sport"="running"]["athletics"!~".*"](area.searchArea);
);
out body;
>;
out skel qt;
- Select export and then download the GeoJSON file
- Use Mapshaper to convert the GeoJSON file into a TopoJSON file
- Rename both of the files to pools and overwrite the files in your forked directory
- Set up a page for the project, utilizing the GitHub tutorial
- Visit https://YOURNAMEHERE.github.io/REPOSITORYNAME/
- Not all objects have a
surface=*
tag. The rendering will be based on- No
surface=*
= tan surface=concrete
orsurface=asphalt
= greysurface=tartan
= ?color?
- No
- Rubberized tracks will be tagged
surface=tartan
and have acolour=*
colour=*
will neatly map onto an html colour- If
colour=navy
color is remapped to blue - If
colour=*
is not specified, it will default to black
- All tracks will be mapped as inner/outer relations. Tracks mapped as ways and more complicated relations will cause errors.