如何使用像http://maps.google.com这样的URL在iPhone中通过mapkit框架显示地图....[它将地图作为新应用程序打开]

发布于 2024-08-09 23:21:08 字数 385 浏览 1 评论 0原文

当我们打开:http://maps.google.com &输入:类别:“汽车旅馆”+加利福尼亚+美国,我们得到加利福尼亚地区地图以及该地区的汽车旅馆。这是通过使用 iPhone 中的 MapsApp 来完成的。但它会关闭当前的应用程序&将地图作为新应用程序打开。

现在可以使用 Mapkit 框架做同样的事情吗?如何在 Mapkit 中使用 URL,例如

http://maps.google.com?q=category ....

When we open : http://maps.google.com & type : category:"motel"+California+USA we get the California region map with the motels in that region. This is done by using MapsApp in iphone. But it closes the current application & opens the map as New App.

Now is it possible to do the same thing with mapkit framework? How to use URL in Mapkit like

http://maps.google.com?q=category....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的心境我的脸 2024-08-16 23:21:08

MKMapView 添加到您的应用程序。看一下“指定可见地图区域”,将其以加利福尼亚州为中心。

至于显示汽车旅馆,您必须手动处理。您可以使用服务来查找酒店,然后将它们作为 MKAnnotations 添加到您的 MKMapView 中。

Add an MKMapView to your application. Take a look at "Specifying the Visible Map Region" to center it on California.

As for showing motels, you would have to handle that manually. You could use a service to find the hotels and then add them to your MKMapView as MKAnnotations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文