You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use cytoscape.js in my react project to show metabolite maps, with compound and reaction nodes.
I need a new feature and I don't know yet how to implement it: Map comparison.
We would like to display two maps side by side, and to be able to reflect the viewport changes on both maps.
Here is an example of the kind of behavior: https://maps.nls.uk/geo/explore/side-by-side/#zoom=7.0&lat=53.26079&lon=-5.43268&layers=1&right=ESRIWorld
I'm thinking about using a context to store the current position, updated through an event listener ( may be "viewport" event ?).
But I don't know how to set the bounding box of the second graph once I listen to the event nor if it's the way to go.
Have you ever done this kind of feature ? any idea how to do that ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I use cytoscape.js in my react project to show metabolite maps, with compound and reaction nodes.
I need a new feature and I don't know yet how to implement it: Map comparison.
We would like to display two maps side by side, and to be able to reflect the viewport changes on both maps.
Here is an example of the kind of behavior:
https://maps.nls.uk/geo/explore/side-by-side/#zoom=7.0&lat=53.26079&lon=-5.43268&layers=1&right=ESRIWorld
I'm thinking about using a context to store the current position, updated through an event listener ( may be "viewport" event ?).
But I don't know how to set the bounding box of the second graph once I listen to the event nor if it's the way to go.
Have you ever done this kind of feature ? any idea how to do that ?
Beta Was this translation helpful? Give feedback.
All reactions