ua-snap / mapventure

Frontend for maps built with GeoServer
3 stars 0 forks source link

Decide on a standard approach for map-specific menu buttons #421

Open cstephen opened 7 years ago

cstephen commented 7 years ago

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.