Having trouble with reactive and leafletProxy, observe function in Rshiny when creating leaflet application

35 views Asked by At

Using forms of if statements, observe and leafletProxy, but I can't seem to get it working. I have two seperate database one of them is PLOT and the other one is ISTANBUL_OIM. PLOT has longitude, latitude, KUME_NO and ENV_YILI. KUME_NO is basically sample plot number and ENV_YILI is the year of inventory collection. ISTANBUL_OIM is also the border of Forestry Districts as multiple polygons.

Basically, I want to make two conditions which are based on sample plot number (KUME_NO) as a dropdown menu and group check box menu based on inventory year (ENV_YILI), and then if I select a particular condition my leaflet map to zoom to selected both KUME_NO number and ENV_YILI according to the inputs.

You can find the database

Image 1: the interface I want to make

Image 2: zoom according to the condition I want to put in my interface

I wanted to start with at least running KUME_NO condition but I get this error: Warning: Error in resolveFormula: argument "data" is missing, with no default.

Here is my app R code

Sorry I can't copy the code chunk here because I get a Your question appears to be spam. warning, so I'm sharing the app.R app directly via google drive link.

0

There are 0 answers