2016-06-28 3 views
0

내 애플리케이션의 Google Maps iOS SDK에있는 GMSMapView을 사용합니다. 설정 페이지에서 앱 언어를 변경할 수 있습니다. 런타임시지도에서 언어를 변경하는 방법은 무엇입니까?GoogleMap에서 언어를 변경하는 방법은 무엇입니까?

나는 다시로드하거나 Google지도 API를 사용하여에 대답이 방법

(void)prepareMap 
{ 
    [self.viewForMap removeAllSubviews]; 
    GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:latitude longitude:longtitude]; 
    GMSMapView *mapView = [GMSMapView mapWithFrame:rect camera:camera]; 
    [self.viewForMap addSubview:mapView]; 
} 

답변

1

에지도를 다시 만들 수 있습니다 - How can I get the Google Maps APIs to display in a language other than English?을 :

는 기본적으로 API를 기반으로 가장 적합한 언어를로드하려고 시도합니다 사용자 위치 또는 브라우저 설정. 일부 API를 사용하면 요청할 때 명시 적으로 언어를 설정할 수 있습니다.

거기에서 일부 Google지도 API의 HTTPS 요청에 language 매개 변수를 추가 할 수 있습니다. 그러나 이것을 허용하지 않는 일부 API의 경우 iphone default map app open with different language에 제안 된대로 Core Location Framework을 사용하여 현재 위치를 먼저 결정해야합니다.

관련 문제