2013-10-30 91 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个结果。无需传递经纬度。只需传递位置名称即可。