Skip to content

Commit 0f30b03

Browse files
authored
Merge pull request #82 from iSpring/develop
release version 0.5.1
2 parents b1cb493 + 1f626ed commit 0f30b03

File tree

160 files changed

+6165
-1578
lines changed

Some content is hidden

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

160 files changed

+6165
-1578
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015", "react"],
3+
"plugins": ["transform-class-properties", "add-module-exports"]
4+
}

.gitignore

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

README.md

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

98

109
## WebGlobe
1110
[![Build Status](https://travis-ci.org/iSpring/WebGlobe.svg?branch=develop)](https://travis-ci.org/iSpring/WebGlobe)
12-
[![Release](https://img.shields.io/badge/release-0.4.4-blue.svg)](https://github.com/iSpring/WebGlobe/releases)
13-
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/iSpring/WebGlobe)
11+
[![Release](https://img.shields.io/badge/release-0.5.1-blue.svg)](https://github.com/iSpring/WebGlobe/releases)
12+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/iSpring/WebGlobe)
1413

1514
[![Chrome 8+](https://img.shields.io/badge/Chrome-8+-1DA362.svg)](http://caniuse.com/#search=WebGL)
1615
[![Firefox 4+](https://img.shields.io/badge/Firefox-4+-E77827.svg)](http://caniuse.com/#search=WebGL)
@@ -25,27 +24,107 @@
2524
[![Opera Mobile 12+](https://img.shields.io/badge/Opera%20Mobile-12+-E23232.svg)](http://caniuse.com/#search=WebGL)
2625

2726

28-
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎,支持Google地图、微软Bing地图、OpenStreetMap等
27+
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎。
2928

30-
没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。效率高,内存占用少。会持续完善,目标是使其成为三维在线地图服务网站。
29+
桌面版在线访问地址: https://ispring.github.io/WebGlobe/index.html
3130

32-
Demo: https://ispring.github.io/WebGlobe/index.html
31+
移动版二维码访问(小米系统中的微信、小米默认浏览器在某些情况下存在已知bug):
32+
<div align="center">
33+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/qrcode.png">
34+
</div>
3335

3436
**如果觉得不错,欢迎Star和Fork!**
3537

36-
## Setup dev environment
37-
1. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发的代码都提交到该分支;master分支用于release,当develop分支中的代码比较稳定且有重要更新的时候,会将develop分支的代码merge到master分支,然后通过master分支进行发布新版本。
38+
## Features
39+
1. 没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。
40+
41+
2. 支持Google、高德、微软Bing、腾讯、360、OpenStreetMap等底图服务。
42+
43+
3. 支持影像图、行政图以及实施交通图。
44+
45+
4. 支持搜索服务,既可以按照POI类型搜索,也可以按照POI名称搜索。
46+
47+
5. 支持路线规划服务,支持自驾车、公交、步行三种出行方式,自驾车和公交出行均提供多种出行方案。
48+
49+
6. 支持移动浏览器并对移动浏览器做了优化,并针对移动端做了一个WebApp,能够实现常用的地图功能,具有实用性。
3850

39-
2. 项目采用TypeScript编写,使用Webpack进行编译打包,编译成JavaScript运行,推荐使用[Visual Studio Code](http://code.visualstudio.com/)作为编辑器。
51+
## Getting Started
52+
1. 在项目的根目录下执行`npm install`,安装所需模块。执行`npm start`即可进行打包编译,在`buildOutput`目录中,在浏览器中打开`index.html`可访问WebGlobe桌面版,打开`webapp.html`可访问WebGlobe移动版。
4053

41-
3. 在项目的根目录下执行npm install,安装所需模块
54+
2. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发代码提交到该分支,master分支用于发布新版本
4255

43-
4. package.json中定义了npm scripts:
56+
3. 项目的核心渲染引擎部分使用TypeScript进行开发,移动端WebApp界面采用Babel + React + react-router进行开发,使用Webpack进行构建,推荐使用最新的[Visual Studio Code](http://code.visualstudio.com/)作为编辑器。
57+
58+
4. package.json中定义了`npm scripts`
4459
- npm run clean 用于清除编译打包的结果
4560
- npm run build:dev 对代码进行编译打包,代码没有压缩混淆,用于开发环境
4661
- npm run build:prod 对代码进行编译打包,代码进行了压缩混淆,用于生产环境
4762
- npm start 用于执行build:dev
4863

49-
5. 开发过程中,在WebGlobe根目录下执行npm start即可进行打包编译
50-
51-
6. 有问题的话欢迎大家提issue或者到 https://gitter.im/iSpring/WebGlobe 进行讨论
64+
5. 接入持续集成服务[Travis CI](https://travis-ci.org/iSpring/WebGlobe),保证代码质量。
65+
66+
6. 有问题的话欢迎大家提issue或者到[Gitter](https://gitter.im/iSpring/WebGlobe)中进行讨论。
67+
68+
## Screenshots
69+
**1. WebGlobe移动端主界面**
70+
<div align="left">
71+
<a target="_blank" href="#">
72+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/1.png">
73+
</a>
74+
</div>
75+
76+
77+
**2. 附近搜索**
78+
<div align="left">
79+
<a target="_blank" href="#">
80+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/2.png">
81+
</a>
82+
</div>
83+
84+
85+
**3. 搜索结果列表展示**
86+
<div align="left">
87+
<a target="_blank" href="#">
88+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/3.png">
89+
</a>
90+
</div>
91+
92+
93+
**4. 搜索结果地图展示**
94+
<div align="left">
95+
<a target="_blank" href="#">
96+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/4.png">
97+
</a>
98+
</div>
99+
100+
101+
**5. 路线规划**
102+
<div align="left">
103+
<a target="_blank" href="#">
104+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/5.png">
105+
</a>
106+
</div>
107+
108+
109+
**6. 驾车出行路线**
110+
<div align="left">
111+
<a target="_blank" href="#">
112+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/6.png">
113+
</a>
114+
</div>
115+
116+
117+
**7. 公交出行路线**
118+
<div align="left">
119+
<a target="_blank" href="#">
120+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/7.png">
121+
</a>
122+
</div>
123+
124+
125+
**8. 步行出行路线**
126+
<div align="left">
127+
<a target="_blank" href="#">
128+
<img src="https://github.com/iSpring/WebGlobe/blob/develop/images/8.png">
129+
</a>
130+
</div>

images/1.png

24.2 KB
Loading

images/2.png

38.6 KB
Loading

images/3.png

68.4 KB
Loading

images/4.png

237 KB
Loading

images/5.png

41.2 KB
Loading

images/6.png

229 KB
Loading

images/7.png

227 KB
Loading

0 commit comments

Comments
 (0)