# 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

```ts
import { detailUrl } from "@mapcairn/core";
 
function detailUrl(definition: LayerDefinition, feature: LayerFeature): string | null;
```

## Parameters

- `definition` (`LayerDefinition`)
- `feature` (`LayerFeature`)

## Returns

`string | null`

## See also

- [`LayerDefinition`](https://docs.mapcairn.com/api/core/LayerDefinition.md)
- [`LayerFeature`](https://docs.mapcairn.com/api/core/LayerFeature.md)

Source: [packages/core/src/layers/feed.ts:250](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/feed.ts#L250)
