You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I save the returned listener handle to an array (this.listeners) for cleanup on exit)
mounted(){this.map=awaitthis.$refs.myMapRef.$mapPromise;this.listeners.push(this.map.addListener("center_changed",()=>{// 3 seconds after the center of the map has changed, pan back to the// marker.console.log("new center ="+JSON.stringify(this.map.getCenter()))}));this.listeners.push(this.map.addListener("bounds_changed",()=>{// 3 seconds after the center of the map has changed, pan back to the// marker.console.log("new bounds ="+JSON.stringify(this.map.getBounds()))}));this.listeners.push(this.map.addListener("zoom_changed",()=>{// 3 seconds after the center of the map has changed, pan back to the// marker.console.log("new zoom ="+JSON.stringify(this.map.getZoom()))}));}
the example here on how to 'watch' the ref on the map object doesn't produce any events
https://vue-google-maps-community-fork.netlify.app/examples/how-to-access-google-maps-object.html#how-to-access-google-maps-object
The text was updated successfully, but these errors were encountered: