Added validation process for coordinates and geo key values during map enrichment process
Test results:
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.
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.
Changes:
Map Widget
MapDomainControls
- replacedeligibleDomainValues
withvalidMapGroupKeys
which restored the process of creating a separategeo_ca_fsa
column when having apostalcode
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.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.