diff --git a/src/components/polyline.js b/src/components/polyline.js index 4b81b76..7282e74 100644 --- a/src/components/polyline.js +++ b/src/components/polyline.js @@ -43,9 +43,15 @@ export default buildComponent({ name: 'polyline', ctr: () => google.maps.Polyline, - - afterCreate() { + emits: evants, + afterCreate(inst) { let clearEvents = () => {} + + events.forEach((event)=> { + inst.addListener(event, (payload)=> { + this.$emit(event, payload) + }); + }) this.$watch( 'path',