flow_layer
StableParticles that follow a vector field, such as wind or ocean currents, with trails coloured by speed, and the flow at a clicked point.
No example yet
It runs in the wind and ocean currents scenario, on real data. Its events and attributes are listed here.
See its attributesThe events this component sends to the LiveView, as the library documents them. Each arrives in handle_event/3.
-
flow:clicked
The map was clicked where the layer draws: the flow there (
u,v,speed, and thedirectionit goes towards); see Events above. -
flow:error
The field image could not be loaded; see Events above.