I’m actualy trying to integrate a native google map to my app. First I wanted to use plugin.google.maps package ( https://github.com/wf9a5m75/phonegap-googlemaps-plugin). The problem is that my map is blanked and the side menu is broken (I followed the instructions for the API key). I tested the plugin with MeteorJS and it works like a charm. So I taught about using ngCordova for my ionic app.
The problem is that I can see there is a way to use the map with ngCordova because the package is listed in the custom build page. However, there isn’t any documentation for the google map.
The First one has everything glemiere asked for, he only needs to spend few seconds looking for it (it even includes a video tutorial, it can’t get better than this). This link from @andrewmcgivery should be considered a staple for every Ionic developer.
The Second link is just a courtesy, if he can’t work with native maps he should know that alternatives do exist. If not he then someone else.
I found the problem. First of all, if you use Cordova CLI >= 5.0.0, use this version of cordova google map https://github.com/Nipher/phonegap-googlemaps-plugin.
The only problem I have now is a bad displaying of the side-menu. I’ll come back here to explain how I’ll fix it
EDIT :
If the project doesn’t compile with an "EXDEV, cross-device link not permitted" error, it’s because you can’t add plugin by github repository in latest version of Cordova. So just run the following command :
Hi guys ! Sorry for the delay I just noticed that I forgot to share my fix with you for the side menu problem.
First, make sure you have a CSS class like that :
.hidden{
display:none;
}
Then add an ID and your class to your ion-side-menu :
I confirm that this method is better and works well for me
By this way, we just check if the menu is opened, if the menu is opened, we open the display the side-menu content
The only problem is that your first menu button will appear beside the header. CSS can fix that
If you use ionic-material, you can directly modify menu.html like that :