Skip to main content

tileUrl

The tile URL template for a raster or vector tile layer's controls, with the engine's own placeholders ({z}, {bbox-epsg-3857}) left in.

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

Signature​

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

function tileUrl(definition: LayerDefinition, controls: ControlValues, now: number): string;

Parameters​

  • definition (LayerDefinition)
  • controls (ControlValues)
  • now (number)

Returns​

string

See also​

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