side by side viewer - map comparison #3232
solyane2002
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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