SuperMap iClient 3D for WebGL(built on Cesium) components for Vue 2.x
https://lauxb.github.io/vue-cesium-supermap
npm i --save vue-cesium-supermap
import Vue from 'vue'
import SuperMapCesium from 'vue-cesium-supermap'
Vue.use(SuperMapCesium, {
// cesiumPath is the path of the Cesium library, such as
// cesiumPath: './static/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'
})
<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>
Copyright (c) 2018-present, lauxb [email protected]
I referenced a lot from the vue-baidu-map and vue-supermap-cesium projects. Thanks very much!