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

Couldn't add another geocoder/locator to this template #23

Open AkshayHarshe opened 9 years ago

AkshayHarshe commented 9 years ago

Hi, I was working with one of the user's and I could not get this to work using a custom Geocoder URL. I have downloaded this template and hosted it on my server.

I tried adding my own url under DEFAULT.JS FILE. --> HELPERSERVICES --> GEOCODE.url but this doesn't seem to work.

I also tried replacing world geocode url from commonConfig.js file but no luck over there. When I debugged in search.js file it only adds World Geocoder to the Search sources. Do I need to change anything else anywhere? I do not want to use search widget directly on my layer.

Would you be able to test this when you get a chance?

Thanks, Akshay Esri Technical Support

MikeMillerGIS commented 9 years ago

Did you set queryForOrg to false?

MikeMillerGIS commented 9 years ago

BTW, the new version has an updated config panel that has the ability to change these in the app config

AkshayHarshe commented 9 years ago

Well, I did not manually changed that property for sure. And I just checked that it is true in my downloaded app.

Also, I think, I downloaded the latest release and not the current repo.

MikeMillerGIS commented 9 years ago

By default, the app querys the org for details. You need to set it to false to read the local helperservices

GISTiger commented 8 years ago

I'm using this template through the AGOL system (sharing a web map as an application and filling in the preformatted blanks.) The section to add in custom search layers does not work -- I added in some custom search layers and the search widget was unable to offer suggestions or find the locations I entered. It seems that only the Esri World Geocoder will work. (I'm not going to mess with downloading the code and hosting it on my server because it's not a deal breaker for us.)