
If gmaps.js is failing to load google map in your application and you are getting any of below errors:
Uncaught TypeError: Cannot read property ‘prototype’ of undefined gmaps.js
TypeError: undefined is not an object (evaluating ‘d.prototype’)
common.js:48 Uncaught TypeError: Cannot read property ‘prototype’ of undefined)
You can resolve the issue by including Google Maps API key in your API call.
1. Create an API key for your project at: https://developers.google.com/maps/documentation/javascript/get-api-key
2. Include your API key by replacing this line:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
with:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?key=API Key from Google"></script>
Leave a Reply