如何使用像http://maps.google.com这样的URL在iPhone中通过mapkit框架显示地图....[它将地图作为新应用程序打开]
当我们打开:http://maps.google.com &输入:类别:“汽车旅馆”+加利福尼亚+美国,我们得到加利福尼亚地区地图以及该地区的汽车旅馆。这是通过使用 iPhone 中的 MapsApp 来完成的。但它会关闭当前的应用程序&将地图作为新应用程序打开。
现在可以使用 Mapkit 框架做同样的事情吗?如何在 Mapkit 中使用 URL,例如
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 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.