Skip to content

flow_layer

Stable

Particles that follow a vector field, such as wind or ocean currents, with trails coloured by speed, and the flow at a clicked point.

The 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 the direction it goes towards); see Events above.

  • flow:error

    The field image could not be loaded; see Events above.