AnsweredAssumed Answered

Search Widget

Question asked by jay.kapalczynski on Mar 20, 2020
Latest reply on Mar 20, 2020 by jay.kapalczynski

I have a search widget in my app.

After the search widget address is applied I have it run some code to return features within a certain distance.

This all works great....

// SEARCH WIDGET 
var searchWidget = new Search({
   view: view,
   popupEnabled: false
});
searchWidget.on("select-result", function () {
   searchRadius();
});

 

But what I want to do is pass the Search Widget an Address not manually enter it in the widget.

 

I want to read from a table and pass the individual addresses to the search widget and get the result from the code that have written.

 

Can I pass the searchWidget an address? If so an examples out there?

Outcomes