GMap.initMap error

UI Components for React
Post Reply
chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

04 May 2019, 20:37

Uncaught ReferenceError: google is not defined
at GMap.initMap (GMap.js:157)

I am using the example code from the documentation (PrimeReact 3.1.0)

Code: Select all

import React from 'react'
import {GMap} from 'primereact/gmap';

class TaskHome extends React.Component {
  render() {
   const options = {
        center: {lat: 36.890257, lng: 30.707417},
        zoom: 12
    };
    return (
      <div>
        TaskHome page
         <GMap options={options} style={{width: '100%', minHeight: '320px'}} />
      </div>
    )
  }
}

export default TaskHome
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests