Thanks Kelly!
I have downloaded the template and am struggling with where to put the code to override the ESRI geocoding popup for this particular application. Here is what I am working with, where would this go in order to achieve the desired result? I see where there is info template code for the Search layers that can be defined in the template, but how would I get the geocoding Search result window to do the same?
Thanks
//Add the geocoder if search is enabled
if (this.config.search) {
var options = {
map: this.map,
addLayersFromMap: false
};
var searchLayers = false;
var search = new Search(options, domConstruct.create("div"));
var defaultSources = [];
//setup geocoders defined in common config
if (this.config.helperServices.geocode && this.config.locationSearch) {
var geocoders = lang.clone(this.config.helperServices.geocode);
array.forEach(geocoders, lang.hitch(this, function (geocoder) {
if (geocoder.url.indexOf(".arcgis.com/arcgis/rest/services/World/GeocodeServer") > -1) {
geocoder.hasEsri = true;
geocoder.locator = new Locator(geocoder.url);
geocoder.singleLineFieldName = "SingleLine";
geocoder.name = geocoder.name || "Esri World Geocoder";
if (this.config.searchExtent) {
geocoder.searchExtent = this.map.extent;
geocoder.localSearchOptions = {
minScale: 300000,
distance: 50000
};
}
defaultSources.push(geocoder);
} else if (esriLang.isDefined(geocoder.singleLineFieldName)) {
//Add geocoders with a singleLineFieldName defined
geocoder.locator = new Locator(geocoder.url);
defaultSources.push(geocoder);
}
}));
}
//add configured search layers to the search widget
var configuredSearchLayers = (this.config.searchLayers instanceof Array) ? this.config.searchLayers : JSON.parse(this.config.searchLayers);
array.forEach(configuredSearchLayers, lang.hitch(this, function (layer) {
var mapLayer = this.map.getLayer(layer.id);
if (mapLayer) {
var source = {};
source.featureLayer = mapLayer;
if (layer.fields && layer.fields.length && layer.fields.length > 0) {
source.searchFields = layer.fields;
source.displayField = layer.fields[0];
source.outFields = ["*"];
searchLayers = true;
defaultSources.push(source);
if (mapLayer.infoTemplate) {
source.infoTemplate = mapLayer.infoTemplate;
}
}
}
}));