Giter Club home page Giter Club logo

vue-cesium-supermap's Introduction

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

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: './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'
})

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 [email protected]

Thanks

I referenced a lot from the vue-baidu-map and vue-supermap-cesium projects. Thanks very much!

vue-cesium-supermap's People

Contributors

lauxb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-cesium-supermap's Issues

右上角相机控制按钮在移动端使用时报错

右上角相机控制按钮在移动端使用时报错:
VM472:1 Uncaught TypeError: Cannot read property 'touches' of undefined
at w.handleMouseDown (eval at (Cesium.js:1), :1:3918513)
at HTMLDivElement.eval (eval at (Cesium.js:1), :1:3770146)

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.