Skip to content

madisonbikes/madison_bike_week_map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map of possible locations for Madison Bike Week. This is a fork from the map of Madison bike shops and repair stations for the Madison Bikes website, using Leaflet and RMarkdown.

Data

Locations were manually geocoded and entered into a Google Sheet.

Deployment

The Madison Bikes website runs on Wordpress, which means there are some manual steps required to set up the map.1

Initial set-up

  1. Set the YAML header to output a html_document and knit
  2. Copy the lib folder into your Wordpress site root directory via ssh (i.e. the libraries will be madisonbikes.org/lib)
  3. Create a new page on Wordpress, wherever is most appropriate in the hierarchy. For this page, it is https://www.madisonbikes.org/events/bikeweek/approved-locations/
  4. Add an html block in the Wordpress editor
  5. Copy all library references from the map.html <head> section into the block (starting from <script src="lib/jquery-1.12.4/jquery.min.js"></script> and ending at <link href="lib/fontawesome-4.7.0/font-awesome.min.css" rel="stylesheet">)
  6. Manually adjust the paths to point to the right lib directory, which is located at the site root level (e.g. <script src="/lib/jquery-1.12.4/jquery.min.js"></script>)
  7. Copy all content between the <body> ... </body> tags into the block after the <script>s.

Updates

  1. Change YAML header to html_fragment and knit
  2. Copy map.html content and paste it into the <body> section on Wordpress

Footnotes

  1. If anyone can think of a more automated solution, let me know.

About

Map of Madison bike shops and repair stations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.5%
  • CSS 2.7%
  • HTML 0.8%