{"action":"created","issue":{"url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/20","repository_url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay","labels_url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/20/comments","events_url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/20/events","html_url":"https://github.com/teralytics/Leaflet.D3SvgOverlay/issues/20","id":141882812,"number":20,"title":"scale incorrect after zoom and layer disable&enable","user":{"login":"jonim8or","id":12826624,"avatar_url":"https://avatars.githubusercontent.com/u/12826624?v=3","gravatar_id":"","url":"https://api.github.com/users/jonim8or","html_url":"https://github.com/jonim8or","followers_url":"https://api.github.com/users/jonim8or/followers","following_url":"https://api.github.com/users/jonim8or/following{/other_user}","gists_url":"https://api.github.com/users/jonim8or/gists{/gist_id}","starred_url":"https://api.github.com/users/jonim8or/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonim8or/subscriptions","organizations_url":"https://api.github.com/users/jonim8or/orgs","repos_url":"https://api.github.com/users/jonim8or/repos","events_url":"https://api.github.com/users/jonim8or/events{/privacy}","received_events_url":"https://api.github.com/users/jonim8or/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-18T14:30:54Z","updated_at":"2016-03-26T09:44:02Z","closed_at":null,"body":"When using the leaflet layercontrol, you can get incorrect scale after zooming in and then disable-and-enabling the d3 layer. This is because the scale value defaults to 1. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/comments/201747202","html_url":"https://github.com/teralytics/Leaflet.D3SvgOverlay/issues/20#issuecomment-201747202","issue_url":"https://api.github.com/repos/teralytics/Leaflet.D3SvgOverlay/issues/20","id":201747202,"user":{"login":"xEviL","id":4267755,"avatar_url":"https://avatars.githubusercontent.com/u/4267755?v=3","gravatar_id":"","url":"https://api.github.com/users/xEviL","html_url":"https://github.com/xEviL","followers_url":"https://api.github.com/users/xEviL/followers","following_url":"https://api.github.com/users/xEviL/following{/other_user}","gists_url":"https://api.github.com/users/xEviL/gists{/gist_id}","starred_url":"https://api.github.com/users/xEviL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xEviL/subscriptions","organizations_url":"https://api.github.com/users/xEviL/orgs","repos_url":"https://api.github.com/users/xEviL/repos","events_url":"https://api.github.com/users/xEviL/events{/privacy}","received_events_url":"https://api.github.com/users/xEviL/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T09:44:02Z","updated_at":"2016-03-26T09:44:02Z","body":"to make the size consistent over \"disable + enable\" of the layer, specify the size in global units, like meters, e.g. using provided conversion factor `projection.unitsPerMeter`:\r\n```\r\n.attr('r', proj.unitsPerMeter * 500) // keeps circles radius = 500 meters\r\n```"}}