Add a new field (city) into Dataframe so that we can tell which city the current dataset is inside MapViz. Change index.tsx and socrataResultsToDataframe.ts files accordingly so that we can get the city abbreviation. Add a json file to store location of each city (for now, it only has Chicago and New York).
Screenshots or Videos (if applicable)
Example of what it looks like when click on map under visualize tab for a dataset in Chicago.
Example of what it looks like whne click on map under visualize tab for a dataset in New York.
Related Issues
N/A
Test Plan
Go to Explore
Choose a city (Chicago or New York)
Click on any dataset
Click on Visualize tab
Change to map
It should zoom in whichever city of the dataset that you choose on step 2 (only works for Chicago and New York for now)
Checklist Before Requesting a Review
[ ] I have performed a self-review of my code
[ ] My code follows the Style Guidelines and Best Practices outlined in the project wiki
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made changes to the documentation, if applicable
[ ] My change generates no new warnings or failed tests
[ ] If it is a core feature, I have added thorough tests
Hi Juan, thank you for reviewing my pull request. I have changed my code as you requested. Please tell me if there is anything else that I need to change.
Summary
Add a new field (city) into Dataframe so that we can tell which city the current dataset is inside MapViz. Change index.tsx and socrataResultsToDataframe.ts files accordingly so that we can get the city abbreviation. Add a json file to store location of each city (for now, it only has Chicago and New York).
Screenshots or Videos (if applicable)
Example of what it looks like when click on map under visualize tab for a dataset in Chicago.
Example of what it looks like whne click on map under visualize tab for a dataset in New York.
Related Issues
N/A
Test Plan
Checklist Before Requesting a Review