1.0.0 • Published 5 years ago

gis-3d-bridge v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

3d gis bridge

Introduction

成都 3d gis 事件监听工具

Usage

install

npm install -S gis-3d-bridge

API

  • v-gis-3d
 v-gis-3d="['gis3dEvent', handler]"

usage example

  • index.html
<div id="app">
  <object
     id="initObject"
     v-gis-3d="['FireOnLButtonUp', onClick]"
     classid="CLSID:A1F1748A-2B6E-4616-954D-3F39B11DF57D">
  </object>
</div>
  • index.js
  import VueGis3DBridge from 'gis-3d-bridge'
  Vue.use(VueGis3DBridge)
  new Vue({
    el: '#app',
    methods: {
      onClick: function () {
        // todo
      }
    }
  })

environment

development environment

  • node v10.8.0

runtime environment

  • 所有支持es5的主流浏览器