谷歌地图路线绘制在iPhone上 [英] Google Map Route Draw on IPhone

查看:145
本文介绍了谷歌地图路线绘制在iPhone上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个有两个版本的应用程序。一个用于Web,另一个用于iPhone。

在网络应用程序中,我可以在道路上绘制路线(自动绘制沿着道路/高速公路的路线)和在道路之外绘制直线特定点)。

是否有可用于在地图上绘制路线的iPhone API?我可以在两个节点之间的地图上绘制一条直线,但我无法在iPhone中绘制路线图路线。



我正在使用iPhone 3.0和SDK 3.0

谢谢。

解决方案

请看他最近写的Craig Spitzkoff的 MapLinesAndAnnotations 样本:


  1. 绘制聚丛或在MKMapView上的路线(在iPhone上使用Map Kit) noreferrer>使用MKAnnotation,MKPinAnnotationView并在MKMapView中创建自定义MKAnnotationView


I am developing an application that has two versions. One for web and another for iPhone.

In the web app, I am able to draw a route on the road (drawing the route automatically that follows roads/highways) and off road (draw direct line between two specific points).

Is there an API, for iPhone, that can be used to draw a route on the map? I am able to draw a straight line on the map between two nodes, but i am not able to draw a road map route in iPhone.

I am using iPhone 3.0 and SDK 3.0

Thanks.

解决方案

Maybe you want to take a look at Craig Spitzkoff's MapLinesAndAnnotations sample that he recently wrote:

  1. Drawing polyines or routes on a MKMapView (Using Map Kit on the iPhone)
  2. Using MKAnnotation, MKPinAnnotationView and creating a custom MKAnnotationView in an MKMapView

这篇关于谷歌地图路线绘制在iPhone上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆