markers

The markers namespace animates billboards that travel along edges — planes on flight routes, packets on a network, attack meteors on a threat map. Markers can be icons from the built-in atlas or shader-drawn heads (a directional dart or a glowing comet with a trailing tail), and they loop on a configurable duration.

It holds config only; the engine owns the per-frame clock. Drive it imperatively here, or declaratively with the <MarkerLayer> component.

api.markers.set(markers);                          // static set, loops forever
const handle = api.markers.flights(schedule, { loopMs: 250000 }); // departure schedule
api.markers.stop(handle);                          // stop a schedule
api.markers.clear();                               // remove everything

For the full MarkerSpec reference, flight schedules (FlightSpec / computeAirborne), comet trails, and the declarative component, see the Markers guide.

Methods