Groups
Groups
Sign in
Groups
Groups
谷歌地图 API 论坛
Conversations
About
Send feedback
Help
是否能够加载本地的KML文件
27 views
Skip to first unread message
温冰洋
unread,
Nov 18, 2009, 1:53:00 AM
11/18/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
大家好,
我在本地localhost环境下,加载本地的KML文件,发现没有效果。引用外网的KML文件,才有相应的地图变化。难道KML文件要放在外网上才能够正确加载吗?谢谢大家~~
Fei Chen
unread,
Nov 18, 2009, 1:58:47 AM
11/18/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://groups.google.com/group/google-maps-api-china/browse_thread/thread/8cb9964202de1482#
2009/11/18 温冰洋
<
arde...@gmail.com
>
温冰洋
unread,
Nov 18, 2009, 2:22:50 AM
11/18/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
谢谢Fei Chen给予的及时回复,看了那个帖子之后我还是有一些疑问。我用Php+mysql+drupal在本地建立一个网站,我的KML文件是放在“网站”文件夹里边的,通过浏览器键入
http://localhost/drupal/../xx.kml
是可以访问到的,并不是随便放在了像某个盘符的根目录这样的地方。这样的话,我觉得JS应该是可以访问到的吧。我学艺不精,还请Fei Chen 费心多多指导。
2009/11/18 Fei Chen
<
phini...@gmail.com
>
温冰洋
unread,
Nov 18, 2009, 2:38:37 AM
11/18/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
这个KML文件是需要Google来访问的,所以存放在本地的话Google就访问不到了,是这样的吧,这样就没办法有效的叠加KML。
2009/11/18 温冰洋
<
arde...@gmail.com
>
Fei Chen
unread,
Nov 18, 2009, 3:19:15 AM
11/18/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
指导谈不上,有问题大家一起讨论
不过我想你自己已经给出答案了,呵呵,在本机localhost上并不是真正意义上的publicly accessible web server,这个是api文档了里面对kml提出的要求
http://code.google.com/apis/maps/documentation/reference.html#GGeoXml
2009/11/18 温冰洋
<
arde...@gmail.com
>
温冰洋
unread,
Nov 18, 2009, 4:14:12 AM
11/18/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
呵呵呵,嗯,谢谢 Fei Chen 的帮助~~~
2009/11/18 Fei Chen
<
phini...@gmail.com
>
Tengfei Wei
unread,
Nov 18, 2009, 6:41:09 PM
11/18/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
kml 是google的东西,你没有联系google的引擎是不会起到作用的。但是我觉得kml可以用google earth 打开,你可以试一下。
2009/11/18 温冰洋
<
arde...@gmail.com
>
--
Phil Wei
1(403)389-3548
#64 Tuscany Springs Way, NW
Calgary, AB, T3L2N4
Canada
Reply all
Reply to author
Forward
0 new messages