{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/5","labels_url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/5/comments","events_url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/5/events","html_url":"https://github.com/openseadragon/svg-overlay/issues/5","id":95902235,"number":5,"title":"href attribute","user":{"login":"Kampii","id":725316,"avatar_url":"https://avatars.githubusercontent.com/u/725316?v=3","gravatar_id":"","url":"https://api.github.com/users/Kampii","html_url":"https://github.com/Kampii","followers_url":"https://api.github.com/users/Kampii/followers","following_url":"https://api.github.com/users/Kampii/following{/other_user}","gists_url":"https://api.github.com/users/Kampii/gists{/gist_id}","starred_url":"https://api.github.com/users/Kampii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kampii/subscriptions","organizations_url":"https://api.github.com/users/Kampii/orgs","repos_url":"https://api.github.com/users/Kampii/repos","events_url":"https://api.github.com/users/Kampii/events{/privacy}","received_events_url":"https://api.github.com/users/Kampii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T09:41:00Z","updated_at":"2015-07-20T16:20:57Z","closed_at":null,"body":"Hi,\r\n\r\nMy goal is to be able to click on the svg object and trigger the load of new image. For now I am simply trying to add a link. The code below disables the clicktozoom in the circle area, however, it does not display any active link. What is the right correct way to achieve this?\r\n\r\n                    var overlay = this.viewer.svgOverlay();\r\n\r\n                    var d3Rect = d3.select(overlay.node()).append(\"circle\")\r\n                        .style('fill', '#f00')\r\n                        .style(\"fill-opacity\", .2)\r\n                        .attr(\"xlink:href\", \"http://google.com\")\r\n                        .attr(\"cx\", 3964)\r\n                        .attr(\"cy\", 2742)\r\n                        .attr(\"r\", 72);\r\n                        \r\n                    overlay.onClick(d3Rect.node(), function() {\r\n                        console.log('click', arguments);\r\n                    });"},"comment":{"url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/comments/122937283","html_url":"https://github.com/openseadragon/svg-overlay/issues/5#issuecomment-122937283","issue_url":"https://api.github.com/repos/openseadragon/svg-overlay/issues/5","id":122937283,"user":{"login":"iangilman","id":338989,"avatar_url":"https://avatars.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":"2015-07-20T16:20:57Z","updated_at":"2015-07-20T16:20:57Z","body":"I don't know enough about SVG to know if that should work on a regular SVG image (one that's not part of the OpenSeadragon SVG Overlay). Should it? If so, we may have a bug. \r\n\r\nAt any rate, what do you mean by \"display any active link\"? Are you expecting to see text with an underline? A pointer cursor? Are you expecting it to take you to a new page when you click on it?"}}