EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] Map - geo validation; fix MapDomainControls to use again validMapGroupKey #109

Closed geoerika closed 2 years ago

geoerika commented 2 years ago

Changes:

Map Widget

  1. Added validation process for coordinates and geo key values during map enrichment process Test results:
Screen Shot 2022-03-09 at 8 10 06 PM Screen Shot 2022-03-09 at 8 10 50 PM
  1. MapDomainControls - replaced eligibleDomainValues with validMapGroupKeys which restored the process of creating a separate geo_ca_fsa column when having a postalcode column. The example below has already a geocohort_fsa column, but was changed to create in this case an extra fsa column for testing purposes. The final code creates the extra fsa column only if there is none present already. Screen Shot 2022-03-10 at 1 29 56 PM

Observation: @vxsl Noticed in the second screenshot, when the map loads for the first time, the use-transform-data hook seems to be running twice.

github-actions[bot] commented 2 years ago

📚 Storybook preview (updated to 9202a9ea9db6d93827ab0f4b172553b7843619f3)