Making the google map object global for access by other methods