{"action":"closed","issue":{"url":"https://api.github.com/repos/Esri/runtime-questions/issues/66","repository_url":"https://api.github.com/repos/Esri/runtime-questions","labels_url":"https://api.github.com/repos/Esri/runtime-questions/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/Esri/runtime-questions/issues/66/comments","events_url":"https://api.github.com/repos/Esri/runtime-questions/issues/66/events","html_url":"https://github.com/Esri/runtime-questions/issues/66","id":95950769,"number":66,"title":"AGSSketchGraphicsOverlay conveniences?","user":{"login":"eito","id":775643,"avatar_url":"https://avatars.githubusercontent.com/u/775643?v=3","gravatar_id":"","url":"https://api.github.com/users/eito","html_url":"https://github.com/eito","followers_url":"https://api.github.com/users/eito/followers","following_url":"https://api.github.com/users/eito/following{/other_user}","gists_url":"https://api.github.com/users/eito/gists{/gist_id}","starred_url":"https://api.github.com/users/eito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eito/subscriptions","organizations_url":"https://api.github.com/users/eito/orgs","repos_url":"https://api.github.com/users/eito/repos","events_url":"https://api.github.com/users/eito/events{/privacy}","received_events_url":"https://api.github.com/users/eito/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Esri/runtime-questions/milestones/2","html_url":"https://github.com/Esri/runtime-questions/milestones/ESRI%20UC%202015%20Quartz%20Pre-con%20workshop","labels_url":"https://api.github.com/repos/Esri/runtime-questions/milestones/2/labels","id":1213605,"number":2,"title":"ESRI UC 2015 Quartz Pre-con workshop","description":"","creator":{"login":"willcrick","id":2145578,"avatar_url":"https://avatars.githubusercontent.com/u/2145578?v=3","gravatar_id":"","url":"https://api.github.com/users/willcrick","html_url":"https://github.com/willcrick","followers_url":"https://api.github.com/users/willcrick/followers","following_url":"https://api.github.com/users/willcrick/following{/other_user}","gists_url":"https://api.github.com/users/willcrick/gists{/gist_id}","starred_url":"https://api.github.com/users/willcrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willcrick/subscriptions","organizations_url":"https://api.github.com/users/willcrick/orgs","repos_url":"https://api.github.com/users/willcrick/repos","events_url":"https://api.github.com/users/willcrick/events{/privacy}","received_events_url":"https://api.github.com/users/willcrick/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":2,"state":"open","created_at":"2015-07-17T21:19:13Z","updated_at":"2016-03-05T06:54:53Z","due_on":"2015-07-19T07:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-19T21:33:25Z","updated_at":"2016-03-05T06:54:53Z","closed_at":"2016-03-05T06:54:53Z","body":"Is there an easier way to enable/disable the sketch layer?\r\n\r\nCould we have convenience initializers that take a geometry type so we don't have to create a builder in the event we are creating a new geometry? In this case it would create a builder of that type using the map view's spatial reference\r\n\r\n```\r\nlet builder = AGSPolygonBuilder(spatialReference: AGSSpatialReference.webMercator())\r\nlet sketchOverlay = AGSSketchGraphicsOverlay(geometryBuilder: builder)\r\nmap.operationalLayers.addObject(sketchOverlay)\r\nmapView.touchDelegate = sketchOverlay\r\n```\r\n\r\nSeems like we shouldn't have to mess with passing the touch delegate around, or maybe there really is not an alternative. \r\n\r\nWhat about freehand sketch? Seems like that could be a mode on the sketch layer and in the event of a point geometry, it will take the first point from a touch/pan/swipe/etc. For a line, every time you draw would add a part, for a polygon it would add a ring, etc.\r\n\r\n"}}