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 causes search box to disappear #39

Closed
mikeri1000 opened this issue Feb 13, 2015 · 3 comments
Closed

Custom Geocoder causes search box to disappear #39

mikeri1000 opened this issue Feb 13, 2015 · 3 comments
Assignees

Comments

@mikeri1000
Copy link

When I try to use a custom geocode service, and configure the commonConfig.js according to the wiki instructions (custom geocode url, queryForOrg set to false), the search box disappears from the site and other elements such as layers, legend, no longer show up when selected.

@jgravois
Copy link
Contributor

this is happening because your custom geocoder is stripped from the array of resources provided in the actual widget constructor here.

i was able to get the template configured properly after manually supplying a singleLineFieldName (in addition to url for the geocode helperService in the commonConfig.js

geocode: [{
  url: location.protocol + "//tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Address_NA_10/GeocodeServer",
  //needs to match the actual input parameter for your own service        
  singleLineFieldName: "SingleLine"
}]

i'm not sure what wiki instructions you're talking about, but if you can point me to them I can add some more information so the same problem doesn't bite someone else in the future.

@jgravois jgravois self-assigned this Feb 17, 2015
@mikeri1000
Copy link
Author

Thanks, that got it working once i figured out what the singleLineFieldName should be for my service. The wiki instructions i was referring to are these: https://github.com/Esri/basic-viewer-template/wiki/Configure-utility-services

@jgravois
Copy link
Contributor

glad i could help. i've submitted PR #40 here to add a few code comments to clarify the requirement and edited the wiki to reflect the same. thanks for reporting.

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

2 participants