2013-10-30 5 views
0

iOS 플랫폼을 처음 사용하면서 iOS 응용 프로그램 용 Google지도를 사용하려고했습니다.\ RAD Studio \ 12.0 \ Samples \ MobileCodeSnippets \ Location 이 샘플은 작동하지만 Google지도의 컨트롤을 숨기는 방법입니다.iOS 용 델파이 Google지도 SDK

** A) ** URL 링크를 사용하여 구글의 기본 컨트롤을 사용하지 않도록 설정하는 방법 : http://www.w3schools.com/googleAPI/google_maps_controls.asp

내가이

const 
LGoogleMapsURL: String = 'https://maps.google.com/maps?q=%s,%s&output=embed'; 
var 
    sLatitude ,sLongitude : string; 
begin 
    sLatitude := 'Latitude: ' + '15.4989'; 
    sLongitude := 'Longitude: ' + '73.8278'; 
    WebBrowser1.Navigate(Format(LGoogleMapsURL, [sLatitude, sLongitude])); 
end; 

같은 시도되는 기본 컨트롤을 사용하지 않으려면하지만 어떻게 사용합니까 disableDefaultUI : true 기본 컨트롤과 맵을 제거 하시겠습니까? 나는이

maps.google.com/maps?z=12&t=m&q=loc:38.9419&style=feature:all|element:labels|visibility:off 

같은 컨트롤은 시도했다 컨트롤 enter image description here

B) Goodle 델파이 XE4/XE5에 대한 SDK 또는 델파이 iOS 용 구글지도에 대한 구성 요소 enter image description here

Google지도 API를 사용하여 iOS에서 Google지도를 사용하는 방법을 알려주시겠습니까?

https://developers.google.com/maps/documentation/ios/처럼 내가 iOS components을 발견하지만 그들은 사과

답변

1
https://maps.googleapis.com/maps/api/place/textsearch/xml?radius=50000&query=%@&sensor=true&key=UseYourOwnKey 

사용이 구글 API를 매핑합니다. 이 api에서 검색어로 내 위치를 전달합니다. 검색 위치와 관련된 상위 20 개의 결과가 표시됩니다. 위도와 경도를 통과 할 필요가 없습니다. 위치 이름을 전달하십시오.