tsdataclinic / scout

Scout is a data discovery tool to explore open data portals worldwide.
https://scout.tsdataclinic.com
Apache License 2.0
33 stars 12 forks source link

Issue #373 #376

Closed minhnguyenxuan60 closed 1 year ago

minhnguyenxuan60 commented 1 year ago

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.

image

Example of what it looks like whne click on map under visualize tab for a dataset in New York.

image

Related Issues

N/A

Test Plan

  1. Go to Explore
  2. Choose a city (Chicago or New York)
  3. Click on any dataset
  4. Click on Visualize tab
  5. Change to map
  6. 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

minhnguyenxuan60 commented 1 year ago

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.