Added default zoom
This commit is contained in:
parent
5d3283171c
commit
64e028f0c5
2 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- this creates a google map on the page with the given lat/lng from -->
|
<!-- this creates a google map on the page with the given lat/lng from -->
|
||||||
<!-- the component as the initial center of the map: -->
|
<!-- 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-marker [latitude]="lat" [longitude]="lng"></agm-marker>
|
||||||
</agm-map>
|
</agm-map>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,6 +11,7 @@ export class MapComponent implements OnInit {
|
||||||
|
|
||||||
lat: number = 54.0466;
|
lat: number = 54.0466;
|
||||||
lng: number = -2.8007;
|
lng: number = -2.8007;
|
||||||
|
zoom: number = 12;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private http: Http,
|
private http: Http,
|
||||||
|
|
Reference in a new issue