datadiversitylab / BarrioMap

https://viz.datascience.arizona.edu/barriomap/
MIT License
0 stars 1 forks source link

Enable numeric input for particular scales #7

Closed cromanpa94 closed 1 year ago

cromanpa94 commented 1 year ago

Allow users to define their particular scale level

rog-SARTHAK commented 1 year ago

commit 25ac4b7

Addressed in commit 83596e8

Steps:

Made UI function changes for a Custom box

custom text

  conditionalPanel(
    condition = "input.scale == 'custom'",
    textInput("custom_scale", "Enter a custom scale", value=3)
  )

Modified if else statement in observe function.

Set setView of observe function to be the only setView.