Find webmap portal items by using a search term.
Portals can contain many portal items and at times you may wish to query the portal to find what you're looking for. In this example, we search for webmap portal items using a text search.
Enter search terms into the search bar. Once the search is complete, a list is populated with the resultant webmaps. Tap on a webmap to set it to the map view. Scrolling to the bottom of the webmap recycler view will get more results.
- Create a new
Portal
and load it. - Create new
PortalItemQueryParameters
. Set the type toPortalItem.Type.WebMap
and add the text you want to search for. - Use
portal.FindItemsAsync(params)
to find matching items.
- Portal
- PortalItem
- PortalQueryParameters
- PortalQueryResultSet
keyword, query, search, webmap