angular
Angular2 Google Maps panTo not working (does nothing)
I'm using Angular Google Maps (latest #agm/core) but can't get panTo or setCenter to work it simply does nothing. I import GoogleMapsAPIWrapper like this: import { GoogleMapsAPIWrapper } from '#agm/core'; I then inject it into my constructor: constructor( injector: Injector, private _wrapper: GoogleMapsAPIWrapper ){ super(injector); } Then I try to call the above method in a function like so: resetMap():void { this._wrapper.setCenter({lat:53.097900, lng:-1.661963}); this._wrapper.panTo({lat:53.097900, lng:-1.661963}); } Please can anyone advise what I'm doing wrong? or how I am meant to reference the map to call methods against it.
Related Links
Apollo Angular2 client handling promise
Angular 2 router event not firing first time?
RxJs Partion if then else
RxJS: debounceTime return all values
Angular 2 (4) What's the way to manage response for multiple async calls
How do I get reference to the FormControl from a component that implements ControlValueAccessor?
Firebase Storage Task as Observable
NgIf a parameter is a certain value
How to delete dynamically created Content Projection Transclusion element in angular2?
Fusioncharts data formatted but not loading properly
Get current user data in ionic 2 from firebase
how to use selector to selector in angular 4
Using Angular CLI's 'new' and 'build' results in stuck on “Loading…”
Error while deploying angular2 app in firebase
Angular 2 - Rendering custom content without host elements
Using angular router with Google's webcache