ios - 适用于 iOS 的 Delphi Google Maps SDK

标签 ios google-maps delphi delphi-xe5 delphi-xe4

我是 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

没有控制 enter image description here

有控件 enter image description here

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/

相关文章:

c++ - 如何在 Windows (win32) 上获取每个线程的 cpu 使用率

iphone - UILabel 显示不更新

ios - 从 TableView 中删除行 | NSUserDefaults + NSKeyedArchiver

ios - 使用 segue : index out of range 从结构数组传递值

c++ - 需要帮助将 Graphics32 Delphi 示例转换为 C++

delphi - 使用 StrUtils 的奇怪行为 'SearchBuf'

ios - Xcode 管理器中存在重复文件?

Android 谷歌地图 Kml 解析不工作

javascript - 获取 Google map 上绘制的折线的所有点 -

java - 如何测量我当前位置和给定地址之间的距离?