How to use cordova google maps plugin


#1

I’m struggling to get the google maps plugin to work in ionic 2.

import {GoogleMaps} from ‘ionic-native’;

this.platform.ready().then(() => {
console.log(‘init called’);
this.map = new GoogleMaps(‘map-canvas’);

})
}

But this isn’t changing my div at all. The plugin doesn’t seem to be initialising.


#2

Are you installing the plugin?

ionic plugin add cordova-plugin-googlemaps

Also note, that this plugin requires some API keys