{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1221","repository_url":"https://api.github.com/repos/openseadragon/openseadragon","labels_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1221/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1221/comments","events_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1221/events","html_url":"https://github.com/openseadragon/openseadragon/issues/1221","id":236169705,"number":1221,"title":"Toggle debug mode after the Viewer is created?","user":{"login":"jp7253","id":1607661,"avatar_url":"https://avatars1.githubusercontent.com/u/1607661?v=3","gravatar_id":"","url":"https://api.github.com/users/jp7253","html_url":"https://github.com/jp7253","followers_url":"https://api.github.com/users/jp7253/followers","following_url":"https://api.github.com/users/jp7253/following{/other_user}","gists_url":"https://api.github.com/users/jp7253/gists{/gist_id}","starred_url":"https://api.github.com/users/jp7253/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp7253/subscriptions","organizations_url":"https://api.github.com/users/jp7253/orgs","repos_url":"https://api.github.com/users/jp7253/repos","events_url":"https://api.github.com/users/jp7253/events{/privacy}","received_events_url":"https://api.github.com/users/jp7253/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-15T12:07:30Z","updated_at":"2017-06-16T17:48:49Z","closed_at":null,"body":"Is it possible to change the debugMode after the viewer has been created? I can pass the debugMode flag via options when creating the viewer but I have a requirement to enable and disable debug mode at runtime with a keyboard shortcut.\r\n\r\nOr, more generically, is it possible to change options after Viewer has been constructed?"},"comment":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/comments/309090853","html_url":"https://github.com/openseadragon/openseadragon/issues/1221#issuecomment-309090853","issue_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1221","id":309090853,"user":{"login":"iangilman","id":338989,"avatar_url":"https://avatars0.githubusercontent.com/u/338989?v=3","gravatar_id":"","url":"https://api.github.com/users/iangilman","html_url":"https://github.com/iangilman","followers_url":"https://api.github.com/users/iangilman/followers","following_url":"https://api.github.com/users/iangilman/following{/other_user}","gists_url":"https://api.github.com/users/iangilman/gists{/gist_id}","starred_url":"https://api.github.com/users/iangilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangilman/subscriptions","organizations_url":"https://api.github.com/users/iangilman/orgs","repos_url":"https://api.github.com/users/iangilman/repos","events_url":"https://api.github.com/users/iangilman/events{/privacy}","received_events_url":"https://api.github.com/users/iangilman/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T17:48:49Z","updated_at":"2017-06-16T17:48:49Z","body":"Changing the debugMode while running is not officially supported, but it does appear to be possible. You have to change it on each of your tiledImages and then tell the viewer to refresh itself.\r\n\r\n```\r\nfor (var i = 0; i < viewer.world.getItemCount(); i++) {\r\n  viewer.world.getItemAt(i).debugMode = false;\r\n}\r\n\r\nviewer.forceRedraw();\r\n```\r\n\r\nOther viewer options depend on their implementation as to whether you can change them after it's been constructed; just like debugMode, doing so is not officially supported. \r\n\r\nIt would certainly be possible to add a `viewer.setDebugMode()` method for doing so, if you'd like to write that patch. "}}
{"actor":{"display_login":"iangilman"}}