1.0.2 • Published 4 years ago

@supermap/vue-iclient-webgl v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@supermap/vue-iclient-webgl

简介

安装

npm install @supermap/vue-iclient-webgl

开发

方法一:在 vue 工程中的main.js 中写入以下内容:

import Vue from 'vue';
import VueiClientWebgl from '@supermap/vue-iclient-webgl';
import App from './App.vue';
 
Vue.use(VueiClientWebgl);
 
new Vue({
  el: '#app',
  render: h => h(App)
});

方法二:在 html 中通过标签引入:

  <link href="./node_modules/@supermap/iclient-webgl/Cesium/Widgets/widgets.css" rel="stylesheet">
  <script src="./node_modules/@supermap/iclient-webgl/Cesium/Cesium.js"></script>

  <script src="https://cdn.jsdelivr.net/npm/vue"></script>
  <script src="./dist/vue-iclient-webgl.min.js"></script>

示例

http://support.supermap.com.cn:8090/webglTest/examples/component/examples/examples.html#layer