Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

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.

Parameters

sigma

Sigma

The sigma instance

opts?

getNodeLatLng?

(nodeAttributes) => object

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

mapOptions?

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

Options that will be provided to the map constructor.

tileLayer?

{ attribution?: string; urlTemplate: string; }

Tile layer configuration for the map (default is openstreetmap)

tileLayer.attribution?

string

tileLayer.urlTemplate

string

Returns

object

clean

clean: () => void

Returns

void

map

map: Map

updateGraphCoordinates

updateGraphCoordinates: (graph) => void

Parameters

graph

Graph

Returns

void