title: Move Camera to current position in ionic maps
body: <p>I am working on google maps in ionic using google maps plugin and geolocation plugin. And getting my current location using watchposition function of geolocation that updates lat long after position changed.
  Every thing is fine but the problem that i am facing is that i want to move camera position to my current location that is changing by changing position. when i set the fixed lat long in movCamera function it moves the camera towards these latlong but when i set this to my current location it moves the map to some other location but not mine.</p>
  
  <p>can any one tell me whats the problem??</p>
  
  <p>Here is the code . . . </p>
  
  <pre><code>    export class HomePage {
   x: number = 0;
    y: number = 0;
    constructor(public navCtrl: NavController,private googleMaps: GoogleMaps, public platform:Platform,private geolocation: Geolocation) {
              platform.ready().then(() =&gt; {
                      this.loadMap();
                });
    }
  
  loadMap() {
  
   // create a new map by passing HTMLElement
   let element: HTMLElement = document.getElementById('map');
  
  this.geolocation.watchPosition().subscribe((position) =&gt; {
    this.x = position.coords.longitude;
    this.y = position.coords.latitude;
    let ionic: LatLng = new LatLng(this.x,this.y);
   let map: GoogleMap = this.googleMaps.create(element,{
            'backgroundColor': 'white',
            'controls': {
              'compass': true,
              'myLocationButton': true,
              'indoorPicker': true,
              'zoom': true
            },
            'gestures': {
              'scroll': true,
              'tilt': true,
              'rotate': true,
              'zoom': true
            }
          });
   // listen to MAP_READY event
   // You must wait for this event to fire before adding something to the map or modifying it in anyway
   map.one(GoogleMapsEvent.MAP_READY).then(() =&gt; {
  console.log('====&gt;&gt;&gt;&gt;&gt;Map is ready!');
  
   });
  
   let ionic1: LatLng = new LatLng(33.635322,73.073989);
  
   // create CameraPosition
   let Camposition: CameraPosition = {
     target: ionic,
     zoom: 22,
     tilt: 30
   };
  
   // move the map's camera to position
   map.moveCamera(Camposition);
  
  
  }, (err) =&gt; {
    console.log(err);
  });
  }
  
  }
  </code></pre>