Gmaps.js – google map not loading


If gmaps.js is failing to load google map in your application and you are getting any of below errors:

screen-shot-2016-09-12-at-2-26-24-pm

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>


About Matthias 33 Articles
I am a Software Engineer from Houston, TX who love to write codes that brings great ideas to live. In my professional life, I have created software for different industries including Oil & Gas, Finance, Service Provider, Cloud Computing and Embedded Systems. When not writting codes, i enjoy travelling, good music and photography. You can reach me at me@matthiasomisore.com.

Be the first to comment

Leave a Reply

Your email address will not be published.


*