Skip to main content

MapImageExportError

What toImage rejects with when a requested size or view cannot be honoured. It is a MapEngineError with reason export-failed, so a caller that only handles that still works, and kind says which of the three it was.

This is a class exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { MapImageExportError } from "@mapcairn/core";

class MapImageExportError extends MapEngineError

Constructors​

(constructor)​

constructor(kind: MapImageExportErrorKind, message: string);

Constructs a new instance of the MapImageExportError class

  • kind (MapImageExportErrorKind)
  • message (string)

Properties​

kind​

readonly kind: MapImageExportErrorKind;

Why the image was refused or not drawn: invalid, too-large or timed-out.

See also​

Source: packages/core/src/ports/errors.ts:157