我是 iOS 平台的新手,我正在尝试将谷歌地图用于 iOS 应用程序。我在 XE5 中找到了样本 \RAD Studio\12.0\Samples\MobileCodeSnippets\Location 这有效,但我如何隐藏谷歌地图上的控件。
**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 删除 map 上的默认控件? 我试过这样的东西
maps.google.com/maps?z=12&t=m&q=loc:38.9419&style=feature:all|element:labels|visibility:off
没有控制
有控件
B) 适用于 Delphi XE4/XE5 的 Goodle SDK 或适用于 Delphi 中适用于 iOS 的 Google map 组件 谁能告诉我如何使用谷歌地图 API 在 iOS 中使用谷歌地图? 喜欢https://developers.google.com/maps/documentation/ios/
我找到了iOS components但是他们有苹果 map
最佳答案
https://maps.googleapis.com/maps/api/place/textsearch/xml?radius=50000&query=%@&sensor=true&key=UseYourOwnKey
使用这个谷歌 API。在此 api 中传递您的查询位置。您将获得与您的搜索位置相关的前 20 个结果。无需传递经纬度。只需传递位置名称即可。
关于ios - 适用于 iOS 的 Delphi Google Maps SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19674820/