logoIconLayer
https://sdv.nyc3.cdn.digitaloceanspaces.com/assets/public/sha256/f8/f8e95d487f02c85aeb65a200f226b795e7a8de95604df49664962ad473d57666.png
import { loadLeague } from "@sportsdataverse/sdvplot";
import { logoIconLayer } from "@sportsdataverse/sdvplot/deckgl";
await loadLeague("nhl");
// Edmonton's first shot of game 7 of the 2024 Stanley Cup Final (NHL api-web), in feet from centre ice
const shot = { team: "EDM", x: 82, y: -3 };
const props = logoIconLayer([shot], { x: "x", y: "y", team: "team", league: "nhl", size: 28 });
// in the browser: new IconLayer({ ...props, coordinateSystem: "cartesian" })
props.data[0]?.icon.url;
Tags: docstring · logoIconLayer. All sdvplot examples.