urban-toolkit / utk

A Grammar-based Framework for Urban Visual Analytics
http://urbantk.org
MIT License
67 stars 6 forks source link

Fix search widget #5

Open GMMULLER opened 1 year ago

GMMULLER commented 1 year ago

While I was changing things around and reshaping the grammar to work as a dashboard the search widget broke.

Component file: src/utk-map/ts/src/reactComponents/SearchWidget.tsx

It is just a matter of seeing where the widget is used and check what is out of place.

ridhu-web commented 1 year ago

Hi ,

Is this the search widget image

mentioned in the issue

GMMULLER commented 1 year ago

Hey,

No, for you to see the search widget you have to add it next to the grammar widget in the grammar. Sorry, I forgot to mention that:

image

You are going to see a floating research box with a place holder "Search place". This search tool is used to position the camera to some place on Earth. So if you type "Central Park" the camera should be positioned on central park (even if you don't have data loaded for central park).

image

GMMULLER commented 1 year ago

Just a reminder. If you want to start working on this issue please fork the repository to not make the changes directly on the master branch. Then, after you are done, do a "pull request".

GMMULLER commented 1 year ago

The way you add the research widget changed a little bit. Please refer to the examples in the Readme to get more information.