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
Section titled “Parameters”The sigma instance
getNodeLatLng?
Section titled “getNodeLatLng?”(nodeAttributes) => object
Function to retrieve lat/long values from a node’s attributs (default is lat & lng)
mapOptions?
Section titled “mapOptions?”Omit<MapOptions, "zoomControl" | "zoomSnap" | "zoom" | "maxZoom" | "zoomAnimation" | "dragging" | "scrollWheelZoom" | "doubleClickZoom" | "touchZoom" | "boxZoom" | "keyboard">
Options that will be provided to the map constructor.
tileLayer?
Section titled “tileLayer?”{ attribution?: string; urlTemplate: string; }
Tile layer configuration for the map (default is openstreetmap)
tileLayer.attribution?
Section titled “tileLayer.attribution?”string
tileLayer.urlTemplate
Section titled “tileLayer.urlTemplate”string
Returns
Section titled “Returns”object
clean: () =>
void
Returns
Section titled “Returns”void
map:
Map
updateGraphCoordinates
Section titled “updateGraphCoordinates”updateGraphCoordinates: (
graph) =>void
Parameters
Section titled “Parameters”Graph
Returns
Section titled “Returns”void