I am Working in an Angular 4 application ,Here I would like to add a map view for that I have developed the map with street view by default .
Now I want to add a option to the user that they can able to switch between street view to satellite view .
HTML
<div class="container">
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom">
<agm-marker [latitude]="lat" [longitude]="lng">
<agm-info-window>
<strong>XYZ Company</strong>
</agm-info-window>
</agm-marker>
</agm-map>
</div>
TypeScript
export class ContactusComponent implements OnInit {
lat: number = 51.509865;
lng: number = 77.423994;
zoom: number = 15;
constructor() { }
ngOnInit() {
}
}
Can anyone help me to get this ..
Adding button in agm map control for switch of different map type.