Optional
animate?: booleanWhether the canvas source is animated. If the canvas is static (i.e. pixels do not need to be re-read on every frame), animate
should be set to false
to improve performance.
true
Optional
canvas?: string | HTMLCanvasElementCanvas source from which to read pixels. Can be a string representing the ID of the canvas element, or the HTMLCanvasElement
itself.
Four geographical coordinates denoting where to place the corners of the canvas, specified in [longitude, latitude]
pairs.
Source type. Must be "canvas"
.
Options to add a canvas source type to the map.