Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

default

default(sigma, opts?): object

Defined in: packages/layer-leaflet/src/index.ts:29

On the graph, we store the 2D projection of the geographical lat/long.

Sigma

The sigma instance

(nodeAttributes) => object

Function to retrieve lat/long values from a node’s attributs (default is lat & lng)

Omit<MapOptions, "zoomControl" | "zoomSnap" | "zoom" | "maxZoom" | "zoomAnimation" | "dragging" | "scrollWheelZoom" | "doubleClickZoom" | "touchZoom" | "boxZoom" | "keyboard">

Options that will be provided to the map constructor.

{ attribution?: string; urlTemplate: string; }

Tile layer configuration for the map (default is openstreetmap)

string

string

object

clean: () => void

void

map: Map

updateGraphCoordinates: (graph) => void

Graph

void