在谷歌地图和谷歌地球之间切换 [英] Switch between google maps and google earth

查看:434
本文介绍了在谷歌地图和谷歌地球之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用KML文件,我可以在网站上显示Google Earth.现在,任何人都可以给我实现以下规范的想法吗?

我需要在Google Earth插件上方点击以下按钮

一个.用户必须能够在地图和地球之间切换.
b.用户应该能够将地图或地球保存并下载为图像

因此,我们必须使用相同的KML文件(用于Google Earth)来显示Google地图.之后,必须将Google Earth或Google Maps保存为图像.

Using a KML file I can show Google Earth in website. Now, can anyone give me idea to implement following specification?

I need following buttons above the Google Earth plugin

a. User must be able to switch between map and earth.
b. User should be able to save and download the map or earth as image

So we have to use same KML file (that is used for google earth) to show google map. After that google earth or the google maps have to be saved as image.

推荐答案

如何在Google Maps中使用KML文件:

http://googlemapsapi.blogspot.com/2006/11/kml-on-google- maps.html [^ ]

有多种用于将页面(或其一部分)转换为图像的技术.大多数都依赖于浏览器.

以下是适用于一组合理的浏览器的版本:

http://html2canvas.hertzen.com/ [ ^ ]

您必须对其进行测试,以查看它是否适用于Google Earth和Google Maps.
How to use KML file in google maps:

http://googlemapsapi.blogspot.com/2006/11/kml-on-google-maps.html[^]

There are various techniques for converting a page (or part thereof) to an image. Most are browser dependent.

Here''s one that works on a reasonable set of browsers:

http://html2canvas.hertzen.com/[^]

You''ll have to test it to see if it will work for google earth and google maps.


这篇关于在谷歌地图和谷歌地球之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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