0.0.2 • Published 3 years ago

map-draw-tool v0.0.2

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

map-draw-tool

install

npm i map-draw-tool -S

Quick Start

<template>
  <map-draw-tool style="height:100vh" @init='init' @created='created'/>
</template>

<script>
import Vue from 'vue'
import 'map-draw-tool/lib/map-draw-tool.css'
import MapDrawTool from 'map-draw-tool'
Vue.use(MapDrawTool)

export default {
  data(){
    return {
      map:null
    }
  },
  methods:{
    init(map){
      this.map = map
    },
    created(data){
      console.log(data);
    }
  }
}
</script>

<style></style>

tool

import { $map } from 'map-draw-tool'