2013-10-30 134 views
0

我是新的iOS平臺,我試圖使用谷歌地圖的iOS應用程序。我已經在XE5中找到了樣本 \ RAD Studio \ 12.0 \ Samples \ MobileCodeSnippets \ Location 這有效,但是如何隱藏Google地圖上的控件。德爾福谷歌地圖SDK的iOS

** 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

與對照 enter image description here

B) Goodle SDK爲Delphi XE4/XE5或在德爾福谷歌地圖iOS版組件 任何能告訴我如何使用谷歌地圖API在iOS中使用谷歌地圖? 像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個結果。無需傳遞經緯度。只需傳遞位置名稱即可。