I need to get google.maps.Map
. I cannot see official
way in docs. But I see that whole component is exportedAs
.
But when I use it in template:
<google-map [center]="{lat: mapaLat, lng: mapaLng}"
[zoom]="mapaZoom" [options]="{mapTypeControl: true}"
#mapInstance="googleMap"></google-map>
it is local variable. How to get it in my component's typescript?
Or maybe there is other way to get google.maps.Map
?
google.maps.LatLng
instances building agoogle.maps.LatLngBounds
object to pass into thefitBounds
method worked extremely well. – Gnostic