GMap.initMap error

UI Components for React
Post Reply
chrishj
Posts: 187
Joined: 11 Jul 2011, 21:58

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
PrimeFaces:
J2EE 6 Glassfish 4.1 Mojarra 2.2.7 primefaces 6.2.7
Netbeans 8.1
database postgresql-9.4
Theme - Barcelona

PrimeReact:
3.1.7

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest