You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
The text was updated successfully, but these errors were encountered: