{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/635","repository_url":"https://api.github.com/repos/Leaflet/Leaflet.draw","labels_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/635/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/635/events","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/635","id":189251078,"number":635,"title":"Canvas renderer has strange visual issues","user":{"login":"jbccollins","id":8915552,"avatar_url":"https://avatars.githubusercontent.com/u/8915552?v=3","gravatar_id":"","url":"https://api.github.com/users/jbccollins","html_url":"https://github.com/jbccollins","followers_url":"https://api.github.com/users/jbccollins/followers","following_url":"https://api.github.com/users/jbccollins/following{/other_user}","gists_url":"https://api.github.com/users/jbccollins/gists{/gist_id}","starred_url":"https://api.github.com/users/jbccollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbccollins/subscriptions","organizations_url":"https://api.github.com/users/jbccollins/orgs","repos_url":"https://api.github.com/users/jbccollins/repos","events_url":"https://api.github.com/users/jbccollins/events{/privacy}","received_events_url":"https://api.github.com/users/jbccollins/received_events","type":"User","site_admin":false},"labels":[{"id":6394476,"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-14T23:00:06Z","updated_at":"2016-11-17T21:57:55Z","closed_at":null,"body":"## How to reproduce\r\n\r\n- Leaflet version I'm using: Whatever version http://leaflet.github.io/Leaflet.draw/docs/examples/full.html is using\r\n- Leaflet Draw version I'm using: ^\r\n- Browser (with version) I'm using: Chrome\r\n- OS/Platform (with version) I'm using: Windows 10\r\n\r\n## What behaviour I'm expecting and which behaviour I'm seeing\r\nI'm expecting behavior like the first half of this gif. When I change the renderer to L.canvas() there are strange visual issues with the canvas.\r\n\r\n![leaflet-draw-canvas](https://cloud.githubusercontent.com/assets/8915552/20286268/eabcc9cc-aa93-11e6-8526-029f1140a2f8.gif)\r\n\r\n## Minimal example reproducing the issue\r\n\r\n- I just visited the main example page and edited the map options via the console"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/comments/261382696","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/635#issuecomment-261382696","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/635","id":261382696,"user":{"login":"jbccollins","id":8915552,"avatar_url":"https://avatars.githubusercontent.com/u/8915552?v=3","gravatar_id":"","url":"https://api.github.com/users/jbccollins","html_url":"https://github.com/jbccollins","followers_url":"https://api.github.com/users/jbccollins/followers","following_url":"https://api.github.com/users/jbccollins/following{/other_user}","gists_url":"https://api.github.com/users/jbccollins/gists{/gist_id}","starred_url":"https://api.github.com/users/jbccollins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbccollins/subscriptions","organizations_url":"https://api.github.com/users/jbccollins/orgs","repos_url":"https://api.github.com/users/jbccollins/repos","events_url":"https://api.github.com/users/jbccollins/events{/privacy}","received_events_url":"https://api.github.com/users/jbccollins/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T21:57:55Z","updated_at":"2016-11-17T21:57:55Z","body":"Answering my own question...\r\n\r\n```javascript\r\n    const shapeOptions = {\r\n      renderer: L.svg(),\r\n      color: 'orange',\r\n      opacity: 1,\r\n    };\r\n    this._map.addControl(new L.Control.Draw({\r\n      edit: {\r\n        featureGroup: drawnItems,\r\n        poly : {\r\n          allowIntersection : false\r\n        }\r\n      },\r\n      draw: {\r\n        polyline: {\r\n          shapeOptions: {...shapeOptions}\r\n        },\r\n        polygon : {\r\n          allowIntersection: false,\r\n          showArea:true,\r\n          shapeOptions: {...shapeOptions}\r\n        },\r\n        circle: {\r\n          shapeOptions: {...shapeOptions}\r\n        },\r\n        rectangle: {\r\n          shapeOptions: {...shapeOptions}\r\n        },\r\n      },\r\n    }));\r\n```"}}
{"actor":{"display_login":"jbccollins"}}