Skip to content

Instantly share code, notes, and snippets.

@luixaviles
Created February 6, 2020 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luixaviles/07907ee85ac9694205b117f9b78eff0f to your computer and use it in GitHub Desktop.
Save luixaviles/07907ee85ac9694205b117f9b78eff0f to your computer and use it in GitHub Desktop.
<google-map height="400px"
width="750px"
[center]="center"
[zoom]="zoom"
(mapClick)="addMarker($event)"
(mapMousemove)="move($event)"
(mapRightclick)="removeLastMarker()">
<map-marker #marker
*ngFor="let markerPosition of markerPositions"
[position]="markerPosition"
[options]="markerOptions"
(mapClick)="openInfoWindow(marker)"></map-marker>
<map-info-window>Info Window content</map-info-window>
</google-map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment