Skip to main content

BasemapAvailabilityProvider

Keeps which basemaps are not working, for the picker (which disables their tiles) and for the app (which marks a basemap whose tiles all failed). ServicesProvider mounts it, so every component below can read it.

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

Signature​

import { BasemapAvailabilityProvider } from "@mapcairn/map";

function BasemapAvailabilityProvider(input: {
readonly children: ReactNode;
}): JSX.Element;

Parameters​

  • { children, }
  • input ({ readonly children: ReactNode; })

Returns​

JSX.Element

Source: packages/map/src/services/basemapAvailability.tsx:44