hopetrydraw

1.0.12 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i hopetrydraw

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

286 kB

Total Files

14

Last publish

Collaborators

  • xujingliang