Skip to content

Commit 8517c45

Browse files
authored
Merge pull request #42 from iSpring/develop
merge develop 0.4.4 to master
2 parents bab02f8 + 3fed4e7 commit 8517c45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2556
-1373
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
/buildOutput
33
/src/**/*.js
4+
index.html

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"editor.renderWhitespace": "boundary",
23
"typescript.check.workspaceVersion": false
34
}

README.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<p align="center">
1+
<p align="center">
22
<a target="_blank" href="https://ispring.github.io/WebGlobe/index.html">
3-
<img src="https://github.com/iSpring/WebGlobe/blob/master/screenshot.png">
3+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/webglobe.png">
44
</a>
55
<p align="center">A WebGL virtual globe and map engine</p>
66
</p>
77

88

99

1010
## WebGlobe
11-
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎,支持诺基亚地图、微软Bing地图、腾讯地图、天地图、OpenStreetMap等。
11+
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎,支持Google地图、微软Bing地图、OpenStreetMap等。
1212

1313
没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。效率高,内存占用少。会持续完善,目标是使其成为三维在线地图服务网站。
1414

@@ -19,20 +19,14 @@ Demo: https://ispring.github.io/WebGlobe/index.html
1919
## Setup dev environment
2020
1. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发的代码都提交到该分支;master分支用于release,当develop分支中的代码比较稳定且有重要更新的时候,会将develop分支的代码merge到master分支,然后通过master分支进行发布新版本。
2121

22-
2. 项目采用TypeScript编写,编译成JavaScript运行,推荐使用[Visual Studio Code](http://code.visualstudio.com/)作为编辑器。
22+
2. 项目采用TypeScript编写,使用Webpack进行编译打包,编译成JavaScript运行,推荐使用[Visual Studio Code](http://code.visualstudio.com/)作为编辑器。
2323

24-
3. 通过npm install -g typescript安装全局模块typescript
24+
3. 在项目的根目录下执行npm install,安装所需模块
2525

26-
4. 在项目的根目录下执行npm install,安装所需模块。
27-
28-
5. 使用gulp进行编译打包,gulpfile中定义了多个task,并在package.json中定义了对应的npm scripts:
26+
4. package.json中定义了npm scripts:
2927
- npm run clear 用于清除编译打包的结果
30-
- npm run compile 用于将TypeScript版本的模块编译成JavaScript版本的AMD模块
31-
- npm run bundle 用于将TypeScript版本的模块打包成一个JavaScript压缩文件
32-
- npm run build 用于执行以上所有的task
33-
- npm start 用于执行build
34-
35-
6. 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了文件体积和网络请求数量,用于生产环境。
36-
37-
28+
- npm run build:dev 对代码进行编译打包,代码没有压缩混淆,用于开发环境
29+
- npm run build:prod 对代码进行编译打包,代码进行了压缩混淆,用于生产环境
30+
- npm start 用于执行build:dev
3831

32+
5. 有问题的话欢迎大家提issue或者到 https://gitter.im/iSpring/Lobby 进行讨论,这样更方便沟通。

gulpfile.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

images/logo.png

1.62 KB
Loading

index-bundle.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

index-src.html

Lines changed: 0 additions & 35 deletions
This file was deleted.

index.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
padding: 0;
44
}
55

6-
html,body{
6+
html,
7+
body {
78
width: 100%;
89
height: 100%;
910
}
@@ -14,17 +15,11 @@ body {
1415
cursor: default;
1516
}
1617

17-
#mapSelector {
18-
position: absolute;
19-
top: 20px;
20-
right: 20px;
21-
}
22-
2318
#canvasId {
2419
cursor: default;
2520
}
2621

27-
#blog {
22+
#about-me {
2823
position: absolute;
2924
right: 0;
3025
bottom: 0;

index.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import Kernel = require("./src/world/Kernel");
2+
import Globe = require("./src/world/Globe");
3+
4+
(function () {
5+
var canvas = <HTMLCanvasElement>document.getElementById("canvasId");
6+
var globe = new Globe(canvas);
7+
(<any>window).globe = globe;
8+
(<any>window).kernel = Kernel;
9+
})();

0 commit comments

Comments
 (0)