My fellow web developers use ImageryTileLayer from ArcGIS API for JavaScript. I was unable to find anything similar in iOS SDK. How do we replace ImageryTileLayer?
The equivalent in ArcGIS Runtime is the AGSImageServiceRaster class, which you display via the AGSRasterLayer class:
Add raster data | ArcGIS Runtime API for iOS | ArcGIS Developers
ArcGIS Runtime SDK for iOS: AGSImageServiceRaster Class Reference
ArcGIS Runtime SDK for iOS: AGSRasterLayer Class Reference
Hi, Michael! Thank you for your reply!I tried to use the AGSRasterLayer & AGSImageServiceRaster, but it doesn't work for me. When I use image service URL from the AGSRasterLayer example on github, it works fine, but when I try the URL my teammates use on the web with ImageryTileLayer, the layer is not displayed. I also noticed, that the ImageServer info structure and attributes differ between these URLs.example URL: https://gis.ngdc.noaa.gov/arcgis/rest/services/bag_hillshades_subsets/ImageServer
URL we use: https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/GEBCO_2021_Bathymetry/ImageServer
So it brings us back to the original question: maybe I should use other layer class?
Hi,
I just gave this a try with another Runtime SDK - .NET - and it worked fine. But I noted:
Map = new Map(BasemapStyle.ArcGISDarkGray); ImageServiceRaster imageServiceRaster = new ImageServiceRaster(new Uri("https://gis.ngdc.noaa.gov/arcgis/rest/services/bag_hillshades_subsets/ImageServer")); RasterLayer rasterLayer = new RasterLayer(imageServiceRaster); await rasterLayer.LoadAsync(); Map.InitialViewpoint = new Viewpoint(rasterLayer.FullExtent); Map.OperationalLayers.Add(rasterLayer);
Thanks
Hi, @MichaelBranscomb!
The URL in your code sample works for me too, but this one doesn't.
According to Nicholas-Furness in this answer, the issue is related to LERC format, which is not supported for visualization by the runtime.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.