Gmap Api key

UI Components for React
Post Reply
docgregt
Posts: 1
Joined: 16 May 2018, 23:28

17 May 2018, 02:00

Hi,
The GMap component looks interesting to us, but I do not see where to place the API key in your component. Do you have a working example?

Thanks,
Greg

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

24 May 2018, 16:47

Hi,

You need to provide a Google Map API key. Please see; https://developers.google.com/maps/docu ... et-api-key

Then, you can add the following script tag in your index.xhtml;

Code: Select all

<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=YOUR_API_KEY" async defer></script>
Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: Phillipdum and 15 guests