getNameFromUrl MethodStatic
Extract the host name from a URL for use as the name of the corresponding TileRequestChannel.
getNameFromUrl(url: string | URL): string
throws TypeError if url
is a string and does not represent a valid URL.
see TileRequestChannels.getForHttp to obtain or register a channel for the host name.
Parameter | Type | Description |
---|---|---|
url | string | URL |
Returns - string
Defined in
Last Updated: 20 June, 2023