event will be undefined if methods like `setCenter` are called on an invisible map. `if (!event) return`?