Skip to main content

surfaceLayer

85
import { surfaceLayer } from "@sportsdataverse/sdvplot/deckgl";

const rink = surfaceLayer("hockey", "nhl");
// in the browser: new PolygonLayer(rink), in a Deck with views: new OrthographicView({ flipY: false })
rink.data.length;

Tags: docstring · surfaceLayer. All sdvplot examples.