Esri / information-lookup

Web app template that is used to determine if the location specified intersects a polygon
Apache License 2.0
6 stars 25 forks source link

Custom Geocoder #20

Closed nelsm closed 9 years ago

nelsm commented 9 years ago

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 commented 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.

nelsm commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

MikeMillerGIS commented 9 years ago

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