AnsweredAssumed Answered

extend geocode to general search in basic viewer template

Question asked by JoeRat on Jul 16, 2014
Latest reply on Jul 21, 2014 by khutchins-esristaff

While I was checking out the code of the template I noticed this in the CreateGeocode.js code.


//If there is a valid search id and field defined add the feature layer to the geocoder array

            var searchLayers = [];

            if (this.config.response.itemInfo.itemData && this.config.response.itemInfo.itemData.application ....



Does this mean that I can use the geocoder to search my other data layers like in the Flex maps?  I haven't been able to figure out how to get this working.  I tried adding my map service REST enpoint to the geocoder array in commonConfig.js but that didn't work.  I tried turning my data into a location service and adding that but that didn't work either.  Can some one help me understand if I am on the right track or not and if I am how to properly config this option. - my current dev site.


Joseph Rathvon