-
Notifications
You must be signed in to change notification settings - Fork 0
/
map-component.html
31 lines (24 loc) · 1.04 KB
/
map-component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<agm-map id="map-root" #agmTemplateInstance
[latitude]="centerLat"
[longitude]="centerLng"
[zoom]="zoom" [zoomControl]=true
[panControl]=true [fullscreenControl]=true
(mapReady)="initMap($event)"
(mapClick)="handleMapClick($event)">
<agm-marker *ngFor="let m of markers"
[latitude]="m?.lat"
[longitude]="m?.lng"
(markerClick)="handleMarkerClick(m)">
<agm-circle
[latitude]="m?.lat"
[longitude]="m?.lng" [radius]="m?.radius"
[fillColor]="'#19566e'"
[fillOpacity]="0.5">
</agm-circle>
<agm-info-window (infoWindowClose)="handleInfoWindowClose()">
<p><i class="fa fa-map-marker"> </i> You are here : <small>{{m.address}}</small></p>
<p>{{popupContent}}</p>
</agm-info-window>
</agm-marker>
</agm-map>
<!-- ./agm-map -->