Coder Social home page Coder Social logo

zjdyzww / vue-iclient3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from supermap/vue-iclient3d

0.0 1.0 0.0 12.68 MB

基于SuperMap3D自研客户端封装的Vue组件

License: Apache License 2.0

JavaScript 91.28% CSS 0.89% HTML 0.06% Vue 7.60% SCSS 0.18%

vue-iclient3d's Introduction

vue-iClient3D

简介

特点:

  • 采用当前Vue3升级组件,相比原来有更快的速度和更好的性能
  • 实现了界面与功能分离,可以更灵活的适用于各种应用场景
  • 全面的开源组件源码,可以更容易的理解和修改等二次开发,轻松实现自定义组件

Vue目前提供的组件可以参考示例项目中,如您在使用过程中遇到问题,或更好的使用建议,欢迎提issues,开发人员看到会及时给予处理

快速使用

Vue工程,NPM 安装:

npm install vue-iclient3d --save
1、修改index.html文件:
  • 在index.html里引入SuperMap3D等资源文件。
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://www.supermapol.com/earth/SuperMap3D/SuperMap3D.js"></script>
  <title>webgl3d</title>
</head>
<body>
  <div id="app"></div>
  <script type="module" src="/src/main.js"></script>
</body>
</html>
2、修改main.js文件:
import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App);
 
// 引入ui依赖
import {
  Button,
  Layout,
  Checkbox,
  Switch,
  Radio,
  Spin,
  Menu,
  Dropdown,
  Input,
  Select,
  Timeline,
  InputNumber,
  Slider
} from "ant-design-vue";
import 'ant-design-vue/dist/antd.css';
app.use(Button)
    .use(Timeline)
    .use(Layout)
    .use(Radio)
    .use(Menu)
    .use(Input)
    .use(Spin)
    .use(Select)
    .use(Dropdown)
    .use(Switch)
    .use(Checkbox)
    .use(InputNumber)
    .use(Slider);
    
// 引入vue-iclient3d组件包
import webgl3d from 'vue-iclient3d'
import 'vue-iclient3d/lib/index.css'
app.use(webgl3d)  
app.mount('#app')
3、在App.vue里测试使用量算功能组件:
<template>
  <sm3d-viewer scene-url="http://www.supermapol.com/realspace/services/3D-ZF_normal/rest/realspace">
    <sm3d-measure></sm3d-measure>
  </sm3d-viewer>
</template>
<script>

vue-iclient3d's People

Contributors

supermapliukaiyun avatar sulegis avatar openluck 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.