Use a custom style layer to render custom WebGL content.
Add an animated icon to the map that was generated at runtime with the Canvas API.
Add a canvas source to the map.
Add an icon to the map that was generated at runtime.
Dynamically generate a missing icon at runtime and add it to the map.