identifyRequestUrl
The URL a layer source asks for a tap: identifyUrl, 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
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
LayerErrorinvalidwhen a coordinate or the zoom is not finite, the template names a variable with no value, or the URL is nothttps.