Skip to main content

resolveBasemapFor

Turns a stored or linked id into a basemap for a theme. No id (nothing chosen), or one that names no basemap in the catalogue (a removed one, or the retired "auto" choice), gives the theme's default.

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

Signature​

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

function resolveBasemapFor(catalogue: BasemapCatalogue, id: string | null | undefined, theme: ResolvedTheme): BasemapDefinition;

Parameters​

  • catalogue (BasemapCatalogue)
  • id (string | null | undefined)
  • theme (ResolvedTheme)

Returns​

BasemapDefinition

See also​

Source: packages/core/src/basemaps/basemaps.ts:297