Search Widget Outside of Map with Autofill in version 3

151
1
08-17-2022 06:24 AM
fggriffith
New Contributor

I'm new to Esri... The project that I'm working on has migrated from Google Maps to Esri. The users would like the search widget outside of the map with address autofill, like they had with Google. I've seen something similar to this done with version 4, but we are using version 3.41

Any help is greatly appreciated.

0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

You don't need a Map to use Search by itself in 3x.

const search = new Search({}, "search");
search.startup();

search.on("search-results", (event) => {
    // do something with search results
    console.log(event);
});

 You can style the widget and stuff too.

0 Kudos