title: How Can I Get googleMap Object in angular agm Library to work with google HeatMap?
body: <p>I want to get googleMap object in agm and use to create HeatMapLayer in my project but this code not working: </p>
  
  <pre><code>declare var google: any;
  
  @Directive({
    selector: 'my-comp',
  })
  export class MyComp {
    constructor(private _gmap:GoogleMapsAPIWrapper){
      _gmap.getMap().then((m: mapTypes.GoogleMap) =&gt; {
        console.log(google);
      });
    }
  }
  </code></pre>
  
  <p>I read GitHub repo issues and everyone says this code is working but for me, it does not work. why?</p>