Added default zoom

This commit is contained in:
piratefinn 2017-09-27 12:02:46 +01:00
parent 5d3283171c
commit 64e028f0c5
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@
</div>
<!-- this creates a google map on the page with the given lat/lng from -->
<!-- the component as the initial center of the map: -->
<agm-map [latitude]="lat" [longitude]="lng">
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" [scaleControl]="true">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map>
</div>

View file

@ -11,6 +11,7 @@ export class MapComponent implements OnInit {
lat: number = 54.0466;
lng: number = -2.8007;
zoom: number = 12;
constructor(
private http: Http,