Hi All,Looking for a sample or documentation on how to configure the geocoder digit to use multiple custom locators.I am trying to construct my geocoder with multiple geocoding service and allow users to change between them via the geocoderMenu.I found this very cool working example but it was a bit more complex than i was looking for: https://github.com/Esri/geocoder-search-widget-jsmy code (which does not show the geocoderMenu) is something like this
var geocoder [];
var custom1 = {
url : "some url for a locator",
name : "Address",
outFields : "*",
singleLineFieldName : "Address"
};
geocoder.push(custom1)
var custom2 = {
url: "some url for a locator",
name: "Name",
outFields : "*",
singleLineFieldName: "PlaceName"
};
geocoder.push(custom2)
var geocoder = new esri.dijit.Geocoder({
map : map,
geocoders : geocoder,
autoComplete: true,
theme : "simpleGeocoder",
geocoderMenu: true,
arcgisGeocoder : false
}, "webmap-toolbar-right");
geocoder.startup();