vue-cesium-supermap
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

VUE SUPERMAP CESIUM

SuperMap iClient 3D for WebGL(built on Cesium) components for Vue 2.x

npm Travis Package Quality npm license

Languages

Documentation

https://lauxb.github.io/vue-cesium-supermap/Cesium

Get Start

Installation

npm i --save vue-cesium-supermap

Initialization

import Vue from 'vue'
import SuperMapCesium from 'vue-cesium-supermap'
 
Vue.use(SuperMapCesium, {
  // cesiumPath is the path of the Cesium library, such as
  // cesiumPath: './statics/Cesium'
  // use online reference for http
  // cesiumPath: 'http://support.supermap.com.cn:8090/webgl/Build'
  // use online reference for https
  cesiumPath: 'https://lauxb.github.io/vue-cesium-supermap/Cesium'
})

Usage

<template>
  <div class="content">
    <sm-viewer>
    </sm-viewer>
  </div>
</template>
 
<style>
.content {
  background-color: #f9f9f9;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
</style>

Contributing

Contributing Guide

License

MIT License

Copyright (c) 2018-present, lauxb 370681295@qq.com

Thanks

I referenced a lot from the vue-baidu-map project. Thanks very much!

Package Sidebar

Install

npm i vue-cesium-supermap

Weekly Downloads

12

Version

1.0.3

License

MIT

Unpacked Size

151 kB

Total Files

19

Last publish

Collaborators

  • lauxb