To run in localhost:
cd /trail-maps
http-server -p 8084
To create a new map:
- Import GPS track into geojson.io
- Draw over GPS track as desired
- Run track through smoothing codepen (if desired)
- Replace original geojson.io track with smoothed one
- Add points in geojson.io
- If those points have counterpoints in marker-list.js, they will get imported nicely (e.g.
entrance
becomestrailhead
), otherwise, they will be basic points - If desired, give points a name attribute to be shown with the marker
- Divide the trails into segments; give them names and miles as properties
- Save the geojson from geojson.io to the geojsons folder (example of geojson.io finished map)
- Add info about the trail to list.js
- Push the changes to github master branch to update the site
To edit an existing map:
- Open the existing map from
geojsons
in geojson.io - Follow steps for creating a new map
Trail colors & widths:
- #03763a 4: unpaved
- #6f6f6f 6: paved wide path
- #6f6f6f 4: paved sidewalk-width path
- #6f6f6f either width: stairs (use
"style": "stairs"
) - #a1a1a1: gravel
- #e5ca3a area: beach
- #55d391 area: community garden
- #555555 area: parking