{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/14","labels_url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/14/comments","events_url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/14/events","html_url":"https://github.com/Esri/Compare-Maps-Template/issues/14","id":71622066,"number":14,"title":"Add ability to consume rest services","user":{"login":"pcsswamin","id":11682688,"avatar_url":"https://avatars.githubusercontent.com/u/11682688?v=3","gravatar_id":"","url":"https://api.github.com/users/pcsswamin","html_url":"https://github.com/pcsswamin","followers_url":"https://api.github.com/users/pcsswamin/followers","following_url":"https://api.github.com/users/pcsswamin/following{/other_user}","gists_url":"https://api.github.com/users/pcsswamin/gists{/gist_id}","starred_url":"https://api.github.com/users/pcsswamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcsswamin/subscriptions","organizations_url":"https://api.github.com/users/pcsswamin/orgs","repos_url":"https://api.github.com/users/pcsswamin/repos","events_url":"https://api.github.com/users/pcsswamin/events{/privacy}","received_events_url":"https://api.github.com/users/pcsswamin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T15:29:28Z","updated_at":"2015-04-28T16:15:04Z","closed_at":"2015-04-28T16:15:04Z","body":"Please add ability to consume ArcGIS Server Rest services. The usefulness of this template would be vastly increased"},"comment":{"url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/comments/97123987","html_url":"https://github.com/Esri/Compare-Maps-Template/issues/14#issuecomment-97123987","issue_url":"https://api.github.com/repos/Esri/Compare-Maps-Template/issues/14","id":97123987,"user":{"login":"kellyhutchins","id":2124187,"avatar_url":"https://avatars.githubusercontent.com/u/2124187?v=3","gravatar_id":"","url":"https://api.github.com/users/kellyhutchins","html_url":"https://github.com/kellyhutchins","followers_url":"https://api.github.com/users/kellyhutchins/followers","following_url":"https://api.github.com/users/kellyhutchins/following{/other_user}","gists_url":"https://api.github.com/users/kellyhutchins/gists{/gist_id}","starred_url":"https://api.github.com/users/kellyhutchins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kellyhutchins/subscriptions","organizations_url":"https://api.github.com/users/kellyhutchins/orgs","repos_url":"https://api.github.com/users/kellyhutchins/repos","events_url":"https://api.github.com/users/kellyhutchins/events{/privacy}","received_events_url":"https://api.github.com/users/kellyhutchins/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T16:15:04Z","updated_at":"2015-04-28T16:15:04Z","body":"All of the templates are designed to work with an ArcGIS Online web map. The easiest way to work with your rest services is to add them to a web map in Online then use the web map id to display your data in the template. \r\n\r\nAlso the result of createMap is a map that you can then update to add your own data using the map.addLayer method. \r\n\r\nAlternatively it is possible to customize the template to work with local copies of a web map. A web map is just a description of the  contents of the map. Here's some information that explains how to work with a local copy of a web map. \r\nhttps://github.com/Esri/Viewer/wiki/local-definition"}}