我正在使用谷歌室内地图,但我想根据谷歌地图中水平栏选择的楼层打开楼层商店列表。我如何使用 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 函数
我必须显示该楼层当前选择的商店列表。