Component: MapLayersComponent
A component to encapsulate the map layer options is required. This component will allow the primary base layer to be chosen, as well as allow the user to toggle various additional layers.
Acceptance Criteria:
- Should accept input
baseLayers
in the form of a list ofBaseLayer
s - Should accept input
currentBaseLayer
in the form of a singleBaseLayer
- Should accept input
showPlateBoundaries
in the form of aboolean
- Should accept input
showUSFaults
in the form of aboolean
- Should accept input
showUSHazard
in the form of aboolean
- Should display a box containing a list of base layer radio options
- Should bind the
BaseLayer
input listbaseLayers
- Should check option when rendered BaseLayer matches
currentBaseLayer
- Should check option when rendered BaseLayer matches
- Should expose output
baseLayerChanged
ofBaseLayer
- Should emit output event on selection of base layer in list
- Should bind the
- Should display a box containing three check boxes for optional layers
- Should display "Plate Boundaries" option, bound to
showPlateBoundaries
- Should display "U.S. Faults" option, bound to
showUSFaults
- Should display "U.S. Hazard" option, bound to
showUSHazard
- Should expose output
plateBoundariesToggled
output, emitted when checkbox changed - Should expose output
usFaultsToggled
output, emitted when checkbox changed - Should expose output
usHazardToggled
output, emitted when checkbox changed
- Should display "Plate Boundaries" option, bound to