{"action":"created","issue":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/629","repository_url":"https://api.github.com/repos/cmv/cmv-app","labels_url":"https://api.github.com/repos/cmv/cmv-app/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-app/issues/629/comments","events_url":"https://api.github.com/repos/cmv/cmv-app/issues/629/events","html_url":"https://github.com/cmv/cmv-app/issues/629","id":188322360,"number":629,"title":"how to change geocoding service from ESRI to mine?","user":{"login":"JudyZhou","id":5840602,"avatar_url":"https://avatars.githubusercontent.com/u/5840602?v=3","gravatar_id":"","url":"https://api.github.com/users/JudyZhou","html_url":"https://github.com/JudyZhou","followers_url":"https://api.github.com/users/JudyZhou/followers","following_url":"https://api.github.com/users/JudyZhou/following{/other_user}","gists_url":"https://api.github.com/users/JudyZhou/gists{/gist_id}","starred_url":"https://api.github.com/users/JudyZhou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudyZhou/subscriptions","organizations_url":"https://api.github.com/users/JudyZhou/orgs","repos_url":"https://api.github.com/users/JudyZhou/repos","events_url":"https://api.github.com/users/JudyZhou/events{/privacy}","received_events_url":"https://api.github.com/users/JudyZhou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-09T18:48:14Z","updated_at":"2016-11-09T19:44:09Z","closed_at":null,"body":"I have my own geocoding service. how to change geocoder widget from ESRI's to mine? how to set a configuration? Thanks!"},"comment":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/comments/259506962","html_url":"https://github.com/cmv/cmv-app/issues/629#issuecomment-259506962","issue_url":"https://api.github.com/repos/cmv/cmv-app/issues/629","id":259506962,"user":{"login":"roemhildtg","id":5471079,"avatar_url":"https://avatars.githubusercontent.com/u/5471079?v=3","gravatar_id":"","url":"https://api.github.com/users/roemhildtg","html_url":"https://github.com/roemhildtg","followers_url":"https://api.github.com/users/roemhildtg/followers","following_url":"https://api.github.com/users/roemhildtg/following{/other_user}","gists_url":"https://api.github.com/users/roemhildtg/gists{/gist_id}","starred_url":"https://api.github.com/users/roemhildtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roemhildtg/subscriptions","organizations_url":"https://api.github.com/users/roemhildtg/orgs","repos_url":"https://api.github.com/users/roemhildtg/repos","events_url":"https://api.github.com/users/roemhildtg/events{/privacy}","received_events_url":"https://api.github.com/users/roemhildtg/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T19:44:09Z","updated_at":"2016-11-09T19:44:09Z","body":"This should do it:\r\n\r\n```javascript\r\n            geocoder: {\r\n                include: true,\r\n                type: 'domNode',\r\n                path: 'esri/dijit/Search',\r\n                srcNodeRef: 'searchDijit',\r\n                options: {\r\n                    map: true,\r\n                    mapRightClickMenu: true,\r\n                    enableInfoWindow: true\r\n                    sources: [{\r\n                       placeholder: 'Address, parcelid, place..',\r\n                         locator: new Locator('arcgis/rest/services/internal/Sugg_Composite_Locator/GeocodeServer')\r\n                     }]\r\n                }\r\n            },\r\n```\r\n\r\nYou also need to include the locator object in your viewer's define block before it can be used. \r\n\r\n```javascript\r\ndefine(['esri/tasks/locator'], function(Locator){\r\n```\r\n\r\nsource: https://developers.arcgis.com/javascript/3/jssamples/search_customlocator.html\r\n\r\nBTW @tmcgee docs need updating here for the search widget: http://docs.cmv.io/en/latest/widgets/Geocoder/\r\n\r\nMaybe we should leave this open till the docs are fixed."}}
{"actor":{"display_login":"roemhildtg"}}