Giter Site home page Giter Site logo

cesium-vue-static's Introduction

cesium-vue-static(基于vuecli2.x 静态资源版本)

一个整合了Cesium的VueCli2.x的脚手架工具[静态资源版]

1.项目为VueCli+Cesium静态资源版, 集成了cesium罗盘插件与cesium量算插件。

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

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

Q&A

为什么使用静态资源版?

优点:一些第三方cesium插件并没有提供NPM包,以模块化的方式引入cesium没办法直接使用这些第三方插件包,通过静态资源的方式可以解决此问题。

缺点:没办法以模块的方式引入cesium,也就意味着无法按需加载。

静态资源版在开发方式有何不同?

在开发方法上与模块化版本(cesium-vue)没有其他区别,语法与cesium的使用方式一致,包括打包方式。

Build Setup

# 安装依赖
npm install

# 运行开发环境
npm run dev

# 编译
npm run build

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

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

浏览器兼容报告

Image text

cesium-vue-static's People

Contributors

shareqiu1994 avatar

Stargazers

 avatar  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.