1.0.12 • Published 2 years ago
hopetrydraw v1.0.12
hopetrydraw
map draw component
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
#main.js中引用组件
import hopetrydraw from 'hopetrydraw'
Vue.use(hopetrydraw)
#组件中使用
<Draw :mapView="mapView" :featureData="featureData" @saveFeature="save"></Draw>
mapView:{
center:[35.12122,118.322032],
zoom:13
}
featureData:GeoJSON Object
For detailed explanation on how things work, consult the docs for vue-loader.