You can use ReGraph with Leaflet.js to visualize and analyze geospatial data on a map.
While Leaflet provides a map to use as a background, ReGraph lays out the chart onto the map according to the latitude and longitude locations of nodes.
To integrate ReGraph with Leaflet, you must add Leaflet version 1.9.x to your project and import it into your app.
To display the map, set the map prop:
ReGraph Example
ReGraph uses OpenStreetMap as a default map tile provider.
When the map is displayed, there are some important behavioral differences in the chart:
- Nodes are positioned by
latandlngincoordinates. Thepositionsprop is ignored. - Nodes without both
latandlngspecified are hidden. - The
worldCoordinatesmethod returns an object withlatandlngproperties. - Annotations are hidden as they are not supported.
- Links are always shown as direct links. See Link Shapes for details.
- Open combos are not supported.
