使用Google我的地图和geoxml3 [英] use Google My Maps with geoxml3

查看:168
本文介绍了使用Google我的地图和geoxml3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道用geoxml3从谷歌的我的地图中使用数据的最佳方式是什么。
目前只能从我的地图中导出kmz数据格式。
我使用gexml kmz版本导出的kmz( http://geoxml3.googlecode .com / svn / branches / kmz / ),但无法使其正常工作(但在我将其加载到Google Earth中并将其另存为kmz时,它工作正常)。
我也尝试过使用到我的地图的网络链接(我最喜欢),但没有成功,只是收到了消息XMLHttpRequest无法加载 http://www.google.com/maps/d/kml?mid= .........。 Google不再允许这样做了吗?



来自柏林的最好的祝福
ralf

解决方案

谷歌正在努力做到这一点。 它直接与KmlLayer一起工作



如果我执行以下操作,我可以使用geoxml3显示数据:


  1. 下载网络链接kmz文件

  2. KMZ包含以下链接:



    http:// mapsengine.google.com/map/kml?mid=zRlyQCuWJlxY.kzodUy9plTB0&lid=zRlyQCuWJlxY.kcCknmQlcl24


  3. 该链接重定向至

    >

    https ://mapsengine.google.com/map/kml?mid = zRlyQCuWJlxY.kzodUy9plTB0& lid = zRlyQCuWJlxY.kcCknmQlcl24


  4. 我可以下载该KMZ文件,但它不直接与geoxml3,我需要解压缩并再次压缩它。我认为这是因为geoxml3的zip分支不支持google正在使用的特定种类的zip编码。


示例KMZ



KML示例


I'm wondering what is the best way to use the data from Googles' My Maps with geoxml3. At the moment it is only possible to export kmz data format from My Maps. I used the exported kmz with the geoxml kmz version (http://geoxml3.googlecode.com/svn/branches/kmz/) but couldn't make it work (but it worked when I loaded it in Google Earth and saved it again as kmz!). I also tried it with the network link to My Maps (which I would like best), but no success, just got the message "XMLHttpRequest cannot load http://www.google.com/maps/d/kml?mid=........." . Google doesn't semm to allow this anymore?

best greetings from Berlin ralf

解决方案

Google is making it harder to do this. It works directly with KmlLayer

If I do the following, I can display the data using geoxml3:

  1. download the "network link" kmz file
  2. That KMZ includes the following link:

    http://mapsengine.google.com/map/kml?mid=zRlyQCuWJlxY.kzodUy9plTB0&lid=zRlyQCuWJlxY.kcCknmQlcl24

  3. That link redirects to

    https://mapsengine.google.com/map/kml?mid=zRlyQCuWJlxY.kzodUy9plTB0&lid=zRlyQCuWJlxY.kcCknmQlcl24

  4. I can download that KMZ file, but it doesn't work directly with geoxml3, I need to unzip it and zip it up again. I think it is because the zip branch of geoxml3 doesn't support the particular kind of zip encoding google is using.

example of KMZ

example of KML

这篇关于使用Google我的地图和geoxml3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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