我正在使用谷歌室内地图,但我想打开的地板商店名单,根据选择的楼层,从水平酒吧在谷歌地图。如何使用didChangeActiveLevel函数。请帮帮我
- (void)viewDidLoad
{
[super viewDidLoad];
GMSMarker *marker=[[GMSMarker alloc]init];
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:28.566648700000000000
longitude:77.323976099999980000
zoom:18];
self.mapView=[GMSMapView mapWithFrame:self.view.bounds camera:camera];
self.mapView.myLocationEnabled=NO;
self.mapView.settings.compassButton=YES;
self.mapView.settings.myLocationButton=YES;
[self.view addSubview:self.mapView];
}
- (void) didChangeActiveLevel:(GMSIndoorLevel *) level
{
NSLog(@"event fired");
}当我从水平栏中选择楼层时,没有启动didChangeActiveLevel函数
我必须给你看一张目前选定的那层楼的商店清单。
发布于 2014-07-30 06:57:39
我忘记连接委托,所以我面临问题,我通过在代码中添加下面的代码来解决这个问题
self.mapView.delegate=self;
self.mapView.IndoorDisplay.delegate=self;https://stackoverflow.com/questions/24970284
复制相似问题