Let's start an Ionic project from scratch and add Google Maps features, as follows:
- Create a blank Ionic project, as shown, and go to that folder:
$ ionic start TaxiApp blank $ cd TaxiApp
- Replace the iOS platform with version 3.9.0 with the following command lines:
$ ionic platform remove ios $ ionic platform add [email protected] $ ionic platform add android
You have to pick [email protected] specifically because the current version of the Cordova Google Maps plugin only works with this version. Otherwise, your build will fail. You should experiment with the newest version if possible.
- Install the Google Maps plugin with your copied key replacing `YOUR_IOS_API_KEY_IS_HERE, as follows:
$ cordova plugin add cordova-plugin-googlemaps ...