GMap : cannot find google error

UI Components for React
Post Reply
asai
Posts: 2
Joined: 14 Feb 2019, 12:10

20 Feb 2019, 08:09

Hi,

I'm having issue in creating Gmap overlays. It is throwing cannot find "google". May i know how can i reference the Google Api in React with Typescript

let overlay = new google.maps.Marker({
position: {
lat: result[0].Latitude,
lng: result[0].Longitude
},
title: result[0].Title
});
this.setState(
{
overlays:overlay
})
<GMap overlays={this.state.overlays} options={options} style={{width: '100%', minHeight: '320px'}} />

Thank you
Sai.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests