feedUrl
The URL for a feed or query layer's controls. Missing or invalid values use
their defaults. A query layer needs the area of the map it asks for
(see queryWindow), which fills its box and its limit.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { feedUrl } from "@mapcairn/core";
function feedUrl(definition: LayerDefinition, controls: ControlValues, now: number, area?: Bounds): string;
Parameters
definition(LayerDefinition)controls(ControlValues)now(number)area?(Bounds)
Returns
string
Throws
- when the
areacrosses the antimeridian, which takes two requests: usefeedUrls. It once gave one URL with the box clamped to the edge of the world, which asked for the wrong area.