self.mapView.allowCallout = YES; self.mapView.callout.delegate = self; self.mapView.touchDelegate = self; self.mapView.layerDelegate = self; NSString *tilePackagePath = [[NSBundle mainBundle] pathForResource:@my_tile_package ofType:@tpk]; AGSLocalTiledLayer *localTiledLayer = [AGSLocalTiledLayer localTiledLayerWithPath:tilePackagePath]; if(localTiledLayer != nil) { NSLog(@Loading TPK...); localTiledLayer.delegate = self; [self.mapView addMapLayer:localTiledLayer withName:@Tiled_BG]; } else { NSLog(@TPK does not exist); } [self.mapView addMapLayer:self.featureLayer1 withName:@Features1]; [self.mapView addMapLayer:self.featureLayer2 withName:@Features2]; self.featureLayer1.allowCallout = YES; self.featureLayer1.calloutDelegate = self; self.featureLayer1.delegate = self; self.featureLayer2.allowCallout = YES; self.featureLayer2.calloutDelegate = self; self.featureLayer2.delegate = self;
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.