on
on: (type: string, handler: (e: { id: string }) => void) => void
off
off: (type: string, handler: (e: { id: string }) => void) => void
addImage
addImage: (name: string, image: any, options?: { pixelRatio?: number }) => void
OptionalupdateImage
updateImage?: (
name: string,
image: any,
options?: { pixelRatio?: number },
) => void
OptionalremoveImage
removeImage?: (name: string) => void
OptionalhasImage
hasImage?: (name: string) => boolean
OptionaltriggerRepaint
triggerRepaint?: () => void
OptionalgetCanvas
getCanvas?: () => HTMLCanvasElement
Optionalcanvas
canvas?: HTMLCanvasElement
Interface representing a MapLibre GL JS map instance or compatible map object with image management capabilities