Google Map functions(setCenter, animateCamera) not Working in Ionic 2 Plugin
<p>I am working on a mobile project using Ionic 2 with Typescript and the Cordova Google Map plugin that is part of the Ionic Native library. The code compiles without errors and runs on my device(HTC), the map shows up with the right controls but the problem is when I call the setCenter or the animateCamera function of the map nothing happens, the position of the camera on the map does not changr.</p>

<p>I have also set up Chrome Remote Debugging and no error is logged to the console tab.</p>

<p>Here is the .ts file for the component, can someone please tell me what I am doing wrong.</p>

<pre><code>import {Component} from '@angular/core';
import {Page, NavController, Platform} from 'ionic-angular';
import {GoogleMap, GoogleMapsEvent, GoogleMapsLatLng, Geolocation } from 'ionic-native';

@Page({
  templateUrl: 'build/pages/home/home.html'
})
export class HomePage {
  map: GoogleMap;
  lat: number;
  long: number;

  constructor(public navCtrl: NavController, private platform: Platform) {
    platform.ready().then(() =&gt; {

     this.loadMap();
    });
  }


    loadMap(){
      let location = new GoogleMapsLatLng(-34.9290,138.6010);
      //-34.9290,138.6010

      this.map = new GoogleMap('map', {
        'backgroundColor': 'white',
        'controls': {
          'compass': true,
          'myLocationButton': true,
          'indoorPicker': true,
          'zoom': true
        },
        'gestures': {
          'scroll': true,
          'tilt': true,
          'rotate': true,
          'zoom': true
        },
        'camera': {
          'latLng': location,
          'tilt': 30,
          'zoom': 15,
          'bearing': 50
        }
      });

      this.map.on(GoogleMapsEvent.MAP_READY).subscribe(() =&gt; {
        console.log('Map is ready!');
        let coord = new GoogleMapsLatLng(this.lat, this.long);

        console.log(this.lat + ' ' + this.long);

        Geolocation.getCurrentPosition().then(pos =&gt; {
          console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude);
          this.lat = pos.coords.latitude;
          this.long = pos.coords.longitude;

          this.map.setCenter(coord);

          //this.map.animateCamera({
          //  'target': coord,
          //  'tilt': 60,
          //  'zoom': 18,
          //  'bearing': 140
          //});
        });
      });

    }
}
</code></pre>