Skip to main content

MapEngineErrorReason

Why a map failed: its engine could not start without WebGL, the engine or its basemap could not load (load-failed), the engine stopped working after it had loaded, or toImage could not produce an image (export-failed). interface-load-failed is not the engine's or the basemap's failure: part of the interface that MapView fetches apart did not load, so no map is shown. It is not in 0.2.0 or any earlier release.

This is a type alias exported by @mapcairn/sdk/browser, checked against version 0.2.0.

Signature​

import type { MapEngineErrorReason } from "@mapcairn/sdk/browser";

type MapEngineErrorReason = "webgl-unavailable" | "load-failed" | "interface-load-failed" | "stopped" | "export-failed";