This PR refactors the Sidebar/Dashboard on the map page.
Fixes #349, #365, #409
New Sidebar
The sidebar has been refactored to be a table with checkboxes. When you click on one of the 'eyes' it will toggle off the data in that row, and the map will update accordingly.
The sidebar now contains a legend of all the icon representations on the map. These share a common reference with the map icon, so will update when the map icons do.
Radius Element
Preset distances have been added to the radius element. This will allow users to quickly select a distance to measure from the chosen point.
Title card
I've changed "Magpie Dashboard" to contain the logo, the version number of the app- and a subtitle with "Services at a Glance"
Refactoring
I've refactored the sources into a factory, so that it can be easily extended in the future. Note that this shares a common linkage with layers, so updating both would be necessary for new points.
Type of change
Please select the option that best describes the changes made:
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
Changes
Adds spellcheck ignore
Refactors sidebar to be a table and checkbox
Temp changes to tailwind
Replaces checkboxes with eyes, modifies filter logic and tidies up iconbar
Greys out the icons and replaces numbers with '-' when not selected
Description
This PR refactors the Sidebar/Dashboard on the map page.
Fixes #349, #365, #409
New Sidebar
The sidebar has been refactored to be a table with checkboxes. When you click on one of the 'eyes' it will toggle off the data in that row, and the map will update accordingly.
The sidebar now contains a legend of all the icon representations on the map. These share a common reference with the map icon, so will update when the map icons do.
Radius Element
Preset distances have been added to the radius element. This will allow users to quickly select a distance to measure from the chosen point.
Title card
I've changed "Magpie Dashboard" to contain the logo, the version number of the app- and a subtitle with "Services at a Glance"
Refactoring
I've refactored the sources into a factory, so that it can be easily extended in the future. Note that this shares a common linkage with layers, so updating both would be necessary for new points.
Type of change
Please select the option that best describes the changes made:
Changes