Select to view content in your preferred language

basemap gallery

4054
11
Jump to solution
05-07-2012 02:49 PM
LukePhilips
New Contributor III
Is there equivalent functionality in the iOS api to get the standard ESRI base map gallery like you see in ArcGIS Online and the other web API's?
0 Kudos
11 Replies
LukePhilips
New Contributor III
getting the URL to the thumbnail image for each baseMapGallery item, it looks like it's a mix of hard-coding and dynamic content to build the URL.
For example, I could build
{portal_url}+"/sharing/rest/content/items"+{itemId}+"/info/"+{thumbnailFileName}

which would build as an example: http://www.arcgis.com/sharing/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerr...

Is there something that helps me not have to hard-code some of the URL?
0 Kudos
NimeshJarecha
Esri Regular Contributor
You do not need to contract a URL. If AGSPortalItem::thumbnailFileName property is not NIL then you should execute AGSPortalItem's fetchThumbnail method. Once, that successfully execute, you will get thumbnail image in portalItem:operation:didFetchThumbnail: delegate method of AGSPortalItemDelegate.

Also, once that method execute successfully, you will get portal item thumbnail in AGSPortalItem's thumbnail property.

Hope this helps!

Regards,
Nimesh
0 Kudos