drawMap()

API reference for drawMap() in @erlcjs/map.

Renders a map using the specified options are returns it as a buffer.

Signature:

declare function drawMap(options: MapOptions): Promise<Buffer<ArrayBufferLike>>;

#Parameters

Parameter

Type

Description

options

MapOptions

What to include in the map.

Returns:

Promise<Buffer<ArrayBufferLike>>

Image Buffer of the map.