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

Categories

HOME
perl
phpunit
firmware
sql-server-2005
asp-classic
web-crawler
cakephp-3.0
zurb-foundation
google-places-api
64bit
iis-8
directshow
quandl
soundcloud
protege
uinavigationcontroller
fluent-assertions
worksheet-function
postgis
ninja
wmi-query
video-processing
fix
axon
codecvt
jlabel
jquery-gmap3
smt
pentaho-spoon
systemml
sirikit
eventtrigger
bind
media
google-developers-console
xfce
frama-c
android-logcat
protobuf-c
live
cloudfoundry-uaa
javabeans
transfer-function
handbrake
lektor
web.py
war
webex
fitnesse-slim
960.gs
binary-image
google-truth
family-tree
orika
wso2-appm
jquery-ui-tabs
crypto++
smartmeter
lab-color-space
machinekey
rpy2
pandorabots
review-board
eclipse-indigo
codeigniter-restserver
user-mode-linux
f#-interactive
xcode4
bitcount
idiorm
realbasic
build-dependencies
undefined-symbol
bullseye
foundation
xamarin-forms
glut
joptimizer
cordova-chrome-app
scrollviewer
comfortable-mexican-sofa
ilias
desktop-shortcut
arbitrary-precision
tracker
tankauth
kiwi
webproxy
apache-commons-exec
rhodecode
android-x86
bitmapimage
real-time-data
server-side-scripting
jquery-mobile-collapsible
jax-rpc
robohelp
django-sessions
utl-file
html-validation
google-doodle
ubuntu-9.10
layar
windows-explorer
trx
moss2007enterprisesearch
google-notebook
maintaining-code
nice

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile