diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..ccdda08
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "typescript.check.workspaceVersion": false
+}
\ No newline at end of file
diff --git a/README.md b/README.md
index ae4c0f7..7d75b8d 100644
--- a/README.md
+++ b/README.md
@@ -4,9 +4,9 @@
A WebGL virtual globe and map engine
-
-
+
+
## WebGlobe
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎,支持诺基亚地图、微软Bing地图、腾讯地图、天地图、OpenStreetMap等。
@@ -17,20 +17,21 @@ Demo: https://ispring.github.io/WebGlobe/index.html
**如果觉得不错,欢迎Star和Fork!**
## Setup dev environment
- 1. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发的代码都提交到该分支;master分支用于release,当develop分支中的代码比较稳定切有重要更新的时候,会将develop分支的代码merge到master分支,然后通过master分支进行发布新版本。
-
+ 1. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发的代码都提交到该分支;master分支用于release,当develop分支中的代码比较稳定且有重要更新的时候,会将develop分支的代码merge到master分支,然后通过master分支进行发布新版本。
+
2. 项目采用TypeScript编写,编译成JavaScript运行,推荐使用[Visual Studio Code](http://code.visualstudio.com/)作为编辑器。
-
- 3. 通过npm install -g typescript gulp-cli安装全局模块typescript和gulp。
-
+
+ 3. 通过npm install -g typescript安装全局模块typescript。
+
4. 在项目的根目录下执行npm install,安装所需模块。
-
- 5. 通过gulp进行编译打包,gulpfile中定义了多个task:
- - clear用于清除编译打包的结果
- - compile用于将TypeScript版本的模块编译成JavaScript版本的AMD模块
- - bundle用于将TypeScript版本的模块打包成一个JavaScript压缩文件
- - build用于执行以上所有的task
-
+
+ 5. 使用gulp进行编译打包,gulpfile中定义了多个task,并在package.json中定义了对应的npm scripts:
+ - npm run clear 用于清除编译打包的结果
+ - npm run compile 用于将TypeScript版本的模块编译成JavaScript版本的AMD模块
+ - npm run bundle 用于将TypeScript版本的模块打包成一个JavaScript压缩文件
+ - npm run build 用于执行以上所有的task
+ - npm start 用于执行build
+
6. 通过index-src.html可以加载AMD格式的源码,方便调试;通过index-bundle.html可以加载打打包压缩后的JavaScript文件,减少了文件体积和网络请求数量,用于生产环境。
diff --git a/deprecated/WEB-INF/web.xml b/deprecated/WEB-INF/web.xml
deleted file mode 100644
index 65d5512..0000000
--- a/deprecated/WEB-INF/web.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- index.html
- index.jsp
-
-
\ No newline at end of file
diff --git a/deprecated/proxy.jsp b/deprecated/proxy.jsp
deleted file mode 100644
index 4d5e102..0000000
--- a/deprecated/proxy.jsp
+++ /dev/null
@@ -1,42 +0,0 @@
-<%@page session="false"%>
-<%@page import="java.net.*,java.io.*"%>
-<%
- try {
- String reqUrl = request.getQueryString();
- URL url = new URL(reqUrl);
- HttpURLConnection con = (HttpURLConnection) url.openConnection();
- con.setDoOutput(true);
- con.setRequestMethod(request.getMethod());
- if (request.getContentType() != null) {
- con.setRequestProperty("Content-Type",request.getContentType());
- }
- con.setRequestProperty("Referer", request.getHeader("Referer"));
- int clength = request.getContentLength();
- if (clength > 0) {
- con.setDoInput(true);
- InputStream istream = request.getInputStream();
- OutputStream os = con.getOutputStream();
- final int length = 5000;
- byte[] bytes = new byte[length];
- int bytesRead = 0;
- while ((bytesRead = istream.read(bytes, 0, length)) > 0) {
- os.write(bytes, 0, bytesRead);
- }
- } else {
- con.setRequestMethod("GET");
- }
- out.clear();
- out = pageContext.pushBody();
- OutputStream ostream = response.getOutputStream();
- response.setContentType(con.getContentType());
- InputStream in = con.getInputStream();
- final int length = 5000;
- byte[] bytes = new byte[length];
- int bytesRead = 0;
- while ((bytesRead = in.read(bytes, 0, length)) > 0) {
- ostream.write(bytes, 0, bytesRead);
- }
- } catch (Exception e) {
- response.setStatus(500);
- }
-%>
diff --git a/index-bundle.html b/index-bundle.html
index 7e5daab..c64b6b0 100644
--- a/index-bundle.html
+++ b/index-bundle.html
@@ -12,15 +12,14 @@
-