Issues with addvelocity() function in leaflet.extras2 package onto leaflet map

Hi, I am trying to use the AddVelocity() function in the leaflet.extras2 package in R so that I can add wind velocity visualization data to my leaflet map. I have found JSON u and v wind data from NOAA with a prepared link, but I cant seem to successfully add my wind velocity data using the content=. Any suggestions on how to format the json data so that AddVelocity can process it into an animation? The code below runs in R, but no wind arrows or animation is produced. Any help would be much appreciated!


leaflet() %>%
addTiles(group = "base") %>%
setView(-71,42,5) %>%
leaflet.extras2::addVelocity(content =content ,group = "velo", layerId = "veloid")

Site with wind data :[(2011-05-07T00:00:00Z)][(34.625):(46.875)][(283.125):(295.375)],tmp2m[(2011-05-07T00:00:00Z)][(34.625):(46.875)][(283.125):(295.375)]&.draw=vectors&.vars=longitude%7Clatitude%7Ctmpsfc%7Ctmp2m&.color=0x000000&.bgColor=0xffccccff


This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.