2
코드에 표시된대로 GMSMapVIew 개체를 만들었습니다. 내가 코드를 다음과 같이 카메라를 재배치 추가로 시도iOS 용 Google지도의 GMSMapView에서 카메라를 이동할 수 없습니다.
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:latitude
longitude:longitude
zoom:15];
mapView_ = [[GMSMapView alloc] initWithFrame:CGRectMake(505, 280, 427, 200)];
mapView_.camera = camera;
mapView_.myLocationEnabled = YES;
UIViewController *mapController = [[UIViewController alloc] initWithNibName:nil bundle:nil];
mapController.view = mapView_;
[self addChildViewController:mapController];
[self.view addSubview:mapView_];
하지만 중 하나없이 성공 : 불행하게도, 카메라가 오른쪽에 설정되어 있지 않은 좌표
이CLLocationCoordinate2D current = CLLocationCoordinate2DMake(latitude,longitude);
GMSCameraUpdate *currentCam = [GMSCameraUpdate setTarget:current];
[mapView_ animateWithCameraUpdate:currentCam];
아무도 생각을 가지고 있는가, 무엇을 생각합니다 내가 잘못 했습니까? 아니면 iOS 용 Google지도에서이 간단한 버그입니까?
그것은 실제로 두 번째 기회였다. 그것은 그것없이 동일했고, 완전히 다른 위치에있는 camer를 지적했다. 나는 지난 버전으로 업그레이 드하고 그것은 지금 작동 보인다. 어쨌든 힌트를 주셔서 감사합니다! – mbpro