Skip to main content

Function: default()

default(sigma, opts?): object

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

Parameters

sigma: Sigma<Attributes, Attributes, Attributes>

The sigma instance

opts?

opts.getNodeLatLng?

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

opts.mapOptions?: Omit<MapOptions, "zoomControl" | "zoomSnap" | "zoom" | "maxZoom">

Options that will be provided to the map constructor.

opts.tileLayer?

Tile layer configuration for the map (default is openstreetmap)

opts.tileLayer.attribution?: string

opts.tileLayer.urlTemplate?: string

Returns

object

clean()

clean: () => void

Returns

void

map

map: Map

updateGraphCoordinates()

updateGraphCoordinates: (graph) => void

Parameters

graph: Graph<Attributes, Attributes, Attributes>

Returns

void

Defined in

layer-leaflet/src/index.ts:17