Post-processing operation to overlay SVG icons on an image
Supports query parameters: overlay, ovl, ofg, overlayFg, obg, overlayBg, fg, bg, pixelRatio, anchor, ow, oh, ox, oy
const op = new OverlaySvg({ marker: '<svg>...</svg>' });// Use with params: ?overlay=marker&ow=32&oh=32&anchor=center Copy
const op = new OverlaySvg({ marker: '<svg>...</svg>' });// Use with params: ?overlay=marker&ow=32&oh=32&anchor=center
Create a new SVG overlay operation
Record mapping icon IDs to SVG strings
Optional identifier for debugging
Optional
Unique identifier or descriptive name
Execute the post-processing operation
Canvas 2D rendering context
Query parameters from the image request
Post-processing operation to overlay SVG icons on an image
Supports query parameters: overlay, ovl, ofg, overlayFg, obg, overlayBg, fg, bg, pixelRatio, anchor, ow, oh, ox, oy
Example