plotly / dash-cytoscape

Interactive network visualization in Python and Dash, powered by Cytoscape.js
https://dash.plot.ly/cytoscape
MIT License
601 stars 119 forks source link

Add CyLeaflet AIO component #200

Closed cleaaum closed 8 months ago

cleaaum commented 10 months ago

About

This PR adds a demo for the Cytoscape-Leaflet all-in-one component.

This AIO consists on a cytoscape graph displayed on top of a Leaflet map. Every movement (pan or zoom) on the cytoscape graph will update the map to move accordingly. All the logic for this to happen is in the file demos/assets/cyleaflet_clientside.js.

The coordinate conversion module proj4js is used to handle the dragging offset when the map is moved with a cytoscape object superimposed.

A demo of this component can be found in demos/usage_cy_leaflet_aio.py.

Pre-Merge checklist