New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map doesn't display after changing root page #212
Comments
+1 This a great resource. I'm looking forward to seeing how it's fixed, because I'm having the same issue as well. |
There is a topic in the Ionic forum about this problem as well without any solution provided. I've posted there as well to try to get visibility on this issue. |
Thanks for the issue! We'll look into this soon. In the meantime, please continue to post any more details you find. Thanks! 😄 |
I think it's necessary to add map resize trigger :
It must be called every time you enter in that page. https://github.com/ddellamico/ionic-conference-app/blob/master/app/pages/map/map.ts |
Nice save ddellamico. |
Well done @ddellamico! For people that are searching for it like me, this also fixes the map not working in Safari (OS X and on iOS 9.3). That one needs a resize too. |
same issue any updates ? |
I'm not able to reproduce this anymore so I am going to close the issue. Please let me know if it's still an issue and I'll reopen. Thanks! |
In ionic 1 I am still facing the same issue . Any workaround atleast ? |
Hello All, |
@fkamlesh $scope.$on('$ionicView.enter', function(e) { initAutocomplete(); }) |
I am having the same issue with ionic1. the interesting fact is, when it is in debug mode (web render : ionic serve --lab)
it works as expected when the map is loaded as root page level. But once it is implemented as sub pages(child state), it does not work. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the Ionic Conference App, please create a new issue and ensure the template is fully filled out. |
Short description of the problem:
When the initial tabs page displays you can navigate around to all the tabs fine, including the "Map" tab and the map will display fine. BUT if you click the menu and navigate to the "Login" or "Signup" page (any page that changes the NavController root page) and then navigate back to the Tabs page and visit the Map page the google map won't load.
What behavior are you expecting?
Expecting the map to load and display properly after the NavController root page is swapped around.
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
No errors in the javascript console
Run
ionic info
from terminal/cmd prompt: (paste output below)This is the behavior of the conference app I loaded from the Android Play store.
I have the same issue in the app I am writing as well using:
Your system information:
Cordova CLI: 6.2.0
Ionic Framework Version: 2.0.0-beta.9
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Mavericks
Node Version: v5.11.1
Xcode version: Not installed
The text was updated successfully, but these errors were encountered: