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.
Locations were manually geocoded and entered into a Google Sheet.
The Madison Bikes website runs on Wordpress, which means there are some manual steps required to set up the map.1
- Set the
YAML
header to output ahtml_document
and knit - Copy the
lib
folder into your Wordpress site root directory viassh
(i.e. the libraries will bemadisonbikes.org/lib
) - 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/
- Add an
html
block in the Wordpress editor - 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">
) - 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>
) - Copy all content between the
<body> ... </body>
tags into the block after the<script>
s.
- Change
YAML
header tohtml_fragment
and knit - Copy
map.html
content and paste it into the<body>
section on Wordpress
Footnotes
-
If anyone can think of a more automated solution, let me know. ↩