Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 2, 2020 10:28
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 LarsBergqvist/d9754a471bdc7e17b58fda1ac5f3f51f to your computer and use it in GitHub Desktop.
Save LarsBergqvist/d9754a471bdc7e17b58fda1ac5f3f51f to your computer and use it in GitHub Desktop.
Using PrimeNG's GMap for displaying a Google Maps view
<div *ngIf="useMap">
<p-gmap *ngIf="options.center" [options]="options" [overlays]="overlays" [style]="{'width':'100%','height':'320px'}"
(onMapReady)="onMapReady($event)" (onMapClick)="handleMapClick($event)"></p-gmap>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment