# How to open or close an info window on event [Interactive example on CodeSandbox](https://stackblitz.com/edit/vue-google-maps-marker-w4hxvd?file=src/components/ComponentWithMap.vue). To open or close info windows after marker click, you can modify the `:opened` prop and maintain a state variable containing ID of the opened marker. ```html ```