website
website copied to clipboard
[Map] Enable AA1, AA2 place types in Brazil maps
Describe the bug
Enable place types AA1, AA2 for Brazil maps
To Reproduce
URL: https://autopush.datacommons.org/tools/map#%26sv%3DCount_Person%26pc%3D0%26denom%3DCount_Person%26pd%3Dcountry%2FBRA%26ept%3DAdministrativeArea2 Browser:
Steps to reproduce the behavior:
- Got to maps explorer
- Select place 'Brazil'
- in the place type selector, expect to see Administrativerea1, AdministrativeArea2, but only IPCCPlace_50 is shown
Expected behavior
Enable AA1, AA2 in place type selector for Brazil, similar to India.
Screenshots
https://screenshot.googleplex.com/4Ue7fxjRVixZPzL
Additional context
In the website repo, extend AA1_AA2_PLACES to allow country/BRA https://github.com/datacommonsorg/website/blob/3c59c1b11bbacf6f79af546afd9ec9a2fe06599a/static/js/tools/map/util.ts#L115