IGV.js locuschange
Event Example
In this example we want to update the page URL whenever the IGV viewer locus changes.
To do this, we subscribe to the locuschange
event.
Try it out:
- Zoom or pan the canvas in the IGV viewer.
- Notice that the page URL updates to match the new locus.