website icon indicating copy to clipboard operation
website copied to clipboard

[Map] Enable AA1, AA2 place types in Brazil maps

Open ajaits opened this issue 1 year ago • 0 comments

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:

  1. Got to maps explorer
  2. Select place 'Brazil'
  3. 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

ajaits avatar Oct 26 '23 18:10 ajaits