Skip to main content

sampleLine

A two-point line feature, for SAMPLE_LINE_LAYER.

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

Signature​

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

function sampleLine(id: string, fields?: LayerFeature["fields"], from?: readonly [number, number], to?: readonly [number, number]): LayerFeature;

Parameters​

  • id (string)
  • fields? (LayerFeature["fields"])
  • from? (readonly [number, number])
  • to? (readonly [number, number])

Returns​

LayerFeature

See also​

Source: packages/core/src/fakes/layerFixtures.ts:553