Giter Site home page Giter Site logo

ispring / webglobe Goto Github PK

View Code? Open in Web Editor NEW
773.0 60.0 284.0 6.96 MB

基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎

Home Page: https://ispring.github.io/WebGlobe/index.html

JavaScript 16.45% HTML 0.88% TypeScript 77.97% CSS 4.70%
webgl map globe earth html5 typescript opensource google-earth google-map

webglobe's Introduction

A WebGL virtual globe and map engine

WebGlobe

Build Status Release Gitter

Chrome 8+ Firefox 4+ IE11 Edge12+ Safari 5.1+ Opera 12.1+

Chrome for Android 25+ Firefox Mobile 4+ Safari Mobile 8.1+ Opera Mobile 12+

WebGlobe是基于HTML5原生WebGL实现的轻量级Google Earth三维地图引擎。

桌面版在线访问地址: https://ispring.github.io/WebGlobe/index.html

移动版二维码访问(小米系统中的微信、小米默认浏览器在某些情况下存在已知bug):

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

Features

  1. 没有使用第三方框架,无需插件,所有支持WebGL的浏览器均可使用。

  2. 支持Google、高德、微软Bing、腾讯、360、OpenStreetMap等底图服务。

  3. 支持影像图、行政图以及实施交通图。

  4. 支持搜索服务,既可以按照POI类型搜索,也可以按照POI名称搜索。

  5. 支持路线规划服务,支持自驾车、公交、步行三种出行方式,自驾车和公交出行均提供多种出行方案。

  6. 支持移动浏览器并对移动浏览器做了优化,并针对移动端做了一个WebApp,能够实现常用的地图功能,具有实用性。

Getting Started

  1. 在项目的根目录下执行npm install,安装所需模块。执行npm start即可进行打包编译,在buildOutput目录中,在浏览器中打开index.html可访问WebGlobe桌面版,打开webapp.html可访问WebGlobe移动版。

  2. 项目有两个主要的分支:develop分支和master分支,develop是主分支,开发代码提交到该分支,master分支用于发布新版本。

  3. 项目的核心渲染引擎部分使用TypeScript进行开发,移动端WebApp界面采用Babel + React + react-router进行开发,使用Webpack进行构建,推荐使用最新的Visual Studio Code作为编辑器。

  4. package.json中定义了npm scripts

    • npm run clean 用于清除编译打包的结果
    • npm run build:dev 对代码进行编译打包,代码没有压缩混淆,用于开发环境
    • npm run build:prod 对代码进行编译打包,代码进行了压缩混淆,用于生产环境
    • npm start 用于执行build:dev
  5. 接入持续集成服务Travis CI,保证代码质量。

  6. 有问题的话欢迎大家提issue或者到Gitter中进行讨论。

Screenshots

1. WebGlobe移动端主界面

2. 附近搜索

3. 搜索结果列表展示

4. 搜索结果地图展示

5. 路线规划

6. 驾车出行路线

7. 公交出行路线

8. 步行出行路线

webglobe's People

Contributors

ispring avatar yinheli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webglobe's Issues

有没有要用的demo

有没有要用的demo

比如我想在上面打点、划线、让地球自动转起来

菜鸟提问,编译时问题

error TS18003: No inputs were found in config file '***/tsconfig.json'. Specified 'include' paths were '["ts//*.ts"]' and 'exclude' paths were '["node_modules"]'.

启动时候,出现问题

我从github上下载了项目,通过 npm install 安装了依赖包,但是npm start 出现问题,
ERROR in ./src/core/world/EventHandler.ts
(32,7): error TS2554: Expected 2-3 arguments, but got 1.

ERROR in E:\WSM\Owner Studying\OpenGIS\WebGlobe-develop\tscon
error TS2688: Cannot find type definition file for 'es6-promi

ERROR in E:\WSM\Owner Studying\OpenGIS\WebGlobe-develop\tscon
error TS2688: Cannot find type definition file for 'react'.

ERROR in E:\WSM\Owner Studying\OpenGIS\WebGlobe-develop\tscon
error TS2688: Cannot find type definition file for 'react-dom
image

这是为何

Display error!

step 1. first zoom in view.
step 2. key down 'up'.
step 3. last zoom out view.

求助:编译报错

ERROR in ./src/core/world/EventHandler.ts
(32,7): error TS2554: Expected 2-3 arguments, but got 1.

ERROR in /Users/cutler/workspace/android/project/WebGlobe/tsconfig.json
error TS2688: Cannot find type definition file for 'es6-promise'.

ERROR in /Users/cutler/workspace/android/project/WebGlobe/tsconfig.json
error TS2688: Cannot find type definition file for 'react'.

ERROR in /Users/cutler/workspace/android/project/WebGlobe/tsconfig.json
error TS2688: Cannot find type definition file for 'react-dom'.

depth test doesn't work

Earth radius is 6378137. It is a big number. Bigger radius, less depth precision. It results in depth test issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.