Bha*_*anu 5 dictionary objective-c mkmapview ios
我想用谷歌地图显示使用MKMapview的 3D建筑
所需的Mapview显示3d建筑:
我现在的地图就像
我已经设定 _mapView.showsBuildings =YES;
码:
CLLocationCoordinate2D ground = CLLocationCoordinate2DMake(53.58448, -8.93772);
CLLocationCoordinate2D eye = CLLocationCoordinate2DMake(53.58448, -8.93772+.0020);
MKMapCamera *mapCamera = [MKMapCamera cameraLookingAtCenterCoordinate:ground
fromEyeCoordinate:eye
eyeAltitude:3300];
_mapView.camera.pitch = 10;
_mapView.showsBuildings =YES;
_mapView.pitchEnabled = YES;
_mapView.showsPointsOfInterest = YES;
_mapView.zoomEnabled = YES;
_mapView.scrollEnabled = YES;
_mapView.showsUserLocation = NO;
_mapView.camera = mapCamera;
Run Code Online (Sandbox Code Playgroud)