mathedjoe / animaltracker

Visualize and analyze GPS data for cows (and other animals).
5 stars 6 forks source link

Polygon Function not working #70

Open arispes opened 3 years ago

arispes commented 3 years ago

The polygon function does not work when importing a .zip dataset into AnimalTracker (v. 0.2.0).

run_shiny_animaltracker()

Listening on http://127.0.0.1:4604 Warning: Error in shinyjs::js$removePolygon: attempt to apply non-function 45: 2: runApp 1: run_shiny_animaltracker

ttsukianto commented 3 years ago

Sorry for the late reply, we've been having a few issues since the shinyjs package was updated to v2.0.0. I've tried pushing a fix to master.

arispes commented 3 years ago

No worries. I updated to v. 0.2.0 and got this message after using the square polygon tool to isolate data.

Listening on http://127.0.0.1:7215 Warning: Error in shinyjs::js$removePolygon: attempt to apply non-function 45: 2: runApp 1: run_shiny_animaltracker

arispes commented 3 years ago

After importing a new .zip dataset with 10 files, and then selecting all cows, I'm not able to draw a polygon to exclude data outside the polygon. Both the square and polygon drawing features lock up when I attempt to draw boundaries. 10Files.zip

ttsukianto commented 3 years ago

It appears that the browser runs into performance issues when plotting too many points, so we're planning to downsample the number of points plotted (set a maximum number of points that can be changed by the user, default = 1000) and then draw a line connecting the points per animal.

ttsukianto commented 3 years ago

@arispes I've tried pushing a fix to master.