链接到Google云端硬盘上的kml/kmz文件 [英] Linking to kml/kmz files on Google Drive

查看:187
本文介绍了链接到Google云端硬盘上的kml/kmz文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将kml和kmz文件保存在旧版Google协作平台的文件柜中.我将永久链接复制到这些文件,然后将其粘贴到Google Maps的搜索框中以覆盖地标.

我已经将测试的kml文件保存在新的Google云端硬盘上的文件夹中,但是我不知道如何获得可以粘贴到Google Maps中的永久链接.我发现此链接 https://webapps.stackexchange. com/questions/26371/how-do-i-share-a-permalink-from-google-drive ,并用它来创建此永久链接 https://docs.google.com/file/d/0B9sBXp66G86xWmlRbkZiYlRNdmc/edit?usp=共享 但Google Maps无法将其识别为有效的kml文件.我需要更改URL吗?

谢谢.

解决方案

  1. 设置您的根文件夹以在公共场所共享.右键点击文件夹>共享>在网络上公开
  2. 在目录中上传.html文件>打开>预览
  3. 这是您的html的网址,您可以找到所需的kmz文件的路径.

例如,这是我的html文件

https://googledrive.com/host/0B1YPetHU8aMQMmtrcFB4eTMzd1E/kml_overlay.html /p>

我的KMZ文件网址为

https://googledrive.com/host/0B1YPetHU8aMQMmtrcFB4eTMzd1E/kmz/river.kmz /a>

如果要查看文件列表,请访问根级别.

I've saved kml and kmz files in a file cabinet in the old Google Sites. I copy the permalink to these files and paste it into the search box on Google Maps to overlay the placemarks.

I've saved a test kml file in a folder on the new Google Drive, but I can't figure out how to get a permalink that I can paste in Google Maps. I found this link https://webapps.stackexchange.com/questions/26371/how-do-i-share-a-permalink-from-google-drive and used it to create this permalink https://docs.google.com/file/d/0B9sBXp66G86xWmlRbkZiYlRNdmc/edit?usp=sharing but Google Maps does not recognize it as a valid kml file. Do I need to change the URL?

Thanks.

解决方案

  1. Set your root folder to share in the public. Right click on the folder > Share > Public on the web
  2. Upload .html file in the directory > Open it > Preview
  3. That's the url of your html, and you can find out the path to the kmz file that you want.

For example, here is my html file

https://googledrive.com/host/0B1YPetHU8aMQMmtrcFB4eTMzd1E/kml_overlay.html

My KMZ file url would be

https://googledrive.com/host/0B1YPetHU8aMQMmtrcFB4eTMzd1E/kmz/river.kmz

If you would like to see the list of files, access the root level.

这篇关于链接到Google云端硬盘上的kml/kmz文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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