|
地板
楼主 |
发表于 2016-3-3 16:30:28
|
只看该作者
@interface ViewController () <MAMapViewDelegate>
@property (nonatomic, strong) MAMapView *mapView;
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[MAMapServices sharedServices].apiKey = @"xxx";
self.mapView = [[MAMapView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds))];
self.mapView.delegate = self;
self.mapView.showsIndoorMap = YES;
NSLog(@"%f %f",self.mapView.indoorMapControlSize.width,self.mapView.indoorMapControlSize.height);
[self.view addSubview:_mapView];
}
这样设置后,能够正常显示地图,但是拖到朝阳大悦城位置后放到,依旧没法看到大悦城内部地图,也没有显示切换楼层的控件。是还需要加什么代码吗?
|
|