基本概述
<script src="js/three.min.js"></script>
<script src="js/gio.min.js"></script>
<script src="js/jquery.min.js"></script>
基本图形地球
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="js/three.min.js"></script>
<script src="js/gio.min.js"></script>
<script src="js/jquery.min.js"></script>
<title>demo1</title>
</head>
<body>
<div id="globeArea" style="width: 800px; height: 800px">
<script>
// 获得用来来承载您的IO地球的容器
var container = document.getElementById("globeArea");
// 创建Gio控制器
var controller = new GIO.Controller( container );
// 添加数据,了解更多有关Gio.js数据格式,查看文档:http://giojs.org/html/docs/dataIntro_zh.html
//controller.addData( data );
// 初始化并渲染地球
controller.init();
</script>
</div>
</body>
</html>
配置
var configs = {
color: {
surface:0xFF0000
}
};
var globe = new Gio.controller(container, configs);
- 通过API配置:
controller.configure(configs);
controller.configure({
color: {
halo:0xff0000
}
});
var configs = {
control: {
stats: false,
disableUnmentioned: false,
lightenMentioned: false,
inOnly: fa