Hello.
I am trying to make a map view using the cordova-plugin-googlemaps plugin.
I managed to init the map into my div, but it has a gray background and basically I don’t see any actual map there, just the logo of google at the bottom left.
Also I don’t quite understand how to perform manipulations to the map object. The documentation is very poor (and it’s okay as we’re still in Beta). I would love to have some assistance.
https://github.com/driftyco/ionic-native/blob/master/src/plugins/googlemaps.ts
My code: (home.ts)
import {Page, Platform} from 'ionic-angular';
import {GoogleMaps} from 'ionic-native';
@Page({
templateUrl: 'build/pages/home/home.html'
})
export class HomePage {
map;
platform;
constructor(platform: Platform) {
this.platform = platform;
this.init();
}
init() {
this.platform.ready().then(() => {
console.log('init called');
this.map = new GoogleMaps('map_canvas');
})
}
}
And basically the mentioned above happens. How can I get to the point of manipulating the map (and actually seeing a map)? Stuff like setCenter, setZoom etc.
Much thanks in advance!