Skip to main content

Function: drawnMarks()

drawnMarks(...sets): DrawnMark[]

Defined in: packages/sdvplot/src/maplibre.ts:445

What logoSymbols sets draw, as [team, longitude, latitude, px, url] per feature, in order: the module's test hook, as the other adapters' drawnMarks.

Parameters​

sets​

...readonly LogoSymbols[]

Returns​

DrawnMark[]

Example​

import { loadLeague } from "@sportsdataverse/sdvplot";
import { drawnMarks, logoSymbols } from "@sportsdataverse/sdvplot/maplibre";

await loadLeague("nfl");
// 12 is Kansas City's ESPN team id
drawnMarks(logoSymbols([{ team: 12, lon: -94.714, lat: 39.297 }], { x: "lon", y: "lat", team: "team", league: "nfl" }));