Hello! I want to modify the code from the Custom Search function (https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/) to be able to search for feature/streaming layers on the map that I have imported from the portal. At the moment I have modified the sample code, but I still search for adresses and not feature layers.
How would I do this in the best way?
I am new to ArcGIS and ESRI products so any help would be greatly appreaciated.
Okay, thank you! Do I pass in my portal id and each individual feature layer ID or can I pull features from the portal ID?
Hi @hersingerpetter, you'll want to use this sample as a guide instead if you want to use layers as a source: https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.