Skip to main content

feedUrls

The URLs to ask for a feed or query layer's controls: one, except for a query layer whose area crosses the antimeridian, which gets one for each side of the line (queryBoxes), because a provider takes a box inside -180 to 180. Join the answers with decodeFeeds.

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

Signature​

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

function feedUrls(definition: LayerDefinition, controls: ControlValues, now: number, area?: Bounds): string[];

Parameters​

  • definition (LayerDefinition)
  • controls (ControlValues)
  • now (number)
  • area? (Bounds)

Returns​

string[]

See also​

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