Giter VIP home page Giter VIP logo

cesium-vue's Introduction

cesium-vue(基于vuecli2.x)

一个整合了Cesium的VueCli2.x的脚手架工具

1.项目为VueCli+Cesium的纯净版,除了VueCli自带的模块和Cesium模块,没有引入其他第三方模块。

2.根据您的项目需要,可以配置自己需要的模块,如Ui模块(ElementUi,museUi)等。

3.建议开发者将写好的Cesium功能封装成一个独立的模块,而不是将cesium的属性赋值给Vue的data对象中(会造成一些性能问题)。

Build Setup

# 安装依赖
npm install

# 运行开发环境
npm run dev

# 编译
npm run build

# 编译分析报告
npm run build --report

# 打开浏览器查看运行结果
localhost:8080

浏览器兼容报告

Image text

运行开发环境

Image text

2018/5/19 更新

  1. 此处更新将编译后的cesium文件存储于 static文件夹中 避免编译后cesium静态文件夹过多造成过散乱。
  2. 默认情况下,编译后的Webpack将Cesium 与我们的应用程序放在同一个块中,结果是巨大的。 此次更新将Cesium拆分成独立的代码块。

2018/06/03 更新

  1. 修复devServer环境自控制台启动警告。

2018/08/16 更新

  1. 添加ico图标。
  2. devServer环境自动打开默认浏览器。

基于该框架的演示项目

LBF WebEarth2
Image text

cesium-vue's People

Contributors

shareqiu1994 avatar

Watchers

 avatar

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.