2013-02-25 4 views

답변

17

그것은 예를 들어, 기본적으로 this question의 반대입니다 :

GMSMapView* mapView = ...; 
CLLocationCoordinate2D coordinate = ...; 
... 
CGPoint point = [mapView.projection pointForCoordinate: coordinate]; 
0

귀하의 질문에 따르면, 사용자 위치를 cgpoint로 변환 하시겠습니까? 시도해보십시오.

CGPoint newCenter = [self.map convertCoordinate:coord toPointToView:self.map]; 

감사합니다.

+0

번이 내가 원하는 없습니다. – Mecid

+0

지도에서 userlocation의 창 CGPoint를 가져와야합니다. – Mecid

+0

미안하지만 처음에 질문이 없었습니다. 사용자 위치 좌표를 cgpoint로 변환하라는 메시지가 표시되면 메서드가 있고 코드를 편집했습니다. 희망이 도움이됩니다. –

관련 문제