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.

Try it out:

  1. Zoom or pan the canvas in the IGV viewer.
  2. Notice that the page URL updated to match the new locus.