|
1 |
| -<p align="center"> |
| 1 | +<div align="center"> |
2 | 2 | <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"> |
4 | 4 | </a>
|
5 | 5 | <p align="center">A WebGL virtual globe and map engine</p>
|
6 |
| -</p> |
7 |
| - |
| 6 | +</div> |
8 | 7 |
|
9 | 8 |
|
10 | 9 | ## WebGlobe
|
11 | 10 | [](https://travis-ci.org/iSpring/WebGlobe)
|
12 |
| -[](https://github.com/iSpring/WebGlobe/releases) |
13 |
| -[](https://gitter.im/iSpring/WebGlobe) |
| 11 | +[](https://github.com/iSpring/WebGlobe/releases) |
| 12 | +[](https://gitter.im/iSpring/WebGlobe) |
14 | 13 |
|
15 | 14 | [](http://caniuse.com/#search=WebGL)
|
16 | 15 | [](http://caniuse.com/#search=WebGL)
|
|
25 | 24 | [](http://caniuse.com/#search=WebGL)
|
26 | 25 |
|
27 | 26 |
|
28 |
| -WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎,支持Google地图、微软Bing地图、OpenStreetMap等。 |
| 27 | +WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎。 |
29 | 28 |
|
30 |
| -没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。效率高,内存占用少。会持续完善,目标是使其成为三维在线地图服务网站。 |
| 29 | +桌面版在线访问地址: https://ispring.github.io/WebGlobe/index.html |
31 | 30 |
|
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> |
33 | 35 |
|
34 | 36 | **如果觉得不错,欢迎Star和Fork!**
|
35 | 37 |
|
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,能够实现常用的地图功能,具有实用性。 |
38 | 50 |
|
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移动版。 |
40 | 53 |
|
41 |
| - 3. 在项目的根目录下执行npm install,安装所需模块。 |
| 54 | + 2. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发代码提交到该分支,master分支用于发布新版本。 |
42 | 55 |
|
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`: |
44 | 59 | - npm run clean 用于清除编译打包的结果
|
45 | 60 | - npm run build:dev 对代码进行编译打包,代码没有压缩混淆,用于开发环境
|
46 | 61 | - npm run build:prod 对代码进行编译打包,代码进行了压缩混淆,用于生产环境
|
47 | 62 | - npm start 用于执行build:dev
|
48 | 63 |
|
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> |
0 commit comments