Skip to main content

createMapLibreMapAdapter

Builds a fresh MapLibre adapter, one for each map. It makes no request: the engine, its stylesheet and the worker load when the first map mounts. A host passes it as the Services map factory.

This is a function exported by @mapcairn/adapter-maplibre, checked against version 0.2.0.

Signature​

import { createMapLibreMapAdapter } from "@mapcairn/adapter-maplibre";

function createMapLibreMapAdapter(options: MapLibreMapAdapterOptions): MapAdapter;

Parameters​

  • options (MapLibreMapAdapterOptions)

Returns​

MapAdapter

See also​

Source: packages/adapter-maplibre/src/MapLibreMapAdapter.ts:764