{"action":"opened","issue":{"url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1698","repository_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps","labels_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1698/labels{/name}","comments_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1698/comments","events_url":"https://api.github.com/repos/mapsplugin/cordova-plugin-googlemaps/issues/1698/events","html_url":"https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1698","id":254416882,"number":1698,"title":"Map blank if map-page gets loaded via navCtrl.setRoot","user":{"login":"macklus","id":3457708,"avatar_url":"https://avatars1.githubusercontent.com/u/3457708?v=4","gravatar_id":"","url":"https://api.github.com/users/macklus","html_url":"https://github.com/macklus","followers_url":"https://api.github.com/users/macklus/followers","following_url":"https://api.github.com/users/macklus/following{/other_user}","gists_url":"https://api.github.com/users/macklus/gists{/gist_id}","starred_url":"https://api.github.com/users/macklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macklus/subscriptions","organizations_url":"https://api.github.com/users/macklus/orgs","repos_url":"https://api.github.com/users/macklus/repos","events_url":"https://api.github.com/users/macklus/events{/privacy}","received_events_url":"https://api.github.com/users/macklus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T17:51:29Z","updated_at":"2017-08-31T17:51:29Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n[ ] question\r\n[X ] any problem or bug report\r\n[ ] feature request\r\n\r\n**The plugin version:**  (check one with \"x\")\r\n[ ] **1.4.x**\r\n[X ] **2.0.0-beta3** \r\n\r\n**If you choose 'problem or bug report', please select OS:**  (check one with \"x\")\r\n[ X] **Android**\r\n[ ] **iOS**\r\n\r\n**cordova information:**  (run `$> cordova plugin list`) \r\n\r\n```\r\ncom.googlemaps.ios 2.4.0 \"Google Maps SDK for iOS\"\r\ncordova-plugin-console 1.0.7 \"Console\"\r\ncordova-plugin-device 1.1.6 \"Device\"\r\ncordova-plugin-googlemaps 2.0.0-beta3-20170830-1907 \"cordova-plugin-googlemaps\"\r\ncordova-plugin-splashscreen 4.0.3 \"Splashscreen\"\r\ncordova-plugin-statusbar 2.2.3 \"StatusBar\"\r\ncordova-plugin-whitelist 1.3.2 \"Whitelist\"\r\nionic-plugin-keyboard 2.2.1 \"Keyboard\"\r\n{}\r\n```\r\n\r\n**Current behavior:**\r\nIf i set map-page as home page, it works fine:\r\n```js\r\nrootPage: any = MapPage;\r\n```\r\n\r\nProblem appears when has another home page, and use nav.setRoot to open map page.\r\n```js\r\nconstructor(public events: Events, public platform: Platform, public statusBar: StatusBar, public splashScreen: SplashScreen) {\r\n        this.initializeApp();\r\n\r\n        // used for an example of ngFor and navigation\r\n        this.pages = [\r\n            {title: 'Home', component: HomePage},\r\n            {title: 'Map', component: MapPage},\r\n            {title: 'Category', component: CategoryPage},\r\n            {title: 'Us', component: UsPage},\r\n            {title: 'List', component: ListPage},\r\n        ];\r\n\r\n        this.registerEvents();\r\n\r\n    }\r\n\r\nregisterEvents() {\r\n        // Events to move between pages\r\n        //Home\r\n        this.events.subscribe('openPage::Home', () => {\r\n            this.openPage(this.pages[0]);\r\n        });\r\n        // Map\r\n        this.events.subscribe('openPage::Map', () => {\r\n            this.openPage(this.pages[1]);\r\n        });\r\n        //Category\r\n        this.events.subscribe('openPage::Category', () => {\r\n            this.openPage(this.pages[2]);\r\n        });\r\n        //Us\r\n        this.events.subscribe('openPage::Us', () => {\r\n            this.openPage(this.pages[3]);\r\n        });\r\n    }\r\n\r\n    openPage(page) {\r\n        // Reset the content nav to have just this page\r\n        // we wouldn't want the back button to show in this scenario\r\n        this.nav.setRoot(page.component);\r\n    }\r\n```\r\nup are main component code, who uses setRoot to open page. I dont want to use nav.push because it is a main page, and not a children of\r\n\r\nAlso, i think is important note that GoogleMapsEvent.MAP_READY is fired always, even when page not load.\r\n\r\n**Expected behavior:**\r\nMap should appears when click on map page\r\n\r\n**Steps to reproduce:**\r\nUse nav.setRoot to move to map page\r\n\r\n"}}
{"actor":{"display_login":"macklus"}}