Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Geocoder #20

Closed
nelsm opened this issue Apr 23, 2015 · 7 comments
Closed

Custom Geocoder #20

nelsm opened this issue Apr 23, 2015 · 7 comments

Comments

@nelsm
Copy link

nelsm commented Apr 23, 2015

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"
}]

@MikeMillerGIS
Copy link
Member

You need to change the QueryForOrg to false in templateConfig.js, then add your GC to the helper service section in the default.js.

@nelsm
Copy link
Author

nelsm commented Apr 23, 2015

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.

@Nataliya1
Copy link

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

@nelsm
Copy link
Author

nelsm commented Jul 14, 2015

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.

@MikeMillerGIS
Copy link
Member

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

  }

@Nataliya1
Copy link

Mike,
I downloaded current version from github and my geocoder works! YAY! Thank you.

@MikeMillerGIS
Copy link
Member

Closing the issue, please reopen or create a new one if you have more problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants