google地球很壮观,适于演示。两种方式开发:javascript和KML。当然还可以visual C、java调用,这些还没学会。先介绍js开发。
首先展示一个裸地球。
- Load the Google Earth API.
- Create a DIV element to hold the plugin.
- Create functions to initialize the plugin.
- Call the initialization functions once the page has loaded.
完整的HTML页面如下:
<html>
<head>
<title>
Sample
</title>
<script
type
=
"text/javascript"
src
=
<html>
<head>
<title> Sample </title>
<script type = "text/javascript" src =
<head>
<title> Sample </title>
<script type = "text/javascript" src =

本文介绍了如何使用JavaScript开发Google Earth API,通过创建HTML页面、加载API、初始化函数等步骤展示了一个基本的地球视图。主要函数initCB用于添加地球元素,如开启大气层效果和显示国家边界。开发者需要注意首次运行可能需要安装插件,并且Google Earth API无需注册即可使用。
最低0.47元/天 解锁文章
&spm=1001.2101.3001.5002&articleId=7833771&d=1&t=3&u=fecf77b16658426b85c9a5433b4e3711)
833

被折叠的 条评论
为什么被折叠?



