Groups
Groups
Sign in
Groups
Groups
谷歌地图 API 论坛
Conversations
About
Send feedback
Help
大家好,请教下在map上沿道路画一条路线
16 views
Skip to first unread message
fmo
unread,
Oct 28, 2009, 1:46:02 AM
10/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 谷歌地图 API 论坛
大家好,请教下在map上沿道路画一条路线,我在API上没找着..,类似Google地图中 创建我的地图 里面有这个沿道路画线的功能...先谢
过.有没有相关例子提供,感激不尽
Fei Chen
unread,
Oct 28, 2009, 3:52:03 AM
10/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
这个例子?
http://chinamaps.googlecode.com/svn/4blogs/mymapstoolbar.html
如果用API划线,你需要知道道路所有折点的坐标,然后使用GPolyline就可以了
2009/10/28 fmo
<
fsh...@gmail.com
>
大家好,请教下在map上沿道路画一条路线,我在API上没找着..,类似Google地图中 创建我的地图 里面有这个沿道路画线的功能...先谢
过.有没有相关例子提供,感激不尽
李白,字一日
unread,
Oct 28, 2009, 6:21:06 AM
10/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 谷歌地图 API 论坛
可以考虑使用GDirections实现。
将你需要的点输入进去就可以得到相应的GPolyline
冯仕波
unread,
Oct 28, 2009, 9:51:14 PM
10/28/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
哦.谢过,试试先.
冯仕波
unread,
Oct 29, 2009, 10:57:42 PM
10/29/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
GDirections这个类中提供的坐标,必须非常准确. 最后改用GPolyline这个类,画出来后,效果还成..
但需要实现这个功能: 该线路的顶点允许单击,单击后可以弹出该点详细信息,例如坐标,索引(必须),以及其它信息.
下面试了一下好像不行
允许该线路click为true之后,不知道怎么返回该GPolyline线路的顶点索引,API中也没有,是否需要每一个顶点,都要加一个marker么...
请各位帮忙看看,感激不尽.!^^
Rosen Jiang
unread,
Nov 1, 2009, 6:25:15 AM
11/1/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
你认真看api了?
GDirection就是绘制路线图。
PS:为何你的邮件被认为是垃圾邮件?
2009/10/28 fmo
<
fsh...@gmail.com
>
Rosen Jiang
unread,
Nov 1, 2009, 6:32:40 AM
11/1/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-map...@googlegroups.com
sorry,算我白回答了。才看到各位的回复。
2009/11/1 Rosen Jiang
<
rosen...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages