@fawmi/vue-google-maps
Version:
Google Map components for Vue.js 3
47 lines (43 loc) • 654 B
JavaScript
import buildComponent from './build-component'
const props = {
center: {
type: Object,
twoWay: true,
required: true,
},
radius: {
type: Number,
twoWay: true,
},
draggable: {
type: Boolean,
default: false,
},
editable: {
type: Boolean,
default: false,
},
options: {
type: Object,
twoWay: false,
},
}
const events = [
'click',
'dblclick',
'drag',
'dragend',
'dragstart',
'mousedown',
'mousemove',
'mouseout',
'mouseover',
'mouseup',
'rightclick',
]
export default buildComponent({
mappedProps: props,
name: 'circle',
ctr: () => google.maps.Circle,
events,
})