Skip to content

ayiyayiyo/vue-cesium

 
 

Repository files navigation

VUE CESIUM

Vue 2.x components for CesiumJS. Load Cesium built package or other third-party packages which are built on Cesium.

Travis npm npm license Coverage Status Package Quality

Languages

Links

Get Start

VueCesium using the built CesiumJS library. You can use online, local, official native libraries or third-party libraries built on Cesium depending on your project needs.

Developed components.

In the gradual improvement...

Installation

npm i --save vue-cesium

Initialization

import Vue from 'vue'
import VueCesium from 'vue-cesium'
// Vue-Cesium will load Cesium.js from `https://unpkg.com/cesium/Build/Cesium/Cesium.js`
Vue.use(VueCesium)
import Vue from 'vue'
import VueCesium from 'vue-cesium'

Vue.use(VueCesium, {
  // cesiumPath is path of Cesium.js', for example:
  // local Cesium Build package:
  // cesiumPath: /static/Cesium/Cesium.js
  // Personal online Cesium Build package:
  // cesiumPath: 'https://zouyaoji.top/vue-cesium/statics/Cesium/Cesium.js'
  // Personal online SuperMap Cesium Build package:
  // cesiumPath: 'https://zouyaoji.top/vue-cesium/statics/SuperMapCesium/Cesium.js'
  // Official Online Cesium Build package:
  cesiumPath: 'https://unpkg.com/cesium/Build/Cesium/Cesium.js'
})

Usage

<template>
  <div class="viewer">
    <vc-viewer> </vc-viewer>
  </div>
</template>

<style>
.viewer {
  width: 100%;
  height: 400px;
}
</style>

TODOS

  • Add more components
  • ...

Contributing

Contributing Guide

License

MIT License

Copyright (c) 2018-present, zouyaoji [email protected]

Reference

Two good vue components projects: vue-baidu-map and vuelayers.

About

Vue 2.x components for CesiumJS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.0%
  • Vue 26.0%
  • GLSL 2.9%
  • CSS 2.2%
  • HTML 0.9%