map-draw-tool
v0.0.2
Published
``` npm i map-draw-tool -S ``` ## Quick Start ``` <template> <map-draw-tool style="height:100vh" @init='init' @created='created'/> </template>
Downloads
2
Readme
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'