self.dynamicLayer = [[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:@"http://192.168.0.2:6080/arcgis/rest/services/EARTHQUAKE/MetropolitanCatalogService/MapServer"]];
//通过定义数组里面的值,可以控制对应的层显示,例如 数组为2 则显示2
self.dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:2], nil];
[self.mapView addMapLayer:self.dynamicLayer withName:@"Dynamic Layer"];
以上代码就是ArcGIS for IOS 控制动态图层显示哪层显示与否
ArcGIS for IOS 动态图层 分层显示(个人)
最新推荐文章于 2021-06-16 10:37:00 发布