Skip to main content

detailUrl

The URL of a feature's detail, or null when the layer has none or the feature's URL is not https on one of the origins the definition declares. The URL comes from the provider's data, so it is checked before any request is made, not only by the Content-Security-Policy.

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

Signature​

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

function detailUrl(definition: LayerDefinition, feature: LayerFeature): string | null;

Parameters​

  • definition (LayerDefinition)
  • feature (LayerFeature)

Returns​

string | null

See also​

Source: packages/core/src/layers/feed.ts:250