WebGlobe
基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎
Install / Use
/learn @iSpring/WebGlobeREADME
WebGlobe
WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎。
桌面版在线访问地址: https://ispring.github.io/WebGlobe/index.html
移动版二维码访问(小米系统中的微信、小米默认浏览器在某些情况下存在已知bug):
<div align="center"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/qrcode.png"> </div>如果觉得不错,欢迎Star和Fork!
Features
-
没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。
-
支持Google、高德、微软Bing、腾讯、360、OpenStreetMap等底图服务。
-
支持影像图、行政图以及实施交通图。
-
支持搜索服务,既可以按照POI类型搜索,也可以按照POI名称搜索。
-
支持路线规划服务,支持自驾车、公交、步行三种出行方式,自驾车和公交出行均提供多种出行方案。
-
支持移动浏览器并对移动浏览器做了优化,并针对移动端做了一个WebApp,能够实现常用的地图功能,具有实用性。
Getting Started
-
在项目的根目录下执行
npm install,安装所需模块。执行npm start即可进行打包编译,在buildOutput目录中,在浏览器中打开index.html可访问WebGlobe桌面版,打开webapp.html可访问WebGlobe移动版。 -
项目有两个主要的分支:develop分支和master分支,develop是主分支,开发代码提交到该分支,master分支用于发布新版本。
-
项目的核心渲染引擎部分使用TypeScript进行开发,移动端WebApp界面采用Babel + React + react-router进行开发,使用Webpack进行构建,推荐使用最新的Visual Studio Code作为编辑器。
-
package.json中定义了
npm scripts:- npm run clean 用于清除编译打包的结果
- npm run build:dev 对代码进行编译打包,代码没有压缩混淆,用于开发环境
- npm run build:prod 对代码进行编译打包,代码进行了压缩混淆,用于生产环境
- npm start 用于执行build:dev
-
接入持续集成服务Travis CI,保证代码质量。
-
有问题的话欢迎大家提issue或者到Gitter中进行讨论。
Screenshots
1. WebGlobe移动端主界面
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/1.png"> </a> </div>2. 附近搜索
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/2.png"> </a> </div>3. 搜索结果列表展示
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/3.png"> </a> </div>4. 搜索结果地图展示
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/4.png"> </a> </div>5. 路线规划
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/5.png"> </a> </div>6. 驾车出行路线
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/6.png"> </a> </div>7. 公交出行路线
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/7.png"> </a> </div>8. 步行出行路线
<div align="left"> <a target="_blank" href="#"> <img src="https://cdn.rawgit.com/iSpring/WebGlobe/develop/images/8.png"> </a> </div>Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
109.4kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
100.3kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
