Search Widget Results

2408
10
10-13-2015 09:47 AM
AshleyPeters
Occasional Contributor III

I'm using the search multiple sources example (https://developers.arcgis.com/javascript/jssamples/search_multiplesources.html) and I'm beginning to modify it to fit my needs. It's more or less working as it should, except for the results it returns when the search should select multiple points and instead it chooses just one.

For example, I want to find the boat ramps on a particular body of water. I input Pickwick, and it's automatically returning one ramp, instead of the 5 or 6 it should.

Anyone else run into this? Here's the applicable portion of my code, as it is now:

sources.push({
 featureLayer: new FeatureLayer("https://conservationgis.alabama.gov/adcnrweb/rest/services/Fishing_DCNR/MapServer/5"),
 searchFields: ["Waterbody"],
 displayField: "Access_Are",
 exactMatch: false,
 outFields:["Access_Are"],
 name: "Boat Ramps",
 placeholder: "Waterbody Name",
 maxResults: 15,
 maxSuggestions: 15,
 infoTemplate: rampsInfoTemplate,
 enableSuggestions: true,
 minCharacters: 0
 });
0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus

Issaic,

   In that thread you linked to you will see that pagination is NOT supported in FGDBs so if you are using one then you are out of options. How do you check? in ArcMap go to the layer properties and check the data source.