ArcGIS Rumetime for iOS sdk 添加png图片到地图上

arcgis runtime sdk 支持通过AGSRasterLayer加载图片到地图上。但对图片有要求,特别是png,jpg文件,要求同时提供对应的空间校正文件pgw,坐标系相关文件png.aux.xml. 三个文件在一起才能加载。

加载代码如下: = [[AGSMap alloc] initWithBasemap:[AGSBasemap topographicBasemap]]; =;

      AGSRaster * raster =  [[AGSRaster alloc] initWithName:@”8777c4d80a87475b8a4bc72ac053e6ec” extension:@”png”];

    AGSRasterLayer *rasterLayer = [[AGSRasterLayer alloc] initWithRaster:raster];

    self.rasterLayer = rasterLayer;

    [ addObject:rasterLayer];


Screen Shot 2019-11-28 at 8.01.23 AM

This entry was posted in Uncategorized.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">