{"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":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T04:00:18Z","updated_at":"2016-04-13T18:29:42Z","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/209582839","html_url":"https://github.com/Leaflet/Leaflet.draw/issues/499#issuecomment-209582839","issue_url":"https://api.github.com/repos/Leaflet/Leaflet.draw/issues/499","id":209582839,"user":{"login":"JrFolk","id":3434590,"avatar_url":"https://avatars.githubusercontent.com/u/3434590?v=3","gravatar_id":"","url":"https://api.github.com/users/JrFolk","html_url":"https://github.com/JrFolk","followers_url":"https://api.github.com/users/JrFolk/followers","following_url":"https://api.github.com/users/JrFolk/following{/other_user}","gists_url":"https://api.github.com/users/JrFolk/gists{/gist_id}","starred_url":"https://api.github.com/users/JrFolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JrFolk/subscriptions","organizations_url":"https://api.github.com/users/JrFolk/orgs","repos_url":"https://api.github.com/users/JrFolk/repos","events_url":"https://api.github.com/users/JrFolk/events{/privacy}","received_events_url":"https://api.github.com/users/JrFolk/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T18:29:42Z","updated_at":"2016-04-13T18:29:42Z","body":"[There is no geometry type 'Rectangle' in GeoJSON.](http://geojson.org/geojson-spec.html#geometry-objects)  Technically, rectangles are polygons so , they need to be encoded as type 'Polygon' to stay within the GeoJSON specs."}}