Closed nelsm closed 9 years ago
You need to change the QueryForOrg to false in templateConfig.js, then add your GC to the helper service section in the default.js.
Ok. Will do. Thanks for your help.
Sent from my iPhone
On Apr 23, 2015, at 11:45 AM, Michael Miller notifications@github.com wrote:
You need to change the QueryForOrg to false in templateConfig.js, then add your GC to the helper service section in the default.js.
— Reply to this email directly or view it on GitHub.
Hi, I was just wondering if you were able to get this to work. I am having an issue with switching to custom geocoder as well. Thanks
Unfortunately I was not able to switch to a custom geocoder.
Sent from my iPhone
On Jul 14, 2015, at 8:34 AM, Nataliya1 notifications@github.com wrote:
I was just wondering if you was able to get this to work. I am having an issue with switching to custom geocoder as well. Thanks
— Reply to this email directly or view it on GitHub.
Here are the steps to enabled custom geocoders. This may not be needed with the most current version in github because the new configuration panel allows you to select which geocoders and layers you want to use for the search. The locators need to be registered with your org.
1: Open TemplateConfig.js and change queryForOrg to false 2: Open Default.js and update the geocode section in helperServices
ex: "geocode": [{ "url": "http://54.203.249.87/arcgis/rest/services/GasAssetLocator/GeocodeServer", "singleLineFieldName": "SingleLine", "placefinding": true
}
Mike, I downloaded current version from github and my geocoder works! YAY! Thank you.
Closing the issue, please reopen or create a new one if you have more problems.
I tried setting the default geocoder to something other than ESRI's World Geocoder and it doesnt seem to stick and reverts back to it. Is there another location where it needs to be set besides the commonconfig.js?
geocode: [{ url: location.protocol + "//utility.arcgis.com/usrsvcs/servers/a88702314a8a48cb84d0a6305f1adcb6/rest/services/locators/RLIS_Locator/GeocodeServer" }]