Created by: shuklaayush
Description of PR This PR will
- Increase map sizes by making them span entire width of the section
- Cache maps which have previously been loaded. Toggle the display style of extra maps to 'none' when they're out of view, instead of removing them from SVG
- Add zoom animation to transitions between country and state maps
- Move legend below map. Use d3-scale instead of manual interpolation
- Move the district information text above the map
- Sneak in uniform scaling disabled by default
PS : I'm aware that animations stutter on Chromium-based browsers on Android. This seems to me like a bug in how SVGs are rendered in Chromium. The behaviour's better in Chrome Canary. Since I don't have the slightest idea as to how debugging is done in Chrome/Android, any help is much appreciated.
Type of PR
-
Bugfix -
New feature
Relevant Issues
Fixes #57 (closed) (finally) , fixes #504 (closed), fixes #785 (closed) (somewhat), fixes #1045 (closed)
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone