For the Alaska Wildfires map's "Graph large fire seasons" button, we added a new button element to the common map template (map.html) shared by all maps and made the button's visibility conditional based on a variable in the map's scope so it would be hidden on other maps.
The RCP map's "How to use these data in R" button is placed in the menu dynamically with JavaScript from the RCP's map's controller.js so it doesn't pollute the global map template. This is probably the more sane approach.
For the Alaska Wildfires map's "Graph large fire seasons" button, we added a new button element to the common map template (
map.html
) shared by all maps and made the button's visibility conditional based on a variable in the map's scope so it would be hidden on other maps.The RCP map's "How to use these data in R" button is placed in the menu dynamically with JavaScript from the RCP's map's
controller.js
so it doesn't pollute the global map template. This is probably the more sane approach.