# identifyRequestUrl

The URL a layer source asks for a tap: [`identifyUrl`](https://docs.mapcairn.com/api/core/identifyUrl.md), refused as a
typed error when it cannot be built or is not `https`. Every
`LayerSource` calls this, so each refuses the same requests before it
sends anything.

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

## Signature

```ts
import { identifyRequestUrl } from "@mapcairn/core";
 
function identifyRequestUrl(definition: IdentifiableLayerDefinition, controls: ControlValues, now: number, at: IdentifyTarget): string;
```

## Parameters

- `definition` (`IdentifiableLayerDefinition`)
- `controls` (`ControlValues`)
- `now` (`number`)
- `at` (`IdentifyTarget`)

## Returns

`string`

## Throws

- `LayerError` `invalid` when a coordinate or the zoom is not
   finite, the template names a variable with no value, or the URL is not
   `https`.

## See also

- [`IdentifiableLayerDefinition`](https://docs.mapcairn.com/api/core/IdentifiableLayerDefinition.md)
- [`ControlValues`](https://docs.mapcairn.com/api/core/ControlValues.md)
- [`IdentifyTarget`](https://docs.mapcairn.com/api/core/IdentifyTarget.md)

Source: [packages/core/src/layers/identify.ts:150](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/identify.ts#L150)
