(void) didSelectNewBaseMap:(AGSPortalItem *)BaseMapPortalItem { AGSWebMap *NewBaseWebMap = [[AGSWebMap alloc] initWithPortalItem:BaseMapPortalItem]; AGSWebMapBaseMap *NewWebmapBaseMap = [[AGSWebMapBaseMap alloc]init]; NewWebmapBaseMap = [NewBaseWebMap baseMap]; [self.webmap openIntoMapView:self.mapView withAlternateBaseMap:NewWebmapBaseMap resetMapView:NO]; }
Solved! Go to Solution.
-(void) didSelectNewBaseMap:(AGSPortalItem *)BaseMapPortalItem { AGSWebMap *NewBaseWebMap = [AGSWebMap webMapWithPortalItem:BaseMapPortalItem]; NewBaseWebMap.delegate = self; } //webmap delegate - (void)webMapDidLoad:(AGSWebMap *)webMap { [self.webmap openIntoMapView:self.mapView withAlternateBaseMap:webMap.baseMap]; }
-(void) didSelectNewBaseMap:(AGSPortalItem *)BaseMapPortalItem { AGSWebMap *NewBaseWebMap = [AGSWebMap webMapWithPortalItem:BaseMapPortalItem]; NewBaseWebMap.delegate = self; } //webmap delegate - (void)webMapDidLoad:(AGSWebMap *)webMap { [self.webmap openIntoMapView:self.mapView withAlternateBaseMap:webMap.baseMap]; }
-(void) didSelectNewBaseMap:(AGSPortalItem *)BaseMapPortalItem { AGSWebMap *BaseWebMap = [[AGSWebMap alloc] initWithPortalItem:BaseMapPortalItem]; BaseWebMap.delegate = self; [self.sslchangeBaseMapdismissViewControllerAnimated:YEScompletion:nil]; } - (void) webMapDidLoad:(AGSWebMap *)webMap { [self.webmapopenIntoMapView:self.mapViewwithAlternateBaseMap:webMap.baseMap]; }