IGV.js locuschange
Event Example
In this example we want to update the page URL whenever the IGV viewer locus changes. This allows us to
capture an exact location in the URL so that it can be shared. To do this, we subscribe to the locuschange
event and update the page URL to match the current locus.
Try it out:
- Zoom or pan the canvas in the IGV viewer.
- Notice that the page URL updated to match the new locus.
- Copy-paste the URL into a different browser tab - now you can easily share it with collaborators.