{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499","repository_url":"https://api.github.com/repos/Leaflet/Leaflet.draw","labels_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499/events","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/499","id":143887088,"number":499,"title":"Layer Type defaults to Polygon even when drawing Rectangles","user":{"login":"jrandeniya","id":8159241,"avatar_url":"https://avatars.githubusercontent.com/u/8159241?v=3","gravatar_id":"","url":"https://api.github.com/users/jrandeniya","html_url":"https://github.com/jrandeniya","followers_url":"https://api.github.com/users/jrandeniya/followers","following_url":"https://api.github.com/users/jrandeniya/following{/other_user}","gists_url":"https://api.github.com/users/jrandeniya/gists{/gist_id}","starred_url":"https://api.github.com/users/jrandeniya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrandeniya/subscriptions","organizations_url":"https://api.github.com/users/jrandeniya/orgs","repos_url":"https://api.github.com/users/jrandeniya/repos","events_url":"https://api.github.com/users/jrandeniya/events{/privacy}","received_events_url":"https://api.github.com/users/jrandeniya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"ddproxy","id":105473,"avatar_url":"https://avatars.githubusercontent.com/u/105473?v=3","gravatar_id":"","url":"https://api.github.com/users/ddproxy","html_url":"https://github.com/ddproxy","followers_url":"https://api.github.com/users/ddproxy/followers","following_url":"https://api.github.com/users/ddproxy/following{/other_user}","gists_url":"https://api.github.com/users/ddproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/ddproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddproxy/subscriptions","organizations_url":"https://api.github.com/users/ddproxy/orgs","repos_url":"https://api.github.com/users/ddproxy/repos","events_url":"https://api.github.com/users/ddproxy/events{/privacy}","received_events_url":"https://api.github.com/users/ddproxy/received_events","type":"User","site_admin":false},"assignees":[{"login":"ddproxy","id":105473,"avatar_url":"https://avatars.githubusercontent.com/u/105473?v=3","gravatar_id":"","url":"https://api.github.com/users/ddproxy","html_url":"https://github.com/ddproxy","followers_url":"https://api.github.com/users/ddproxy/followers","following_url":"https://api.github.com/users/ddproxy/following{/other_user}","gists_url":"https://api.github.com/users/ddproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/ddproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddproxy/subscriptions","organizations_url":"https://api.github.com/users/ddproxy/orgs","repos_url":"https://api.github.com/users/ddproxy/repos","events_url":"https://api.github.com/users/ddproxy/events{/privacy}","received_events_url":"https://api.github.com/users/ddproxy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-03-28T04:00:18Z","updated_at":"2016-10-14T10:44:31Z","closed_at":null,"body":"The **draw:created** event's `e.layer`, when converted to geoJSON says that `geometry.type` is a Polygon, even after drawing a Rectangle. Therefore, in Edit mode - the Rectangles are not movable/vertices can be pulled to warp the shape. Any idea what might be causing this? It's using the default L.Draw.Rectangle and options.rectangle for the nodeHandlers (as it does out of the box), so not sure why the `created` event says its a Polygon."},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/comments/253767959","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/499#issuecomment-253767959","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499","id":253767959,"user":{"login":"jrandeniya","id":8159241,"avatar_url":"https://avatars.githubusercontent.com/u/8159241?v=3","gravatar_id":"","url":"https://api.github.com/users/jrandeniya","html_url":"https://github.com/jrandeniya","followers_url":"https://api.github.com/users/jrandeniya/followers","following_url":"https://api.github.com/users/jrandeniya/following{/other_user}","gists_url":"https://api.github.com/users/jrandeniya/gists{/gist_id}","starred_url":"https://api.github.com/users/jrandeniya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrandeniya/subscriptions","organizations_url":"https://api.github.com/users/jrandeniya/orgs","repos_url":"https://api.github.com/users/jrandeniya/repos","events_url":"https://api.github.com/users/jrandeniya/events{/privacy}","received_events_url":"https://api.github.com/users/jrandeniya/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T10:44:31Z","updated_at":"2016-10-14T10:44:31Z","body":"This can be closed - fixed in Leaflet.draw 0.4.0 with Leaflet 1.0.1 :)"}}
{"actor":{"display_login":"jrandeniya"}}