// 显示基础地图
NSArray *bundleVtpk =[[NSBundle mainBundle] pathsForResourcesOfType:@".vtpk" inDirectory:nil];
NSURL *pathUrl1 = [[NSURL alloc]initFileURLWithPath:[bundleVtpk objectAtIndex:0]];
// 设置代理
self.mapView.touchDelegate = self;
AGSArcGISVectorTiledLayer *tiledLayer = [[AGSArcGISVectorTiledLayer alloc]initWithURL:pathUrl1];
AGSBasemap *basemap =[AGSBasemap basemapWithBaseLayer:tiledLayer];
// 去除水印
AGSLicenseResult *licenseResult = [AGSArcGISRuntimeEnvironment setLicenseKey:@“runtimelite,1000,rud5799562951,none,PM0RJAY3FLLR2B3TR001” error:nil];
self.mapView.map = [[AGSMap alloc] initWithBasemap:basemap];
self.mapView.interactionOptions.rotateEnabled = NO;
self.mapView.locationDisplay.showLocation = YES;
self.mapView.locationDisplay.showPingAnimationSymbol = NO;//取消闪烁的光圈
self.mapView.locationDisplay.showAccuracy = NO;//取消闪烁的光圈
self.mapView.l
arcgis地图加载离线地图
最新推荐文章于 2024-08-10 22:33:28 发布
该博客介绍了如何在ArcGIS地图中加载离线.vtpk文件作为基础地图,并设置了地图的一些交互选项,如禁止旋转、显示当前位置等。同时,还加载了业务操作图层并设置了默认显示区域。
摘要由CSDN通过智能技术生成