If I do a search for layers ("type: layer") using the ArcGISPortal object:
var queryString = string.Format("{0} type:\"layer\" NOT \"web mapping application\"", searchString);
var searchParameters = new SearchParameters()
{
QueryString = queryString,
SortField = "avgrating",
SortOrder = QuerySortOrder.Descending,
Limit = 20
};
_ArcGISPortal.SearchItemsAsync(searchParameters, (results, exception) => { /* do something */ });
I get a list of ArcGISPortalItem objects. In this case they're layers, not web maps. Is it possible to add an item from these search results to an existing map object? I can't seem to find the documentation or samples that show you how to leverage "layer" items rather than "web map" items. Also, the Silverlight docs make mention of using only Web Maps. Perhaps that is a sign that you can't do anything with layers at this time.