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