Function: default()
default(
sigma
,opts
?):object
Defined in: layer-leaflet/src/index.ts:16
On the graph, we store the 2D projection of the geographical lat/long.
Parameters
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
, "zoom"
| "zoomControl"
| "zoomSnap"
| "maxZoom"
>
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