AddProtocolResponseData
AddProtocolResponseData =
ArrayBuffer|ImageBitmap|HTMLImageElement|string|object
Defined in: util/config.ts:13
The data a protocol handler resolves with. Which member is expected follows RequestParameters.type:
'arrayBuffer': anArrayBuffer, for example a non-compressed pbf vector tile.'json': the parsed JSON value.'string': a string.'image': anImageBitmaporHTMLImageElement, used as is, or anArrayBufferof encoded image bytes, which are decoded first. A handler that already holds decoded pixels should return them as anImageBitmap, since encoding them only makes the library decode them again.