Add driving animation for google maps

This commit is contained in:
David Eder
2021-06-06 20:01:31 +02:00
parent 92cfc07166
commit 70d7189f4a
6 changed files with 21975 additions and 156 deletions
@@ -1,6 +1,6 @@
<google-map width="auto" height="100vh"
[zoom]="zoom"
[center]="center"
[options]="options"
>
</google-map>
<button (click)="toggleMarker()">Drive!</button>
<agm-map id="map" #map [zoom]="zoom" [latitude]="center.lat" [longitude]="center.lng" style="height: 900px; width: 1200px">
<agm-marker *ngFor="let m of markers" [iconUrl]="m.iconUrl" [visible]="m.visible" [latitude]="m.lat" [longitude]="m.lng" >
</agm-marker>
</agm-map>